The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Reputation, turn off for those who opt not to display
In the postbit template there exist the following lines:
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> </if> I'd like to wrap those lines with a conditional that stops the display of the reputation link if the user has opted not to display their reputation. Something like: <!-- reputation opt in/out detection --> <if condition=" WHAT GOES HERE TO DETECT IF USER IS OPTED NOT TO DISPLAY THEIR REPUTATION?"> <if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> </if> </if> I'm trying to figure out how to detect that the user is allowing their reputation to be shown and then, as I said, not allow them to vote on reputations. Any suggestions would be grand! |
#2
|
|||
|
|||
As far as I know, they can disable it - however, I don't think they could get rid of it completely. It is a good idea, however. I would like something like that as well.
|
#3
|
||||
|
||||
<!-- reputation opt in/out detection -->
<if condition=" $vbulletin->bf_misc_useroptions['showreputation']"> <if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> </if> </if> Looks like "$vbulletin->bf_misc_useroptions['showreputation']" is supposed to be the item I am looking for but it does not seem to function to well in a conditional. Any ideas on how to properly make "$vbulletin->bf_misc_useroptions['showreputation']" work in a conditional? |
#4
|
||||
|
||||
There should not be a space between the " and the $ in that line, but I don't know if that's the problem...
|
#5
|
||||
|
||||
<!-- reputation on/off opt in/out detection -->
<if condition="$vbulletin->userinfo['showreputation']"> <if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> </if> </if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|