The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Ok.. so I've followed Kerry-Anne's instructions from
https://vborg.vbsupport.ru/showthread.php?t=119933 I get the template to show, just no where I want it... ---------------- This is my plugin info: Code:
Plugin Name: testtemp_plugin Hook Location: parse_templates Plugin PHP Code: eval('$testtemp = "' . fetch_template('testtemp') . '";'); Code:
Plugin Name: Cached - testtemp_plugin Hook Location: cache_templates Plugin PHP Code: $globaltemplates = array_merge($globaltemplates, array('testtemp')); ---------------- Ok so it works fine when I put in the showthread template but not in the postbit template... thats a problem though, because I'm trying to split the postbit template... I have many conditionals if certain forums, certain post number etc etc and i'd really like to split the template... Not sure why its not working in the postbit template... Any help is appreciated, thanks in advance.... |
#2
|
||||
|
||||
![]()
postbit is created and processed inside an object, which means your variable is not in scope. You need to bring it into scope with a plugin at postbit_display_complete, and the global keyword.
|
#3
|
|||
|
|||
![]()
ok... i think...
so which plugin do I make postbit_display_complete the hook location and what do you mean about global keyword? thanks in advance, seriously... |
#4
|
||||
|
||||
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|