![]() |
Thank you kindly
|
Awesome hack.. And so simple.. Thanks
|
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: |
Quote:
|
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 :rolleyes: It's working fine now :p Thanks, nice hack. |
Quote:
|
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; } |
You replace the code you just posted, just like the instructions say. :)
|
Find ;
// ###################### Start getreputationimage ####################### <current block of code> /*================================================= =====================*\ || ################################################## ################## This is not the same. ;) Ore is it? :blush: |
Yes it is ;)
It's you current block of code as you mentioned further up :D |
All times are GMT. The time now is 06:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|