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)

rookie7 10-05-2004 06:44 PM

Thank you very much. Works great!

Renat_ 12-28-2004 04:22 PM

working as a charm! Thanks!

Paul M 12-28-2004 05:38 PM

Quote:

Originally Posted by Renat_
working as a charm! Thanks!

Glad to hear it. :)

Megareus Rex 12-31-2004 10:57 PM

Yes, I and my members much prefer this to the normal rep. The gold adds an extra sense of accomplishment :D (even though my site is a major repping site, and thus most people have gold pips, lol)

Paul M 12-31-2004 11:55 PM

Quote:

Originally Posted by Megareus Rex
Yes, I and my members much prefer this to the normal rep. The gold adds an extra sense of accomplishment :D (even though my site is a major repping site, and thus most people have gold pips, lol)

You could always alter the band values so they need more points to "go gold" :)

nathanaus 01-07-2005 01:28 AM

Quote:

Originally Posted by Paul M
Find ;

$posneg = $repa;

replace the next line with ;

if (!$cutoff) { eval('$post[\'reputationdisplay\'] .= "' . fetch_template('postbit_reputation') . '";'); }


and again, find ;

$posneg = $repb;

and replace the next line with ;

if (!$cutoff) { eval('$post[\'reputationdisplay\'] .= "' . fetch_template('postbit_reputation') . '";'); }
:D

Hi, I love this hack. I installed it on my testing forum and will tranfer it over to my live forum soon.

One question - this small mod to the code I have quoted, is that supposed to remove all the green pips to display the gold pips only - when the users rep gets that high?

if so, it doesn't seem to be working for me.

I tested it, got all the green one happening, then eventually got the gold to show up next to the green as was written in the original hack. However, I have modified the line under the $repa and $repb section to reflect the change outlinedi n the quoted text above. When the user now gets to the lvel of a gold pip it keeps going right next to the green.

Have I done something wrong or does that modification not do what I thought it would?

I was hoping it would completely remove all the green (say 5 dark green and 5 light green) with one gold pip, then again as the users rep build more gold pip's are added. Essentially making it look like the user has gone above that of "ordinary" user rep and now has a line of gold instead of a line of green and gold.

Thank you

Paul M 01-07-2005 01:41 AM

I think you missed this bit, which is also required as part of that mod.

Quote:

Originally Posted by Paul M
Edit;

Under ;

$repval = $post['reputation'];

Add ;

$cutoff = ($repval > (($band_a_val * $band_a_count) + ($band_b_val * $band_b_count))) ;


nathanaus 01-07-2005 01:50 AM

Quote:

Originally Posted by Paul M
I think you missed this bit, which is also required as part of that mod.

Oops so I did.

BRILLIANT it all works.

This mod is great! Thank you so much for making it.

nathanaus 01-07-2005 01:52 AM

Oh another thought. okay so say you wanted to go beyond gold to say plantinum.

The user starts out in dark green then after 5 pips goes to light green. After 10 green pip the user then goes to one gold pip. Moving along the user gets to 5 gold pips, what would be needed to add a different coloured pip after that (eg platinum)? So the user then has 5 gold and one platinum up to 5 gold and 5 platinum. Essentially after the user gets to that next level beyond green it becomes like the two green's but with gold and another colour. Is that possible/hard?

Would that be a matter of adding a $repd?

Also (sorry) does this hack over-ride the reputation settings in the admincp? I notice in the code to add into the functions_reputation.php code you have written that a value is 100 posts b value is 200 posts c value is 1000, where in the admincp you can set different levels for different post counts.

Paul M 01-07-2005 11:10 AM

Quote:

Originally Posted by nathanaus
Oh another thought. okay so say you wanted to go beyond gold to say plantinum.

The user starts out in dark green then after 5 pips goes to light green. After 10 green pip the user then goes to one gold pip. Moving along the user gets to 5 gold pips, what would be needed to add a different coloured pip after that (eg platinum)? So the user then has 5 gold and one platinum up to 5 gold and 5 platinum. Essentially after the user gets to that next level beyond green it becomes like the two green's but with gold and another colour. Is that possible/hard?

Would that be a matter of adding a $repd?

Basically yes, you could add a fourth (or more) band by replicating the appropiate parts of the code for repd, repe etc. BTW, I found Platinum to be a hard colour to add to the little images - it just looked grey ......

Quote:

Originally Posted by nathanaus
Also (sorry) does this hack over-ride the reputation settings in the admincp? I notice in the code to add into the functions_reputation.php code you have written that a value is 100 posts b value is 200 posts c value is 1000, where in the admincp you can set different levels for different post counts.

You are referring to the description bands - this hack has no effect on them.


All times are GMT. The time now is 07:53 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.01098 seconds
  • Memory Usage 1,745KB
  • 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
  • (7)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