The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
How to change a variable value INSIDE of a template based on condition (test)?
Hello.
How to change the value of a php file var WITHIN a template? I'm still trying to understand this vB system. Example: For FAQ search, I want to change the default value of 'Matching Options' on-the-fly from 'ALL' to 'ANY' via the template and NOT by hacking faq.php. For example, I created this via the Plugin Manager in hook location, 'faq_start': PHP Code:
How can I call this code WITHIN the template? It would be ideal (at least until I understand the 'hook' system better) to call this via "($hook = vBulletinHook::fetch_hook('match_default')) ? eval($hook) : false;" directly inside of the template at the appropriate location OR some other way, which I have no idea... :ermm: Any suggestions on how to accomplish this end result? Thanks in advance. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|