![]() |
conditional needed - remove reputation icon on forum
ok im trying to understand conditionals and how they work.
i need a conditional to remove the reputation icon on a certain forum so users dont give out rep points on threads in that forum. how would i do that? i was told on vbulletin.com that its a conditional, and thats all i was told. no more info. please help. thanks. |
Based on what condition you want to remove the icon?
|
I think he/she means if a certain forum number is this, remove the reputation icon from this forum. Maybe like that?
|
<if condition="$forum['forumid'] == X">
The above should be the conditional your looking for. X being the forum id. |
danny, that code will remove the reputation icon from showing in the forum i specify?
|
Quote:
If you want it the other way around, you'd use this code instead: Code:
<if condition="$forum['forumid'] != X"> |
where would i put this code??
|
The postbit, where the reputation variable is defined. Around it.
|
tony:
should it go here: <if condition="$show['reputationlink']"><a href="#" onclick="return reputation($post[postid])"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> </if> ?? how should it look?i dont know???i tried with it infront of that <if and after the </if>, nothing happend. i also got <if condition="$show['reputation']">$post[reputationdisplay]</if> in the postbit. where/how do i put the code? |
Change this:
HTML Code:
<if condition="$show['reputationlink']"> HTML Code:
<if condition="$show['reputationlink'] AND $forum['forumid'] != X"> I think that should work.. |
All times are GMT. The time now is 01:22 PM. |
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:
|