View Full Version : What is IF conditional for : if forum id is x, in plugin
basketmen
07-15-2011, 02:17 AM
i tried this but its looks like not working
if ($foruminfo['forumid'] == x) {
stuff
}
the hook used are postbit_display_complete
please help guys, what is the right if conditional, for if forum id is x, in plugin
Zachery
07-15-2011, 02:41 AM
$GLOBALS[forumid] try that.
basketmen
07-15-2011, 04:52 AM
its works, many thanks, it will be usefull for all of us
if ($GLOBALS['forumid'] == x) {
wonder why this usually conditional not working, maybe because using postbit_display_complete hook
if ($foruminfo['forumid'] == x) {
or
if ($forumid == x) {
Zachery
07-15-2011, 06:43 AM
$foruminfo isn't available in the postbit
thread[forumid] would have possibly been correct. GLOBALS should almost always work.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.