The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
How would I be able to get the ID of a forums parent? I would like to include this code into a plugin to control a side menu.
Thanks! |
|
#2
|
||||
|
||||
|
$foruminfo['parentid'] I think.
|
|
#3
|
|||
|
|||
|
Yup - that works!
Thank you! |
|
#4
|
||||
|
||||
|
parentid is correct.
You have not provided enough information to determine the array name, where are you trying to use it. |
|
#5
|
|||
|
|||
|
I am trying to use it to display a menu on the forumdisplay template via plugin on the global_start hook.
I am using the forum ID to determine the contents of the sidebar(sidemenu). Not every forum will have a unique side menu so I have to 'default' the menu back to the ID of it's parent. |
|
#6
|
||||
|
||||
|
Then I see no reason for the above not to work, so you'll have to post the code you are using.
|
|
#7
|
|||
|
|||
|
Oh - it does work fine. I just screwed up when I posted before (but edited it after).
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|