![]() |
Conditional statement based on forum
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> |
Code:
<if condition="$thread[forumid]==1">blah</if> |
I assume that you meant $thread, right?
|
ooops, yes. edited
|
thanks
what would be the correct syntax for multiple forums? Code:
<if condition="$thread[forumid]==array(1,2,3)">blah</if> |
it would be
Code:
<if condition="in_array($thread[forumid], array(X,Y,Z))">blah</if> |
All times are GMT. The time now is 03:05 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:
|