The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Remove Reputation from Certain Forums
I wish to remove all users ability to place reputation in Certain Forums.
I had this working in 3.8 using an array conditional however it appears all this has changed in vB4 and I'm at a loss after searching around for the last few hours. The following code is where I am at but it is turning off the rep icon in all Forums: In Postbit Code:
<vb:if condition="$show['reputationlink'] AND in_array($foruminfo['forumid'], array(5,14))"> Cheers Simon |
#2
|
||||
|
||||
Instead of $foruminfo['forumid'], try $threadinfo['forumid'] or $thread['forumid']
|
#3
|
|||
|
|||
Still turns the button off in all forums with either the $thread or $ threadinfo versions.
In Postbit Code:
<vb:if condition="$show['reputationlink'] AND in_array($thread['forumid'], array(5,14))"> <span class="reputationpopupmenu popupmenu popupcustom" title="{vb:raw post.postid}"><a class="popupctrl reputation" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&p={vb:raw post.postid}" title="{vb:rawphrase add_reputation}" rel="nofollow" id="reputation_{vb:raw post.postid}"><!--<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase add_reputation}" />--> </a></span> </vb:if> Simon |
#4
|
||||
|
||||
Have you tried spitting out the $show['reputationlink'] variable to see if it's true or false? It could be that part of your condition that is set incorrectly. (I always spit out all the variables when having condition problems, so do that and see which variable is incorrect that way.)
|
#5
|
|||
|
|||
No idea how to do that... sorry
Cheers Simon |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|