vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Show numerical user reputation as tooltip in the green bar instead of as line of text (https://vborg.vbsupport.ru/showthread.php?t=272658)

Kzyl-orda 10-23-2011 10:00 PM

Show numerical user reputation as tooltip in the green bar instead of as line of text
 
1 Attachment(s)
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>


imported_dfmafia 10-27-2011 09:12 PM

FIRST!!

loving this

Kzyl-orda 11-01-2011 04:03 PM

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.

FernandoFG 03-24-2012 02:56 AM

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


All times are GMT. The time now is 09:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01121 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete