vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Display extra 'Golden' pips when members have large reputations (https://vborg.vbsupport.ru/showthread.php?t=69836)

nathanaus 01-07-2005 10:53 PM

Thank you kindly

MorrisMcD 01-16-2005 05:12 AM

Awesome hack.. And so simple.. Thanks

mindbuster 01-21-2005 04:11 PM

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:

Paul M 01-21-2005 06:30 PM

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 ?

mindbuster 01-21-2005 09:49 PM

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 :rolleyes:

It's working fine now :p

Thanks, nice hack.

Paul M 01-21-2005 10:23 PM

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 :rolleyes:

It's working fine now :p

Thanks, nice hack.

Glad it's working - now you can click on install. :)

Lottis 01-25-2005 08:51 AM

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;
}

Paul M 01-25-2005 04:27 PM

You replace the code you just posted, just like the instructions say. :)

Lottis 01-25-2005 04:41 PM

Find ;


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

<current block of code>

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


This is not the same. ;)
Ore is it? :blush:

mindbuster 01-25-2005 06:09 PM

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
  • Page Generation 0.02040 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete