The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
preregister var once
Hi, I have a problem
My code in showthread_postbit_create is similar to this Code:
if($post['postcount'] == 1) { vB_Template::preRegister('postbit_legacy', array('myvar' => 'HELLOWORDL!')); } Code:
if($post['postcount'] == 1) { vB_Template::preRegister('postbit_legacy', array('myvar' => 'HELLOWORLD!')); } else { vB_Template::preRegister('postbit_legacy', array('myvar' => '')); } |
#2
|
||||
|
||||
Why do you have to set it to ''? If it isn't defined, then that should be what it is anyway. Or, set $myvar to '' before the condition.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|