![]() |
$forum['forumid'] in showthread
So after a lot of head scratching I found out that $forum['forumid'] isn't registered in showthread.php and it's only in forumdisplay.
HTML Code:
<vb:if condition="in_array($foruminfo['forumid'], array(1,2,3))">Show Me in 1 2 or 3</vb:if> It would be really useful for eg showing adverts in certain forums only, showing additional custom fields in certain forums and certain links in certain forums. eg a sales history link only showing in the sales forum. I've loads of uses for it. Anyone have any suggestion or came across a mod or product that has somthing similar to this already I may be able to use? If nothing exists how would I go about coding one (what hooks would you suggest). Any information or advice is welcome. Thanks |
Try $thread or $threadinfo instead of $forum or $foruminfo.
|
Quote:
|
Quote:
|
$threadinfo['forumid'] should work (depending on what template or hook though...).
|
All times are GMT. The time now is 11:53 AM. |
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:
|