The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Accessing the $forum array
Hi guys,
I'm new to vbulletin but have found it fantastic so far. I'm currently modding my forumhome template so that next to each category (ie. a forum set to no posts) it has the number of subforums inside (rather than a threadcount). When I call $forum[subforums] however it returns nothing. Am I using it incorrectly and if so can anyone tell me where I can read more about the $forum array? I've searched for a while to no avail... Thanks in advance! |
#2
|
|||
|
|||
The easiest way is to create a small plugin that dumps the contents of the array. The contents may change depending on the page that is loading it.
|
#3
|
|||
|
|||
Thanks for your reply Marco, much appreciated.
I've realised that I had to set my subforums depth setting to 1 in order for $forum[subforums] to contain anything. Now that I can see that, I just need to be able to retrieve an integer for the 'count' of subforums rather than the insertable 'summary' of them. <?php var_dump($forum) ?> isn't giving me any sort of result in the forumbit_level2_nopost template - is there another way I should be using it? edit: Just realised I can't run php from inside templates, looking more into plugins now. --------------- Added [DATE]1270165709[/DATE] at [TIME]1270165709[/TIME] --------------- This seems to be getting too complicated, fast - all I want to do is get the number of subforums in a category on forumbit_level2_nopost, just like I can do for threadcount or replycount - surely this variable exists already and I don't have to create a plugin with hooks in a template (while not knowing which template I should be hooking) ? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|