The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
where to call includes
I am new to vBulletin, so my apologies if this question has been answered many times before.
I want to grab a list of all forums from the database and splurge them as a menu of links on the right side of the page, to make navigation easier. Since it will be on pretty much EVERY page the user sees, I want to create a variable containing my content, then spit it out in the template. Reading various posts on this board tells me how to use the VB database abstraction layer - the table to interrogate is pretty obvious - but - I am not clear on where I should "hook in" to vbulletin. Is there a standard place to call a 3rd party include? Global.php seems to get called by everything - is that the place to do it? Any help much appreciated, Regards Nick May |
#2
|
||||
|
||||
The hook you'll want is global_start - it is executed on (nearly) every page and will fit your purpose. You can use the vBulletin database class to then query for the information you need. Make sure you take in account permissions for forums though.
|
#3
|
|||
|
|||
Thank you very much - exactly the information I needed.
best wishes nick may |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|