Harutyun Dr.
05-11-2008, 09:38 AM
I'm writing plugin wich adds some link to navbar. I'm trying to replace string
<if condition='"$vboptions['enablememberlist']"> with some string added to it. So i wrote
$vbulletin->templatecache['navbar'] = str_replace('<if condition="$vboptions[\'enablememberlist\']">', 'some string'.'<if condition="$vboptions[\'enablememberlist\']">', $vbulletin->templatecache['navbar']);
But it doesn't work. Can someone help me? Thanks:)
<if condition='"$vboptions['enablememberlist']"> with some string added to it. So i wrote
$vbulletin->templatecache['navbar'] = str_replace('<if condition="$vboptions[\'enablememberlist\']">', 'some string'.'<if condition="$vboptions[\'enablememberlist\']">', $vbulletin->templatecache['navbar']);
But it doesn't work. Can someone help me? Thanks:)