vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Reputation Score to Existing Members (https://vborg.vbsupport.ru/showthread.php?t=257136)

misterfade 01-14-2011 04:45 PM

Reputation Score to Existing Members
 
My forum has been around for years and only now I've decided to enable the user reputation system. However, everyone has to start at the bottom now, but is there a way for everyone to have a certain score right away, based on how long they've been on the site?

Thanks.

kh99 01-14-2011 05:32 PM

I think you could create a script by starting with code out of admincp/misc.php, in the "rebuildreputation" section. That takes the base reputation as a parameter, but you probably calculate it using the join date. You'd also have to change the "ELSE" part of the CASE in the update (and the query used when there's no reputation records)...

OK, probably easier said than done.

misterfade 01-14-2011 10:04 PM

LOL, ya it would be complicated doing it like that. What ended up doing though, was run a few simple queries to give users a certain amount of points based on their join date or amount of posts. So, problem solved!


All times are GMT. The time now is 11: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.01200 seconds
  • Memory Usage 1,703KB
  • 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)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