The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
|||
|
|||
![]()
Based on what condition you want to remove the icon?
|
#3
|
||||
|
||||
![]()
I think he/she means if a certain forum number is this, remove the reputation icon from this forum. Maybe like that?
|
#4
|
|||
|
|||
![]()
<if condition="$forum['forumid'] == X">
The above should be the conditional your looking for. X being the forum id. |
#5
|
|||
|
|||
![]()
danny, that code will remove the reputation icon from showing in the forum i specify?
|
#6
|
||||
|
||||
![]() Quote:
If you want it the other way around, you'd use this code instead: Code:
<if condition="$forum['forumid'] != X"> |
#7
|
|||
|
|||
![]()
where would i put this code??
|
#8
|
||||
|
||||
![]()
The postbit, where the reputation variable is defined. Around it.
|
#9
|
|||
|
|||
![]()
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? |
#10
|
||||
|
||||
![]()
Change this:
HTML Code:
<if condition="$show['reputationlink']">
HTML Code:
<if condition="$show['reputationlink'] AND $forum['forumid'] != X">
I think that should work.. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|