vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   functions_reputation change, please help (https://vborg.vbsupport.ru/showthread.php?t=225446)

dutchbb 10-17-2009 05:18 PM

functions_reputation change, please help
 
I would like to change the reputation points distribution a bit. I've found the file and code to edit but I'm stuck changing it to what I want:

PHP Code:

    if ($reputation_value 500)
    {  
// bright green bars take 200 pts not the normal 100
        
$reputation_value = ($reputation_value 2) + 250;
    }

    
$reputationbars intval($reputation_value 100); // award 1 reputation bar for every 100 points
    
if ($reputationbars 10)
    {
        
$reputationbars 10;
    } 

What I would like to achieve:

For the first green bar is needed: 125 points
second and following bars: 500 points

then after 3000 points 1 bar for every 1000 points
and after 8000 points 1 bar for every 1500 points

I tried but I'm not sure how this works.

(if anyone would like to makes this a mod, feel free to do so. would be great if any number of points could be used in control panel).

dutchbb 10-25-2009 04:37 PM

Bump, is this hard to do? I'm would be happy with just a few tips to get me started.

Lynne 10-26-2009 02:11 AM

Sorry, I'm not that familiar with the reputation system, so I don't have an answer for you.


All times are GMT. The time now is 10:05 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.00917 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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