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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-12-2015, 03:34 PM   #1
jscott
jscizzle
 
jscott's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: Taipei
Posts: 24,916
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
__________________
“If you think tough men are dangerous, wait until you see what weak men are capable of.”
—Jordan B. Peterson

Listen to Pomp tell why is Bitcoin important
jscott is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-12-2015, 07:34 PM   #2
Tom.K
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 ***
Tom.K is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-12-2015, 08:24 PM   #3
brassmonkey
Pay It Forward
 
brassmonkey's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 76,427
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
brassmonkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2015, 04:37 AM   #4
jscott
jscizzle
 
jscott's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: Taipei
Posts: 24,916
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
__________________
“If you think tough men are dangerous, wait until you see what weak men are capable of.”
—Jordan B. Peterson

Listen to Pomp tell why is Bitcoin important
jscott is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2015, 04:40 AM   #5
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,365
Ops ...
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2015, 10:30 AM   #6
brassmonkey
Pay It Forward
 
brassmonkey's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 76,427
Quote:
Originally Posted by jscott View Post
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
sent him the thread
__________________
TRUMP 2024 KEKAW!!! - Support The Laken Riley Act!!!
END DACA - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com
brassmonkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2015, 10:54 AM   #7
pornguy
Too lazy to set a custom title
 
pornguy's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Homeless
Posts: 62,909
Quote:
Originally Posted by jscott View Post
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
I wanted to do the same and with a plugin I would. But to try manually is a nightmare.
__________________
PornGuy skype me pornguy_epic

AmateurDough The Hottes Shemales online!
TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!
pornguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2015, 01:17 PM   #8
AdultSites
Confirmed User
 
Industry Role:
Join Date: Feb 2015
Posts: 203
Find it in the database, and change it there.
AdultSites is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2015, 01:24 PM   #9
AmeliaG
Too lazy to set a custom title
 
AmeliaG's Avatar
 
Join Date: Jan 2003
Location: Los Angeles
Posts: 10,397
That would be a cool plugin.
AmeliaG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-14-2015, 08:14 PM   #10
jscott
jscizzle
 
jscott's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: Taipei
Posts: 24,916
Quote:
Originally Posted by brassmonkey View Post
sent him the thread
Thanks a lot man

Quote:
Originally Posted by AmeliaG View Post
That would be a cool plugin.
Ya it would, it would save tons of people tons of time!

Quote:
Originally Posted by pornguy View Post
I wanted to do the same and with a plugin I would. But to try manually is a nightmare.
Ya man, I wont do it manually, the blog I have has over 3000 posts, so doing manually? i'd rather jump off a cliff lol

Quote:
Originally Posted by AdultSites View Post
Find it in the database, and change it there.
Thanks man, whomever I find (if i find) to help out with this, i'll suggest that to him/her, i appreciate the suggestion
__________________
“If you think tough men are dangerous, wait until you see what weak men are capable of.”
—Jordan B. Peterson

Listen to Pomp tell why is Bitcoin important
jscott is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-14-2015, 08:43 PM   #11
VladS
Developer
 
VladS's Avatar
 
Industry Role:
Join Date: Jun 2008
Posts: 1,418
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
VladS is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-14-2015, 08:44 PM   #12
jscott
jscizzle
 
jscott's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: Taipei
Posts: 24,916
Quote:
Originally Posted by VladS View Post
You mean to have it by default one or the other or to change it for existing content or both?
for existing content
__________________
“If you think tough men are dangerous, wait until you see what weak men are capable of.”
—Jordan B. Peterson

Listen to Pomp tell why is Bitcoin important
jscott is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2015, 03:05 AM   #13
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,365

Quote:
Originally Posted by AdultSites View Post
Find it in the database, and change it there.
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.
  1. Go to "CyberSEO->Tools"
  2. Find the "PHP Code <?php .. ?>" box and put there the following code:
  3. Code:
    $post->post_content = str_replace('[gallery]', '[gallery link="file"]', $post->post_content);
  4. Click "Apply These Modifications To All Existing Posts"
  5. Done!

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);
Very simple, isn't it? And no special plugins needed
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2015, 04:37 AM   #14
AdultSites
Confirmed User
 
Industry Role:
Join Date: Feb 2015
Posts: 203
Quote:
Originally Posted by AdultSites View Post
Find it in the database, and change it there.
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.
AdultSites is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2015, 04:46 AM   #15
AdultSites
Confirmed User
 
Industry Role:
Join Date: Feb 2015
Posts: 203
Quote:
Originally Posted by CyberSEO View Post
Never even touch the WP database directly!
He does not need paid CyberSeo plugin to do this.
AdultSites is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2015, 05:55 AM   #16
Tom.K
Confirmed User
 
Industry Role:
Join Date: May 2011
Location: Prnohrad
Posts: 422
Quote:
Originally Posted by CyberSEO View Post
Never even touch the WP database directly!
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 ***
Tom.K is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2015, 06:09 AM   #17
Denny
Too lazy to set a custom title
 
Denny's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 17,147
https://wordpress.org/plugins/search-and-replace/

Maybe you would use this plugin to replace the string/shortcode in all the posts?
__________________
Denny is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2015, 06:25 AM   #18
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,365
Quote:
Originally Posted by Tom.K View Post
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...
Just a matter of time
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2015, 08:27 AM   #19
VladS
Developer
 
VladS's Avatar
 
Industry Role:
Join Date: Jun 2008
Posts: 1,418
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
VladS is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
posts, script/plugin, wordpress, file, media, blog, change, thumb, galleries, create, option, attachement, page, link



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.