Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
02-12-2015, 03:34 PM | #1 |
So Fucking Banned
Industry Role:
Join Date: Feb 2001
Location: Taipei
Posts: 25,198
|
A Wordpress script/plugin that can do this?
When you create "galleries" or posts in wordpress, you get the option to let each thumb link to:
1. Attachement page, 2. Media File, 3. none Anyone know if there is a script/plugin that can change ALL the blog posts to one or the other? Thanks |
02-12-2015, 07:34 PM | #2 |
Confirmed User
Industry Role:
Join Date: May 2011
Location: Prnohrad
Posts: 422
|
it would be useless by my opinion. wouldn't be? if you can change all links at once, there would be option to change only to one specific link. it could be useful if you want to set all to none or to change only first part of the link like domain and directory.
anyway, check this plugin, maybe this you can use it somehow: https://wordpress.org/plugins/velvet-blues-update-urls/
__________________
Promote LustReality.com - Exclusive VR content / email me
*** Non-Exclusive content package on sale - contact me for info *** |
02-12-2015, 08:24 PM | #3 |
Pay It Forward
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 76,489
|
talk to homer simpson he's good
__________________
TRUMP 2024 KEKAW!!! - Support The Laken Riley Act!!! END DACA - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com |
02-13-2015, 04:37 AM | #4 |
So Fucking Banned
Industry Role:
Join Date: Feb 2001
Location: Taipei
Posts: 25,198
|
Tom, thanks man, will check it out. The reason I'm asking is, I want to raise my clicks to sponsors for more chance of sales, from linking eat thumbnail to a page ,and on that page the large image links to the sponsor, and also bottom/top of image could put some adverts too.
brassmonkey, thanks, I'll search for Homer's contact info and give him a wassup |
02-13-2015, 04:40 AM | #5 |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,378
|
Ops ...
__________________
Obey the Cowgod |
02-13-2015, 10:30 AM | #6 | |
Pay It Forward
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 76,489
|
Quote:
__________________
TRUMP 2024 KEKAW!!! - Support The Laken Riley Act!!! END DACA - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com |
|
02-13-2015, 10:54 AM | #7 | |
Too lazy to set a custom title
Industry Role:
Join Date: Mar 2003
Location: Homeless
Posts: 62,911
|
Quote:
__________________
PornGuy skype me pornguy_epic AmateurDough The Hottes Shemales online! TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME! |
|
02-13-2015, 01:17 PM | #8 |
Confirmed User
Industry Role:
Join Date: Feb 2015
Posts: 203
|
Find it in the database, and change it there.
|
02-13-2015, 01:24 PM | #9 |
Too lazy to set a custom title
Join Date: Jan 2003
Location: Los Angeles
Posts: 10,412
|
That would be a cool plugin.
|
02-14-2015, 08:14 PM | #10 | |
So Fucking Banned
Industry Role:
Join Date: Feb 2001
Location: Taipei
Posts: 25,198
|
Thanks a lot man
Ya it would, it would save tons of people tons of time! Quote:
Thanks man, whomever I find (if i find) to help out with this, i'll suggest that to him/her, i appreciate the suggestion |
|
02-14-2015, 08:43 PM | #11 |
Developer
Industry Role:
Join Date: Jun 2008
Posts: 1,425
|
You mean to have it by default one or the other or to change it for existing content or both?
__________________
<developer> MechBunny / KVS / PHP / MySQL / HTML5 / CSS3 / jQuery Email: vlad [at] faxite.com Skype: live:.cid.8b902b3e7e30c11a |
02-14-2015, 08:44 PM | #12 |
So Fucking Banned
Industry Role:
Join Date: Feb 2001
Location: Taipei
Posts: 25,198
|
|
02-15-2015, 03:05 AM | #13 |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,378
|
Never even touch the WP database directly! Use API to alter it. In this particular case, you need to go through all existing posts, find the gallery shortcodes there and alter them according to this scheme:
[gallery] - linked to attachment [gallery link="file"] - linked to file [gallery link="none"] - not linked Let's consider that all your gallery thumbnails are linked to attachments and you want to make them liked to the actual images. In other words, you have to replace this: [gallery] with this: [gallery link="file"] I'll show how to do it with the CyberSEO plugin, which almost all GFY's already have.
If you want to do the opposite (i.e. make all the thumbnails to link to attachments instead of original images), you should use this code in step #3: Code:
$post->post_content = str_replace('[gallery link="file"]', '[gallery]', $post->post_content);
__________________
Obey the Cowgod |
02-15-2015, 04:37 AM | #14 |
Confirmed User
Industry Role:
Join Date: Feb 2015
Posts: 203
|
If you have cPanel, go to phpMyAdmin, and figure it out there. If you are not familiar, take time, and read about it on the Internet. Before you make any changes (sql commands), make sure you will be able to go back to the original state, at any time. Before you do anything, create a backup file (.sql) of the database.
|
02-15-2015, 04:46 AM | #15 |
Confirmed User
Industry Role:
Join Date: Feb 2015
Posts: 203
|
|
02-15-2015, 05:55 AM | #16 |
Confirmed User
Industry Role:
Join Date: May 2011
Location: Prnohrad
Posts: 422
|
I often edit wp database directly, either through phpmyadmin, either on sql file dumped locally. and editing in notepad++ or even notepad. never killed any site...
__________________
Promote LustReality.com - Exclusive VR content / email me
*** Non-Exclusive content package on sale - contact me for info *** |
02-15-2015, 06:09 AM | #17 |
Too lazy to set a custom title
Industry Role:
Join Date: Feb 2005
Posts: 17,168
|
https://wordpress.org/plugins/search-and-replace/
Maybe you would use this plugin to replace the string/shortcode in all the posts? |
02-15-2015, 06:25 AM | #18 |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,378
|
Just a matter of time
__________________
Obey the Cowgod |
02-15-2015, 08:27 AM | #19 |
Developer
Industry Role:
Join Date: Jun 2008
Posts: 1,425
|
If for existing content only, you can run a query to modify the database value for all current items, it's only a matter of looking at the database and identifying what is where and afterwards querying it to set the desired values.
I do agree to what CyberSEO says to some degree, if one doesn't know what to do, shit can hit the fan, but it's common sense that when you modify a database directly, you have the required knowledge to do so. I'm not a huge fan of WordPress, i usually code my own shit, but from the rare occasions i did work with it, it has indeed the setup that where if one doesn't pay attention when dealing with the database, it can fuck everything up in no time.
__________________
<developer> MechBunny / KVS / PHP / MySQL / HTML5 / CSS3 / jQuery Email: vlad [at] faxite.com Skype: live:.cid.8b902b3e7e30c11a |