Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Reputation Displayed As Numbers Details »»
Reputation Displayed As Numbers
Version: 1.21, by X1C3W5 X1C3W5 is offline
Developer Last Online: Jan 2008 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.7 Rating:
Released: 02-24-2007 Last Update: Never Installs: 73
Template Edits
 
No support by the author.

This is an updated and improved version of this thread (which was made on my old account).

Made this thread to give support and share simplified version of the modification.

This modification does the following on the postbit display:

Before modification:

Rep: XXXXXXXXX

After modification:

Reputation: 1046
XXXXXXXXX

Real and live examples can be found on my own community (look on the left side at user information):

Graphite Skin
iSkin Skin
Default Style Skin

Update Log
------------

1.2 -> 1.21

- Fixed issue where reputation amount in numbers would still be displayed if user would have disabled reputation display through user control panel. (Thanks to airborneCAL for noticing this)

1.1 -> 1.2

- Replaced the string "Reputation" with $vbphrase[reputation]. (Thanks to Icy for noticing this)

In "postbit" (horizontal style) and/or "postbit_legacy" (vertical style) template find:

PHP Code:
$post[reputationdisplay

REPLACE WITH:

PHP Code:
<if condition="$post['showreputation']">$vbphrase[reputation]: $post[reputation]<br /></if>$post[reputationdisplay

Please note that you might have to modify it to make it appear perfect on your skin. On my community's Graphite and iSkin styles I didn't have to do anything more special, but on Default Style style I had to place a <br /> in front of the REPLACE WITH code to make it appear on a new line.

If you have trouble with anything, I'll try my best to help you out.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-06-2007, 10:14 AM
bagfullofrice bagfullofrice is offline
 
Join Date: Mar 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod, works perfectly.
Reply With Quote
  #13  
Old 03-06-2007, 07:42 PM
mcqwert mcqwert is offline
 
Join Date: Mar 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't appear to work with the postbit set to horizontal.
Reply With Quote
  #14  
Old 03-06-2007, 08:56 PM
Mudvayne's Avatar
Mudvayne Mudvayne is offline
 
Join Date: Dec 2005
Location: /dev/null/
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine for me.
Reply With Quote
  #15  
Old 03-06-2007, 09:29 PM
mcqwert mcqwert is offline
 
Join Date: Mar 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't even find the code there now...

Something strange has happened, I very well might have messed it up.
Reply With Quote
  #16  
Old 03-06-2007, 09:42 PM
mcqwert mcqwert is offline
 
Join Date: Mar 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what my script looks like. It is still showing the little green icons, can anyone point me in the right direction?

Code:
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">Reputation: $post[reputation]<br />$post[reputationdisplay]</span></div></if>
Reply With Quote
  #17  
Old 03-08-2007, 05:17 PM
GruntHalo GruntHalo is offline
 
Join Date: Dec 2006
Location: New Jersey, USA
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks man I'm using it on my site right now.
Reply With Quote
  #18  
Old 03-09-2007, 03:30 PM
X1C3W5 X1C3W5 is offline
 
Join Date: Feb 2007
Location: Belgium
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mcqwert View Post
This is what my script looks like. It is still showing the little green icons, can anyone point me in the right direction?

Code:
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">Reputation: $post[reputation]<br />$post[reputationdisplay]</span></div></if>
That is weird, since you inserted the code, it should be showing up some of it.

Make sure your cache is up-to-date.

PS: The green gems will still show, it will just also display your actual reputation in numbers above the reputation gems.
Reply With Quote
  #19  
Old 03-09-2007, 04:01 PM
Mudvayne's Avatar
Mudvayne Mudvayne is offline
 
Join Date: Dec 2005
Location: /dev/null/
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by X1C3W5
REPLACE WITH:
HTML Code:
Reputation: $post[reputation]<br />$post[reputationdisplay]
Why don't you use
HTML Code:
$vbphrase[reputation]: $post[reputation]<br />$post[reputationdisplay]
Reply With Quote
  #20  
Old 03-09-2007, 08:15 PM
X1C3W5 X1C3W5 is offline
 
Join Date: Feb 2007
Location: Belgium
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It says Rep: .

I rather have "Reputation: 312" displayed on my community than "Rep: 312".

Looks better and professional if you ask me.
Reply With Quote
  #21  
Old 03-09-2007, 11:55 PM
Mudvayne's Avatar
Mudvayne Mudvayne is offline
 
Join Date: Dec 2005
Location: /dev/null/
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesn't. Its a standerd vBulletin Global phrase. Search for it in ACP. You 'll find it. $vbphrase[reputation] shows Reputation.
Reply With Quote
Reply

Thread Tools

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 09:55 PM.


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.04808 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (2)bbcode_html
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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