The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Parse Templete Problems in my Plugin
Code:
<plugin active="1" executionorder="1"> <title>Set Widths (Parse Templates)</title> <hookname>parse_templates</hookname> <phpcode> <![CDATA[ $find = '<td class=\"alt2\"><img src'; $replace = '<td class=\"alt2\" width=\"$vboptions[\'setwidths_forumhome_icon\']\"><img src'; $vbulletin->templatecache['forumhome_forumbit_level2_post'] = str_replace($find,$replace,$vbulletin->templatecache['forumhome_forumbit_level2_post']); ]]> </phpcode> </plugin> |
#2
|
||||
|
||||
Use $vbulletin->options['whatever'] (and probably ' . $vbulletin->options['whatever'] . ' in the code)
|
#3
|
|||
|
|||
Wont work inside parse template plugin, gives me ARRAY('whatever')
|
#4
|
||||
|
||||
I have used $vbulletin->options['whatever'] just fine inside of that hook location. I'm not sure what else to suggest.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|