vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Automated Awards System (https://vborg.vbsupport.ru/showthread.php?t=58707)

Dean C 11-21-2003 04:03 PM

This system exists - its called the stars hack ;)

sabret00the 11-23-2003 02:03 PM

isn't the stars hack based on post count?

Dean C 11-23-2003 04:43 PM

And so is yours - hence when you get to x posts you get a new (set of) image(s). Its the same theory... :)

sabret00the 11-23-2003 11:32 PM

only one of my images is based on post count tho :confused:
Quote:

Originally Posted by sabret00the
sylus yours sounds interesting but with mine i have only one real award based on post count, the rest are event attendees, photos (photopost), contest winners (hmmm contest hack, that's an idea lol), recruiters, quiz masters, community contributors (seems as though that would have to be manual after all), etc but as you can none of these is based on user post count. you have to much faith in my php skills faranth ;)


sabret00the 02-15-2004 01:56 PM

would it be possible to do the queries on all users over lets say 2 days (userid1-200) every 2 hours doing 2 hundred more and have that data cached on a per week basis? or would it kill the database with the queries?

sabret00the 04-02-2004 09:41 AM

ok i've figured out how to do this, on a very large board it might be a bit harder though.

anyway you query everything
if user have a possitive amount of posts over his or her days on the board along with whether they've been on in the last month and you'll have your regular poster award

you can query the database to see if userid XX has submitted a quiz or not for the Quiz Master award

the same as above for the Photo award (integrated to Photopost)

if userid XX has referals over X then you can give em the Referrer award

Staff member would be more of a conditional if userid XX = usergroupid XX OR XX then give them this award

and stuff like Event Attendee, Contributor, Contest Winner would be manual via the ACP



anyway with all that you set it to run a cron job to update the relevant database settingsand then cache them all for 24 hours or XX hours and you've got your automated awards system.

now i've not had time to bone up on my php :( but it would be a great hack, if anyone wants to make it feel free, i'll probably make it an official request when my brain switches on and i can figure out if i'm missing anything.


All times are GMT. The time now is 04:45 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.01080 seconds
  • Memory Usage 1,726KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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