The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I want to make it so people can only give rep in one forum. I figured the best way to do this would be to make a conditional statement around the rep icon. What would be the right way to do this?
Code:
<if condition="forumid=1"></if> |
|
#2
|
|||
|
|||
|
Code:
<if condition="$thread[forumid]==1">blah</if> |
|
#3
|
||||
|
||||
|
I assume that you meant $thread, right?
|
|
#4
|
|||
|
|||
|
ooops, yes. edited
|
|
#5
|
||||
|
||||
|
thanks
what would be the correct syntax for multiple forums? Code:
<if condition="$thread[forumid]==array(1,2,3)">blah</if> |
|
#6
|
|||
|
|||
|
it would be
Code:
<if condition="in_array($thread[forumid], array(X,Y,Z))">blah</if> |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|