Announcement

Collapse
No announcement yet.

Make Rep # linkable in postbit?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Make Rep # linkable in postbit?

    Hey,

    Not sure if this is the right section for this question so please redirect me if it's not.

    I made my post bit so it shows the "reputation number" next to the green icon as done through this mod:

    http://www.vbulletin.org/forum/showt...=177052&page=2

    Now I would like to make that number linked so that if another user clicks on it, it brings up the add or remove reputation menu that you would receive from clicking the normal add reputation button.

    Is this possible? Am I making sense?

    Thanks!

  • #2
    Yes you can do that. Here is the postbit code for the rep link. You can adapt it to hyperlink your rep number:

    Code:
    		<if condition="$show['reputationlink']">
    			<span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="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></span>
    			<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
    		</if>
    This requires some HTML ability.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X