vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Change rep to a number in postbit (https://vborg.vbsupport.ru/showthread.php?t=238680)

Boko577 03-20-2010 12:18 AM

Change rep to a number in postbit
 
What's the code and where do I put it? Also is it possible to move the rep to below the avatar? I think it'd look nicer.

vicelover 03-20-2010 12:36 AM

yes, you can.
go to this url
https://vborg.vbsupport.ru/showthread.php?t=237042
hope you will get what you need.

Boko577 03-20-2010 04:48 PM

Thanks I'll check it out!

--------------- Added [DATE]1269107476[/DATE] at [TIME]1269107476[/TIME] ---------------

Quote:

Originally Posted by vicelover (Post 2006834)
yes, you can.
go to this url
https://vborg.vbsupport.ru/showthread.php?t=237042
hope you will get what you need.

That didn't help. I want to change the rep green images to just a number instead, or keep both the images and the rep number.

mandingo 03-20-2010 05:01 PM

You can enable "rep power" in admincp>thread display options>Post Elements>Display Reputation Power

Boko577 03-20-2010 06:58 PM

Quote:

Originally Posted by mandingo (Post 2007140)
You can enable "rep power" in admincp>thread display options>Post Elements>Display Reputation Power

Not rep power, I just want REP. I want REP changed into the number instead of the green block images in the postbit.

mandingo 03-20-2010 07:09 PM

wow,i totally figured it out!!
In template postbit_legacy or postbit
find:

Code:

<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
just delete "display" from it and it shows the number instead of the pips.

--------------- Added [DATE]1269116156[/DATE] at [TIME]1269116156[/TIME] ---------------

So what I did was:

HTML Code:

<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">Rep:{vb:raw post.reputation}</span>

Boko577 03-20-2010 11:38 PM

It changes it to a number, but then when I put Reputation: right before that code, it says Reputation: rep number, but the rep number is on the next line. Can I put them on the same line?

princeedward 03-20-2010 11:58 PM

hi guys....try this one...

PHP Code:

<dt>{vb:rawphrase 'replevel'}</dt> <dd>{vb:raw post.reputation}</dd

you might create new phrase maybe...for rep_level


GO > ACP > LANGUAGE & PHRASES > PHRASE MANAGER > ADD NEW PHRASE
  • Phrase Type: GLOBAL
  • Product: vBulletin
  • Varname: replevel
  • Text: Rep Level or Rep.



goodluck and best regards...

:p

Boko577 03-21-2010 12:13 AM

Quote:

Originally Posted by princeedward (Post 2007309)
hi guys....try this one...

PHP Code:

<dt>{vb:rawphrase 'replevel'}</dt> <dd>{vb:raw post.reputation}</dd

you might create new phrase maybe...for rep_level


GO > ACP > LANGUAGE & PHRASES > PHRASE MANAGER > ADD NEW PHRASE
  • Phrase Type: GLOBAL
  • Product: vBulletin
  • Varname: rep_level
  • Text: Rep Level or Rep.



goodluck and best regards...

:p

Okay I added that phrase, now do I just put that php code into the postbit_legacy or do I put it where it says translation?

princeedward 03-21-2010 12:26 AM

Quote:

Originally Posted by Boko577 (Post 2007313)
Okay I added that phrase, now do I just put that php code into the postbit_legacy or do I put it where it says translation?

if you created new phrase the way i told you....then its okay to add now the code above to your posbit_legacy template...

find this:

PHP Code:

<vb:if condition="$show['reputation']">
<
vb:if condition="$show['reppower']"

add below:

PHP Code:

    <dt>{vb:rawphrase 'replevel'}</dt> <dd>{vb:raw post.reputation}</dd

hope it help you or else...

:p


All times are GMT. The time now is 10:33 PM.

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.01272 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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