GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress Question (https://gfy.com/showthread.php?t=658637)

Boobs 09-23-2006 01:04 PM

Wordpress Question
 
on Wordpress say you have about 200 posts and you decide to use a trade script... is there anyway to edit the posts to use the script or do i need to fix the links one by one to include the "out" file/script

any input appreciated thanks

spasmo 09-23-2006 01:11 PM

You can do a search/replace in the db. Make sure you make a backup first though...

martinsc 09-23-2006 01:12 PM

Quote:

Originally Posted by spasmo
You can do a search/replace in the db. Make sure you make a backup first though...

the backup part is the most important part

OG LennyT 09-23-2006 01:14 PM

one of my wp backup files is a 20 Mb text file :)

Boobs 09-23-2006 01:14 PM

i'm not that good with mysql.. when you say search/replace what is it exactly i should look for

mrkris 09-23-2006 01:16 PM

You can also build a wordpress plugin, that way it will take affect on any post.

Boobs 09-23-2006 01:16 PM

i'd guess searching for "href=" would pretty much cover all the links right? so i can replace that for "href=xout?" for example.

Boobs 09-23-2006 01:17 PM

mrkris how can i make a plugin that adds a code in the URL in each post

spasmo 09-23-2006 01:22 PM

Start with a basic MySQL cheat sheet: http://www.pantz.org/database/mysql/mysqlcommands.shtml and it will start making sense.

Play around with a copy of your db until you understand what you're actually changing.

mrkris 09-23-2006 01:27 PM

Take a look at codex.wordpress.org and look into the add_action() calls. You can do exactly what you want.

spasmo 09-23-2006 01:33 PM

Quote:

Originally Posted by mrkris
Take a look at codex.wordpress.org and look into the add_action() calls. You can do exactly what you want.

Far better idea than what I was recommending. :thumbsup

Boobs 09-23-2006 01:33 PM

thanks for the replies

The Sultan Of Smut 09-23-2006 01:40 PM

http://thedeadone.net/software/searc...dpress-plugin/


All times are GMT -7. The time now is 02:42 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123