The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$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> <vb:if condition="in_array($forum['forumid'], array(4,5,6))">Show Me in 4, 5 or 6</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 |
#2
|
||||
|
||||
Try $thread or $threadinfo instead of $forum or $foruminfo.
|
#3
|
||||
|
||||
I'm still quite the newbie to PHP, but, can't you just register it in showthread.php ???
|
#4
|
||||
|
||||
Quote:
|
#5
|
||||
|
||||
$threadinfo['forumid'] should work (depending on what template or hook though...).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|