The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Can certain box appear in certain forum / catagories?
I want a form to appear in specific forums or catagories after post #1. I am not sure how to do this. I have done it so it appears in all forums after post #1.
This is the code I use. Code:
<!-- iRapid Links Checker starts here --> <if condition="$post[postcount] == 1"> <iframe name="home" src="http://www.irapid.co.uk/test/link.html" border="0" frameborder="0" width="500" height="149"></iframe> </if> <!-- iRapid Links Checker starts here --> |
#2
|
||||
|
||||
Try this conditional
Quote:
Quote:
Best regards, Val. |
#3
|
|||
|
|||
Quote:
I had a feeling it would be something similar to $forum[forumid] == X but wasnt sure if I could have two if's. Works Is it possible so I only have to enter the catagory number rather than the forum number as I have over 200 (sub)forums and I only want it in half of them? Regards, Saurav |
#4
|
||||
|
||||
Quote:
<if condition="in_array($forumid, array(X,Y,Z))"></if> Add as much forum/category ids as you want separated by commas Regards, Val. |
#5
|
|||
|
|||
Unfortunately it doesn't work
Thanks for trying. Regards, Saurav |
#6
|
||||
|
||||
how about this one
<if condition="in_array($forum['forumid'], array(1,2,4,6,10,21,38))"></if> |
#7
|
|||
|
|||
Nope, doesn't work sorry.
Regards, Saurav |
#8
|
|||
|
|||
$foruminfo instead of $forum
|
#9
|
|||
|
|||
Just tried that, still no luck.
Regards, Saurav |
#10
|
||||
|
||||
Which template are you using this in?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|