![]() |
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.. |
its showing the reputaiton icon and letting me post after that Oblivion..
|
Doing the if condition that way, I think it's defining the forum in X as wanting to show the reputation icon, not taking it away. Because you're saying, if reputation is on and forum = this forum, show the repuation icon, not, don't show the reputation icon.
|
Code:
<if condition="$show['reputationlink'] AND $forum['forumid'] == X"> |
I'm guessing that perhaps the $forum variable can't be used on the postbit without a plugin or code modification.? I'm not 100% sure to be honest with you.. :speechless:
|
can someone else give me some input on this please. thanks.
ggrr its works actually. i had to do this to my postbit_legavy template. not my postbit. i just figured that out. i had no idea the 2 were different or that it mattered. that sucks;/ so many things ives tried and never figured out why the didnt work unless it was told to edit the legacy template... what a fool. thanks guys ;) |
There really should be an easier way to do this....allowing certain forums to have reputation......can someone figure out a way to add this in forum manager?
|
this is just what i'm looking for too, the 'allow reputation for this forum' as a forum option among the other forum options. this should be a plugin/hack/mod request! actually, a standard feature request :)
|
All times are GMT. The time now is 07:25 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:
|