![]() |
how do I detect a forum id via plugin?
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') ){ Thanks for the help |
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. |
All times are GMT. The time now is 06:36 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|