vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Reputation Number & Level in Postbit (https://vborg.vbsupport.ru/showthread.php?t=327006)

1MoreGoodGuy 01-03-2019 10:00 PM

Reputation Number & Level in Postbit
 
1 Attachment(s)
Reputation Number & Level in Postbit (works in 4.2.4)

https://vborg.vbsupport.ru/external/2019/01/1.png

This took me quite a bit of time to figure out (I'm by no means an expert) and I couldn't find this anywhere on this site.

In postbit_legacy find this:

PHP 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> 

Directly underneath it paste this:

PHP Code:

<dd><vb:if condition="$show['reputation']">
Reputation: {vb:raw post.reputation}</dd>
    </
vb:if>
<
dd><vb:if condition="$show['reputation']">
Rep Level: {vb:raw post.level}</dd>
    </
vb:if> 

Enjoy.

gnrx 01-11-2019 08:50 AM

With your permission, like in my forum I have users from 2 differents languages, I made some modification, I add a language phrases.

In admincp, I create 2 phrases:
Code:

postbit_reputation
and
postbit_replevel

After this, the code is this:
Code:

<dd><vb:if condition="$show['reputation']">
{vb:rawphrase postbit_reputation} {vb:raw post.reputation}</dd>
    </vb:if>
<dd><vb:if condition="$show['reputation']">
{vb:rawphrase postbit_replevel} {vb:raw post.level}</dd>
    </vb:if>

And now, all users view the phrases in her language.

Thanks and regards.

1MoreGoodGuy 01-19-2019 10:16 PM

Glad you were able to modify it to suit your needs


All times are GMT. The time now is 04:43 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.01030 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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