Announcement

Collapse
No announcement yet.

Would like to display reputation as number in postbit

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

  • Mark.B
    replied
    You may have to play around with this, though it should work ok.

    Assuming you're using the legacy postbit:

    In template postbit_legacy, find:
    Code:
    <vb:if condition="$show['infraction'] OR $show['reppower']">
    Replace with:
    Code:
    <vb:if condition="$show['infraction'] OR $show['reppower'] OR $show['reputation']">
    Then find:
    Code:
    <vb:if condition="$show['reputation']">
    						<vb:if condition="$show['reppower']">
    					<dt>{vb:rawphrase reppower}</dt> 
    					<dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd> 
    						</vb:if>
    					</vb:if>
    Replace with this:
    Code:
    <vb:if condition="$show['reputation']">
        <vb:if condition="$show['reppower']"><dt>{vb:rawphrase reppower}</dt> <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd></vb:if>
        <dt id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:rawphrase reputation}</dt> <vb:if condition="$post[showreputation]"><dd style="color: <vb:if condition="$post[reputation]>0">green<vb:else /><vb:if condition="$post[reputation]<0">red<vb:else />gray</vb:if></vb:if>" title="{vb:raw post.username} {vb:raw post.level}"><span style="font-weight:bold;">{vb:raw post.reputation}</span><vb:else /><span>hidden</span></dd></vb:if>
    </vb:if>
    Rep power is calculated using a number of factors that are configurable in the admin cp, it can't be edited directly as a number.

    Leave a comment:


  • Would like to display reputation as number in postbit

    I want it to look like this: http://www.vbulletin.com/forum/showt...=1#post1795986

    But i'm using vb4


    Also if you could help, how to edit one's Rep Power?

Related Topics

Collapse

Working...
X