vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Reputation Bar for users with huge loads of the green (https://vborg.vbsupport.ru/showthread.php?t=61174)

vbmechanic 02-03-2004 10:00 PM

Reputation Bar for users with huge loads of the green
 
As the reputation system matures, you will find users quickly hitting the current limit of 1500 reputation points. You should start scaling back the numbers at that point in the admin Cpanel so that it is not distributed so quickly, but it is also useful to have the possibility of more than 1500 points.

Purpose: Remove the current limit of 1500 points and replace the dots with a solid bar of Reputation for users over 1500.

Modifications: 3 additions to functions_showthread.php and 3 new gifs.

Install Time: 10 minutes

Difficulty: Easy

Screenshot attached of a user with 3800 reputation points!

cheers,

vBMechanic

msimplay 02-04-2004 10:44 PM

does this work on rc2 :$

vbmechanic 02-04-2004 10:56 PM

Sure, should work on any version with Reputation.

msimplay 02-04-2004 11:00 PM

PHP Code:

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 

i couldn't find the above in the functions_showthread in rc2
its the last step of the hack

vbmechanic 02-05-2004 01:19 AM

There is a problem with the spacing that you showed in the code box above. I checked it with the zip file and it does not match.. so check again-- it's just a spacing issue that is preventing you from finding this string:

PHP Code:

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 

Thanks, let me know if you get it.

msimplay 02-05-2004 02:14 AM

i'll try again tomorrow am too tired to be hacking thats probably why i'm making mistakes

Rampag33 02-05-2004 04:54 AM

Oh thanks that was getting a lil annoying on my forum.

gamevn 02-05-2004 09:47 AM

Nice mod,i will install it now
thz for sharing

gmarik 02-06-2004 08:47 AM

Could you make it so, it converts all the reputation in a five star hack?
I mean no 10 000 and 20 000 point, but, for example, 2,4 point user ...

vbmechanic 02-06-2004 08:54 AM

Sorry, I don't fully understand.

You would like users to have between 1 and 5 stars-- instead of reputation points?

What would the upper limit be?

1 star = 0 to 500 points
2 stars = 501 to 1500 points

etc etc ?

There would be a limit of 5 stars of course.

rinkrat 02-11-2004 09:20 PM

How about going even higher with bronze then silver then gold bars?

rookie7 04-22-2004 08:06 PM

I like rinkrat's idea too. Can you please extend your hack so it'd do that?

Thanks.

DalaiLamaBob 04-26-2004 09:40 PM

Is it expected behavior for a person with a large negative reputation to also get the green bar?

Otherwise it works great.

TWTCommish 04-27-2004 04:58 PM

Problem.

Cold Steel 04-27-2004 07:30 PM

Quote:

Originally Posted by DalaiLamaBob
Is it expected behavior for a person with a large negative reputation to also get the green bar?

Otherwise it works great.

Large negative, as in -1912.

dutchbb 06-12-2004 11:05 AM

Great hack bro, installed it!

TWTCommish 06-12-2004 02:17 PM

Anyone else having the same problem I am?

Dan 06-12-2004 03:33 PM

nice hack :) I may use this

Cold Steel 06-12-2004 03:43 PM

Quote:

Originally Posted by DalaiLamaBob
Is it expected behavior for a person with a large negative reputation to also get the green bar?

Otherwise it works great.

Anyone else have this problem?

mekimirme 06-14-2004 12:54 AM

yea us too

Club3G 08-23-2004 01:49 PM

We applied the hack and our green bars and all seperated and hacked up. Any ideas?

Borgs8472 09-01-2004 04:59 PM

Bar is hacked out here too ... would really love to use this one!

dano 09-22-2004 03:02 PM

I want to install this, but want to make sure this issue is fixed. Bump for the creator.

azher 09-23-2004 03:46 PM

Quote:

Originally Posted by dano
I want to install this, but want to make sure this issue is fixed. Bump for the creator.

I just installed this and love it.

At first, I had the same problem as TWTCommish and (possibly) Club3G and I thought the instructions missed something, but after re-reading them, it seems like it's just something that may be easily overlooked.

Where it reads:

Code:

***** Below:

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

***** Add:

// Reputation Bar Hack -- START

if ($post['reputation'] > 1500) {
                $post['reputationdisplay'] .= "<img src=\"$stylevar[imgdir_reputation]/reputation_endright.gif\" border=\"0\" />";
}

// Reputation Bar Hack -- END

Perhaps some better wording would be:

Code:

***** Below:

eval('$post[\'reputationdisplay\'] .= "' . fetch_template('postbit_reputation') . '";');

}

***** Add BELOW:

// Reputation Bar Hack -- START

if ($post['reputation'] > 1500) {
                $post['reputationdisplay'] .= "<img src=\"$stylevar[imgdir_reputation]/reputation_endright.gif\" border=\"0\" />";
}

// Reputation Bar Hack -- END

The curly brace is easily lost because in the text file, it's indented way over to the right. It makes all the difference in the world. ;)

dutchbb 12-24-2004 02:11 PM

this was a great hack for us... but now even the bar is getting too long for some members :D:D

Is it possible to make for example a blue or gold bar for users with more then 5000 or 6000 points? :)

Paul M 12-24-2004 04:37 PM

You could try this alternative ;

https://vborg.vbsupport.ru/showthread.php?t=69836

dutchbb 12-24-2004 06:06 PM

Thanks, but a complete new bar would make it shorter instead longer :)

Smitty 07-28-2008 04:29 AM

Anyone know of anything like this for 3.7.2?


All times are GMT. The time now is 06:57 PM.

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.01130 seconds
  • Memory Usage 1,777KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete