The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
Your pointer to the register_globals() function came in handy. I used what I learned to register my template globally for use in all four "forumhome_forumbit_levelx_xxx" templates.
I used this in the file called by my plugin: Code:
$template = vB_Template::create('ad_board_inside_forum_listing'); $template->register('forumid', $forumid); $cw_forumbit_global_with_id['board_inside_forum_listing'] = $template->render(); $GLOBALS[cw_forumbit_global_with_id] = $cw_forumbit_global_with_id; UPDATE: (Thanks to kh99 for his guidance.) The following line isn't needed and was used incorrectly: $template->register_global('cw_forumbit_global_with_id'); Then in the forumbit templates I used: Code:
{vb:raw GLOBALS.cw_forumbit_global_with_id.board_inside_forum_listing} Be Well |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|