Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
Show numerical user reputation as tooltip in the green bar instead of as line of text Details »»
Show numerical user reputation as tooltip in the green bar instead of as line of text
Version: 1.01, by Kzyl-orda Kzyl-orda is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.1.7 Rating:
Released: 10-23-2011 Last Update: Never Installs: 5
Template Edits
Re-useable Code Translations  
No support by the author.

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>

Screenshots

File Type: jpg example.jpg (24.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-27-2011, 09:12 PM
imported_dfmafia's Avatar
imported_dfmafia imported_dfmafia is offline
 
Join Date: Jun 2004
Location: Wherever Uncle Sam Needs!
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FIRST!!

loving this
Reply With Quote
  #3  
Old 11-01-2011, 04:03 PM
Kzyl-orda Kzyl-orda is offline
 
Join Date: Jun 2008
Location: Venice
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually what I did was not right, since my forum is new I misunderstood what I was doing. However it is fine now, the problem is fixed (see main post).
I'm trying to make of this an auto-template modification, so you'll have to install it as a normal product instead making manual change, I'm learning how to do this, just about time.
Reply With Quote
  #4  
Old 03-24-2012, 02:56 AM
FernandoFG FernandoFG is offline
 
Join Date: Mar 2009
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is just great... I wish something like this for 3.8.x
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08424 seconds
  • Memory Usage 2,259KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete