Current time: 01-09-2009, 05:31 AM Hello There, Guest! (LoginRegister)


Post Reply 
Find replace templatesets
08-18-2008, 09:24 PM
Post: #1
Find replace templatesets
Hi, im running into problems with the code below

PHP Code:
find_replace_templatesets('postbit''{$post[\'usertitle\']}''RSN: <a href="highscores.php?rsusers={$post[\'fid4\']}">{$post[\'fid4\']}</a><br />{$post[\'usertitle\']}'); 

Basicly, it does absolutely nout to the templates but returns no error and I havent a clue whats wrong with it.

Can anyone help?

Thanks in advance,
Alec
Find all posts by this user
Quote this message in a reply
08-19-2008, 07:07 AM
Post: #2
RE: Find replace templatesets
Try this:
PHP Code:
find_replace_templatesets('postbit''#'.preg_quote('{$post[\'usertitle\']}').'#''RSN: <a href="highscores.php?rsusers={$post[\'fid4\']}">{$post[\'fid4\']}</a><br />{$post[\'usertitle\']}'); 

Who is Yumi?


It's still the KFC crazed person who can't spell names properly with annoying AlTeRnAtInG CaPiTaLs in the NaMe
Visit this user's website Find all posts by this user
Quote this message in a reply
08-19-2008, 07:09 AM (This post was last modified: 08-19-2008 08:17 PM by alecf.)
Post: #3
RE: Find replace templatesets
Cheers zinga! You always seem to be the one helping me here!

It worked perfectly! However how can I change that around to revert the changes on deactivate? Ive tried wiggling it around a but and still it doesnt revert the changes Sad
Find all posts by this user
Quote this message in a reply
09-01-2008, 01:23 PM
Post: #4
RE: Find replace templatesets
Sorry for double posting but I thought it better than starting a new topic.

Anyway how can I do the opposite of the code you gave me?

So I need the code to do the opposite of this for the deactivate function.
PHP Code:
find_replace_templatesets('postbit''#'.preg_quote('{$post[\'usertitle\']}').'#''RSN: <a href="highscores.php?rsusers={$post[\'fid4\']}">{$post[\'fid4\']}</a><br />{$post[\'usertitle\']}'); 

If anyone could help that would be awsome cos i've tried everything I can think of. REGEX completely baffles me though.
Find all posts by this user
Quote this message in a reply
09-02-2008, 03:33 AM
Post: #5
RE: Find replace templatesets
PHP Code:
find_replace_templatesets('postbit''#'.preg_quote('RSN: <a href="highscores.php?rsusers={$post[\'fid4\']}">{$post[\'fid4\']}</a><br />').'#'''0); 
Writing in a hurry, so not sure if that's right, but it should do it.

Who is Yumi?


It's still the KFC crazed person who can't spell names properly with annoying AlTeRnAtInG CaPiTaLs in the NaMe
Visit this user's website Find all posts by this user
Quote this message in a reply
09-02-2008, 09:50 AM
Post: #6
RE: Find replace templatesets
Zinga, I LOVE YOU!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: