PDA

View Full Version : Automated template edit problem


Harutyun Dr.
11 May 2008, 10:38
I'm writing plugin wich adds some link to navbar. I'm trying to replace string


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

with some string added to it. So i wrote


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


But it doesn't work. Can someone help me? Thanks:)

Boofo
11 May 2008, 10:43
That won't work. This is what you need to replace:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



and you need to replace it with the corresponding code. Look in your template table in phpmyadmin, if possible.

Harutyun Dr.
12 May 2008, 13:11
Yes, i've seen that in temlatecache there is a such string, but replacement gives an error (my pages don't load completely after i've installed my plugin)
the code is:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


So why it doesn't work???

Boofo
12 May 2008, 19:04
Because it is wrong maybe???

Try this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Harutyun Dr.
13 May 2008, 07:34
Thanks a lot, it's OK now!:D