The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Defining a forum id conditional?
Does anyone know anyway to define a forumid conditional?
What I'm basically looking to do is replace the new thread button on 4 different forums with a new link, but I want the other forums to remain intact. Is there a global forumid conditional to call here? |
#2
|
||||
|
||||
It would be something like this:
HTML Code:
<if condition="$forum[forumid] = 1 OR $forum[forumid] = 3 OR $forum[forumid] = 5"> <img src="./board/images/logo/logo-xbox.jpg" /> <else /> <if condition="$forum[forumid] = 2 OR $forum[forumid] = 4 OR $forum[forumid] = 6"> <img src="./board/images/logo/logo-playstation.jpg" /> <else /> <img src="$stylevar[titleimage]" /> </if> </if> </if> |
#3
|
||||
|
||||
perfect - thanks!
|
#4
|
|||
|
|||
What would the conditional be if I wanted something to appear on all the pages EXCEPT the forumhome?
thanks |
#5
|
|||
|
|||
Quote:
hehe </if> Why not use in_array() rather than all the ORS |
#6
|
||||
|
||||
I actually just learned about the array =)
|
#7
|
|||
|
|||
What im trying to do is add a second column in the navigation bar on all pages except the forum home - All the information appears if I remove the conditional (on all the pages) - If I add the <if> condition then none of the code shows up on any page.
any ideas? PHP Code:
I just realized that the conditional is working if im in a thread - but doesnt work on any Main forum page - when I say main forum page I mean everything outside of a post... this is the code PHP Code:
|
#8
|
|||
|
|||
Any ideas what I can change to make it show on the main forums?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|