The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Accessing board settings in plugin
Hi guys,
I'm trying to understand the new vbulletin release and, writing a plugin, I'm facing a strange problem. I'm trying to write a plugin with this code Code:
$output=$vbulletin->options['bbtitle']; vB_Template::preRegister('header',array('my_insertvar' => $output)); But the var is empty. I've tried several hooks (global_start was the right place for me according to old release) but with no success. Can someone help me? Thank you! Regards |
#2
|
||||
|
||||
Go into the functions.php file where the header is rendered (I think that's the one - you can try a search if that isn't it) and look further up on the page for a hook location that is rendered before the header and then use that one.
|
#3
|
|||
|
|||
The correct hook is "global_bootstrap_init_start". Thank you very much Lynne!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|