[REQ]Reputation Displayed As Numbers

Reputation Displayed As Numbers

Version: 1.21 This is an updated and improved version.

Made this thread to give support and share simplified version of the modification.

This modification does the following on the postbit display:

Before modification:

Rep: XXXXXXXXX

After modification:

Reputation: 1046
XXXXXXXXX



Update Log
------------

1.2 -> 1.21

- Fixed issue where reputation amount in numbers would still be displayed if user would have disabled reputation display through user control panel. (Thanks to airborneCAL for noticing this)

1.1 -> 1.2

- Replaced the string "Reputation" with $vbphrase[reputation]. (Thanks to Icy for noticing this)

In "postbit" (horizontal style) and/or "postbit_legacy" (vertical style) template find:



PHP:
      $post[reputationdisplay]


REPLACE WITH:



PHP:
<if condition="$post['showreputation']">$vbphrase[reputation]: $post[reputation]<br /></if>$post[reputationdisplay]


Please note that you might have to modify it to make it appear perfect on your skin. On my community's Graphite and iSkin styles I didn't have to do anything more special, but on Default Style style I had to place a <br /> in front of the REPLACE WITH code to make it appear on a new line.
 
Back
Top