|
2009-05-21, 09:09 AM | #1 |
wtfwjd?
Join Date: May 2007
Posts: 2,103
|
Changing affiliate codes in WP post
Is there a utility for this? This is a mainstream site with amazon ads.
|
2009-05-21, 09:23 AM | #2 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
You could use PhpMyAdmin to do a search and replace on the codes in the MySQL database.
|
2009-05-21, 11:01 AM | #3 |
wtfwjd?
Join Date: May 2007
Posts: 2,103
|
Thanks Cleo...I'm not familiar with using PhpMyAdmin, but it looks pretty straighforward and I have worked with other database tools.
|
2009-05-21, 11:13 AM | #4 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
Code:
create table wp_postsbk select * from wp_posts; update wp_posts set post_content=replace(post_content,'oldstringtoreplace','newstringtouse'); Code:
delete from wp_posts; insert into wp_posts select * from wp_postsbk;
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
2009-05-21, 11:25 AM | #5 |
Me fail English? That's unpossible!
|
A Google search turned up http://thedeadone.net/download/searc...dpress-plugin/
|
2009-05-21, 02:34 PM | #6 |
wtfwjd?
Join Date: May 2007
Posts: 2,103
|
Google...who woulda thought...
|
2009-05-21, 08:15 PM | #7 |
I can now put whatever you want in this space :)
Join Date: Mar 2009
Location: Merica!
Posts: 543
|
Its scary what some people can quote off the top of their head.
__________________
Its just a jump to the left. |
2009-05-21, 11:37 PM | #8 |
wtfwjd?
Join Date: May 2007
Posts: 2,103
|
cd34 knows his shit!
Howling, that plug worked like a charm! It took about 5 seconds...no problems whatsoever. |
2009-05-22, 12:19 AM | #9 |
bang bang
|
I know there is a great plugin for wordpress that is actually great for links like that.
another thing that I know that was just released is a free link directing script. Made by the same guy that did tevs tube script. I'll find a link later. edit: nevermind simple google found it. http://www.bigdotmedia.com/ he's calling it tracking adult links sytem (tals). so then you can change certain things out real easy in the future. |
2009-05-22, 07:25 AM | #10 |
That which does not kill us, will try, try again.
|
Just a quick note that you may want to always back up your WP databases before using any of the available plugins to change all your codes in one click. That was something that cd34's code handled by first creating a new table and copying your post data into it in case you needed to revert back to it. Anyone who's ever totally screwed a database with search and replace knows the value of that one line of code.
__________________
"If you're happy and you know it, think again." -- Guru Pitka |
2009-05-22, 08:31 AM | #11 | |
wtfwjd?
Join Date: May 2007
Posts: 2,103
|
Quote:
|
|
|
|