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 - Reputation as Numbers and/or Green Bars (https://vborg.vbsupport.ru/showthread.php?t=237985)

Thr33 03-10-2010 10:00 PM

Reputation as Numbers and/or Green Bars
 
1 Attachment(s)
Hey guys, im very new to PHP so this took me wayyyy longer than it should have done lol.

in postbit_legacy and/or postbit

find
PHP Code:

            <vb:if condition="$show['reputation']">
                <
span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
            </
vb:if> 

replace with
PHP Code:

            <vb:if condition="$show['reputation']">
                <
span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">Reputation: {vb:raw post.reputation}</span>
            </
vb:if> 

I also added the rep symbol infront of the "Reputation", you can do this by adding
PHP Code:

<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase add_reputation}" /> 

before.

Dr.osamA 03-11-2010 08:07 AM

installed

thanxxx man
________
Amateur ++++

Merlinii 03-12-2010 12:43 AM

I was unable to get it to work

Here is my code from postbit
Any suggestions?

</vb:if>

{vb:raw template_hook.postbit_userinfo_left}
<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">Reputation: {vb:raw post.reputation}</span>
</vb:if>

Merlinii 03-12-2010 12:49 AM

Ok, also replaced it in postbit_legacy and it is now working correctly.

Thanks!
Good Job!

paradoxx109 08-21-2010 06:30 AM

how can I enable the green bars?

Thr33 12-06-2010 04:15 AM

@paradox109, The green bars are {vb:raw post.reputationdisplay}, instead of {vb:raw post.reputation} for numbers.

@Merlinii, You could just change the code to something similar without the span class, so it would look like this:
Code:

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

This would have the same effect plus it will align the columns like the rest of the extra_user_info

POL_ED 12-15-2010 09:52 PM

Quote:

Originally Posted by TopFloorDjs (Post 2129907)
@paradox109, The green bars are {vb:raw post.reputationdisplay}, instead of {vb:raw post.reputation} for numbers.

@Merlinii, You could just change the code to something similar without the span class, so it would look like this:
Code:

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

This would have the same effect plus it will align the columns like the rest of the extra_user_info

may by like this ..
Reputation >> {vb:rawphrase reputation}
Code:

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


rjive 01-15-2011 02:03 AM

Thank you for this information. I found it to be VERY useful.

Can anyone help me to get the rep to display on the member profile? Thanks in advance.

POL_ED 02-01-2011 09:43 PM

Display Reputation Comments on Members Profile Page
Display Reputation Comments Given
and
Display Reputation POINTS in User CP

seite7 02-06-2011 07:05 AM

It seems this view doesn't honor the setting "User can hide reputation".
Anyone knows how to achieve that?


All times are GMT. The time now is 03: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.01152 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete