The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Problem with using plugin variables in templates
So for some time now I have been ripping my hair out trying to figure out how to use my plugin variables in my custom templates. After reading countless threads and articles on preReigsting my variables, I have zero luck in actually accomplishing this task.
Here's my basic ripped plugin example hooking newthread_forum_start Code:
$my_var = "abc"; $templater = vB_Template::create('newtemplate'); $templater->register('my_var', $my_var); $myrendervar = $templater->render(); vB_Template::preRegister('newthread',array('myrendervar ' => $myrendervar)); What's the deal? What am I not understanding about plugin variables that's preventing me from using basic ones? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|