Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2010, 12:18 AM
Boko577's Avatar
Boko577 Boko577 is offline
 
Join Date: Dec 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 03-20-2010, 12:36 AM
vicelover's Avatar
vicelover vicelover is offline
 
Join Date: Dec 2009
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, you can.
go to this url
https://vborg.vbsupport.ru/showthread.php?t=237042
hope you will get what you need.
Reply With Quote
  #3  
Old 03-20-2010, 04:48 PM
Boko577's Avatar
Boko577 Boko577 is offline
 
Join Date: Dec 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks I'll check it out!

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

Quote:
Originally Posted by vicelover View Post
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.
Reply With Quote
  #4  
Old 03-20-2010, 05:01 PM
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can enable "rep power" in admincp>thread display options>Post Elements>Display Reputation Power
Reply With Quote
  #5  
Old 03-20-2010, 06:58 PM
Boko577's Avatar
Boko577 Boko577 is offline
 
Join Date: Dec 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mandingo View Post
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.
Reply With Quote
  #6  
Old 03-20-2010, 07:09 PM
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #7  
Old 03-20-2010, 11:38 PM
Boko577's Avatar
Boko577 Boko577 is offline
 
Join Date: Dec 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 03-20-2010, 11:58 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Reply With Quote
  #9  
Old 03-21-2010, 12:13 AM
Boko577's Avatar
Boko577 Boko577 is offline
 
Join Date: Dec 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princeedward View Post
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...

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?
Reply With Quote
  #10  
Old 03-21-2010, 12:26 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boko577 View Post
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...

Reply With Quote
Reply


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 04:58 AM.


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.04137 seconds
  • Memory Usage 2,270KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete