The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Automated template edit problem
I'm writing plugin wich adds some link to navbar. I'm trying to replace string
PHP Code:
PHP Code:
|
#2
|
||||
|
||||
That won't work. This is what you need to replace:
Code:
".(($GLOBALS['vbulletin']->options['enablememberlist']) ? (" |
#3
|
|||
|
|||
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:
$lookfor='".(($GLOBALS[\'vbulletin\']->options[\'enablememberlist\']) ? ("'; $replace='some text'.$lookfor; $vbulletin->templatecache['navbar'] = str_replace($lookfor, $replace, $vbulletin->templatecache['navbar']); |
#4
|
||||
|
||||
Because it is wrong maybe???
Try this: Code:
$lookfor='".(($GLOBALS[\'vbulletin\']->options[\'enablememberlist\']) ? ("'; $replace='some text'; $vbulletin->templatecache['navbar'] = str_replace($lookfor, $replace, $vbulletin->templatecache['navbar']); |
#5
|
|||
|
|||
Thanks a lot, it's OK now!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|