The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I am writing a plugin script that would output different content based on the form ID and script?
I am having a heck of a time remembering how to detect the forum id from php tho (i did search...I'm sure it's somewhere, but I am not able to find it) Something like Code:
if ((vbulletin->script == 'index') || (vbulletin->script == 'forumdisplay') ){
if (vbulletin->forum['id]==1) { do this;};
}
Thanks for the help |
|
#2
|
||||
|
||||
|
THIS_SCRIPT is the first one you're looking for.
The other is usually $foruminfo['forumid'], but it really depends where the plugin is executed. |
![]() |
|
|