Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Display extra 'Golden' pips when members have large reputations Details »»
Display extra 'Golden' pips when members have large reputations
Version: 1.21, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.x Rating:
Released: 09-23-2004 Last Update: 05-08-2005 Installs: 40
 
No support by the author.

This modification is no longer available or supported.

This simple modification extends the existing reputation display system into three flexible groups - dark green & light green pips (similar to the default) followed by 'golden' pips. The number and value of the pips in each group is defined by six variables in the code.

The defaults in the hack make the first 5 pips worth 100, followed by 5 pips worth 200, followed by the golden pips worth 1000 (max 10) - so ;

1 - 100 = 1 Dark green
101 - 200 = 2 Dark green
401 - 500 = 5 Dark green

501 - 700 = 5 Dark green, 1 Light green
701 - 900 = 5 Dark green, 2 Light green
501 - 1500 = 5 Dark green, 5 Light green

1501 - 2500 = 5 Dark green, 5 Light green, 1 Gold
2501 - 3500 = 5 Dark green, 5 Light green, 2 Gold

10501 - onwards = 5 Dark green, 5 Light green, 10 Gold

Negative reputations are similarly displayed in red (no gold). If your reputation is zero then the neutral grey pip is displayed. A screenshot of someone with 5000 points is attached (note: the word "Reputation:" has been removed from our postbit display, so only pips are shown).

v1.1 Minor update: Added missing code for people who disable the display of their reputation. If you don't use or allow members to disable their display then you have nothing to worry about, otherwise just apply the modified hack. Also made the 'golden ball' slightly less dark.

v1.21 Added another level for people who exceed all the pips set in the main three levels - this displays a larger 'star' for each time they have passed the maximum allowed by the three pip levels - and then resets the pips to start again. Another star will be displayed each time they "Lap" the main levels.

Show Your Support

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

Comments
  #32  
Old 01-07-2005, 10:53 PM
nathanaus nathanaus is offline
 
Join Date: Dec 2004
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you kindly
Reply With Quote
  #33  
Old 01-16-2005, 05:12 AM
MorrisMcD's Avatar
MorrisMcD MorrisMcD is offline
 
Join Date: Nov 2003
Location: Cincinnati, Ohio
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome hack.. And so simple.. Thanks
Reply With Quote
  #34  
Old 01-21-2005, 04:11 PM
mindbuster mindbuster is offline
 
Join Date: Oct 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Having a problem, no matter how high a reputation is it only shows greens/light greens, no gold ones.

It shows 5 dark greens and 6 light greens, and thats all, no gold.

I followed the easy instructions, but no worky :disappointed:
Reply With Quote
  #35  
Old 01-21-2005, 06:30 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mindbuster
Having a problem, no matter how high a reputation is it only shows greens/light greens, no gold ones.

It shows 5 dark greens and 6 light greens, and thats all, no gold.

I followed the easy instructions, but no worky :disappointed:
That sounds like the existiing reputation display - are you sure you uploaded the changed file ?
Reply With Quote
  #36  
Old 01-21-2005, 09:49 PM
mindbuster mindbuster is offline
 
Join Date: Oct 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
That sounds like the existiing reputation display - are you sure you uploaded the changed file ?
I did.........atleast now i did....... :tired:

Maaan, after installing 9 hacks including some major ones like uCS/v3arcade/vbacmps/vBaGallery etc etc one would guess i wouldnt screw this up

It's working fine now

Thanks, nice hack.
Reply With Quote
  #37  
Old 01-21-2005, 10:23 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mindbuster
I did.........atleast now i did....... :tired:

Maaan, after installing 9 hacks including some major ones like uCS/v3arcade/vbacmps/vBaGallery etc etc one would guess i wouldnt screw this up

It's working fine now

Thanks, nice hack.
Glad it's working - now you can click on install.
Reply With Quote
  #38  
Old 01-25-2005, 08:51 AM
Lottis Lottis is offline
 
Join Date: Sep 2004
Location: Norway
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I run 3.0.6 anf this is how my function.reputation lookes like; :surprised:
Soo, where should i put the replacement?

// ###################### Start getreputationimage #######################
function fetch_reputation_image(&$post, &$perms)
{
global $vboptions, $stylevar, $vbphrase;

if (!$vboptions['reputationenable'])
{
return true;
}

$reputation_value = $post['reputation'];
if ($post['reputation'] == 0)
{
$reputationgif = 'balance';
$reputation_value = $post['reputation'] * -1;
}
else if ($post['reputation'] < 0)
{
$reputationgif = 'neg';
$reputationhighgif = 'highneg';
$reputation_value = $post['reputation'] * -1;
}
else
{
$reputationgif = 'pos';
$reputationhighgif = 'highpos';
}

if ($reputation_value > 500)
{ // bright green bars take 200 pts not the normal 100
$reputation_value = ($reputation_value - ($reputation_value - 500)) + (($reputation_value - 500) / 2);
}

$reputationbars = intval($reputation_value / 100); // award 1 reputation bar for every 100 points
if ($reputationbars > 10)
{
$reputationbars = 10;
}

if (!$post['showreputation'] AND $perms['genericpermissions'] & CANHIDEREP)
{
$posneg = 'off';
$post['level'] = $vbphrase['reputation_disabled'];
eval('$post[\'reputationdisplay\'] = "' . fetch_template('postbit_reputation') . '";');
}
else
{
if (!$post['reputationlevelid'])
{
$post['level'] = $vboptions['reputationundefined'];
}
for ($i = 0; $i <= $reputationbars; $i++)
{
if ($i >= 5)
{
$posneg = $reputationhighgif;
}
else
{
$posneg = $reputationgif;
}
eval('$post[\'reputationdisplay\'] .= "' . fetch_template('postbit_reputation') . '";');
}
}

return true;
}
Reply With Quote
  #39  
Old 01-25-2005, 04:27 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You replace the code you just posted, just like the instructions say.
Reply With Quote
  #40  
Old 01-25-2005, 04:41 PM
Lottis Lottis is offline
 
Join Date: Sep 2004
Location: Norway
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find ;


// ###################### Start getreputationimage #######################

<current block of code>

/*================================================= =====================*\
|| ################################################## ##################


This is not the same.
Ore is it? :blush:
Reply With Quote
  #41  
Old 01-25-2005, 06:09 PM
mindbuster mindbuster is offline
 
Join Date: Oct 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it is

It's you current block of code as you mentioned further up
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 11:49 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.05704 seconds
  • Memory Usage 2,310KB
  • 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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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