The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Display extra 'Golden' pips when members have large reputations Details »» | |||||||||||||||||||||||||||
Display extra 'Golden' pips when members have large reputations
Developer Last Online: Nov 2023
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
|
Comments |
#32
|
|||
|
|||
Thank you kindly
|
#33
|
||||
|
||||
Awesome hack.. And so simple.. Thanks
|
#34
|
|||
|
|||
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: |
#35
|
||||
|
||||
Quote:
|
#36
|
|||
|
|||
Quote:
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. |
#37
|
||||
|
||||
Quote:
|
#38
|
|||
|
|||
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; } |
#39
|
||||
|
||||
You replace the code you just posted, just like the instructions say.
|
#40
|
|||
|
|||
Find ;
// ###################### Start getreputationimage ####################### <current block of code> /*================================================= =====================*\ || ################################################## ################## This is not the same. Ore is it? :blush: |
#41
|
|||
|
|||
Yes it is
It's you current block of code as you mentioned further up |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|