The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
access forumid in a php file
Hi
What do I need to do to access the forumids in a separate php file? I'm currently able to get info from the php file into a template, but would like to fine tune it more based on which forum its is in. I used to use this in templates. <if condition="$forumid == 41"> Thanks |
#2
|
|||
|
|||
Is this an external file you're including via a plugin? Try:
Code:
global $foruminfo; $forumid = $foruminfo['forumid']; if ($forumid == 42) { ... |
#3
|
|||
|
|||
Hi
I tried this below, after trying it in the full file, but got a blank result in both. In case it's a factor I'm using as the hook gobal_bootstrap_init_start <?php global $foruminfo; $forumid = $foruminfo['forumid']; echo $forumid; ?> thanks |
#4
|
|||
|
|||
Yeah I think it is the hook. Try global_bootstrap_complete instead.
|
#5
|
|||
|
|||
Wow, that worked.
Thanks for your help |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|