Back to vBulletin 4.x Template Modifications

Show numerical user reputation as tooltip in the green bar instead of as line of text
Mod Version: 1.01, by Kzyl-orda

vB Version: 4.1.7 Rating: (0 vote - 0 average) Installs: 5
Released: 24 Oct 2011 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

This simple template modification allows you to show the numerical user reputation inside the alternative text that you see when overing the reputation bar just above said avatar.
You can also choose to diplay the reputation power instead, or both.

I'm sure the picture below will explain it much more simply.

Postbit Templates >> postbit_reputation
Actually this is the only change needed.
  • Find:
    HTML Code:
    <img class="repimg" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw posneg}.png" alt="{vb:raw post.username} {vb:raw post.level}" />
  • To have shown the reputation replace with:
    HTML Code:
    <img class="repimg" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw posneg}.png" alt="{vb:raw post.username} {vb:raw post.level} ({vb:raw post.reputation})" />
  • To have shown the reputation power replace with:
    HTML Code:
    <img class="repimg" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw posneg}.png" alt="{vb:raw post.username} {vb:raw post.level} ({vb:raw post.reppower})" />
  • To have shown the reputation AND the reputation power replace with:
    HTML Code:
    <img class="repimg" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw posneg}.png" alt="{vb:raw post.username} {vb:raw post.level} ({vb:raw post.reputation} - {vb:raw post.reppower})" />
[*]Postbit Templates >> postbit_legacy
If you installed the 1.00 mod version you can revert this one to the default, it was a my mistake to ask you to modify this
If you are newly installing the mod ignore this part.
If you fear that you may have changed anything else in that template, this was the modification I previously suggested, so you can reverse it. This modification is not necessary. To not diplay the reputation power as a line simply go to:
Admin CP >> Settings >> Options >> Thread Display Option >> Post Element
and there you can select wheter to display or not that line.
  • Find:
    HTML Code:
                    <vb:if condition="$show['infraction'] OR $show['reppower']">
                    <dl class="user_rep">
                        <vb:if condition="$show['infraction']">
                        <dt>{vb:rawphrase infractions}</dt> 
                        <dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
                        </vb:if>
                        <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>
                    </dl>
                    </vb:if>
  • Replace with:
    HTML Code:
                    <vb:if condition="$show['infraction']">
                    <dl class="user_rep">
                        <vb:if condition="$show['infraction']">
                        <dt>{vb:rawphrase infractions}</dt> 
                        <dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
                        </vb:if>
                    </dl>
                    </vb:if>

Download

No files for download.

Screenshots

Click image for larger version
Name:	example.jpg
Views:	522
Size:	24.0 KB
ID:	134031  

Similar Mods

Show Thread Enhancements Better Tooltip - Text Enhancement [BBCode] vBulletin 4.x Add-ons
Reputation Bar for users with huge loads of the green vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024