vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Who has posted the most? (https://vborg.vbsupport.ru/showthread.php?t=232721)

Blade-uk 01-10-2010 05:21 PM

Who has posted the most?
 
I am going to be running a competition on my forum.

I need a way of telling who has posted the most between now and this time next month.

Is there any way to run a query of some sort or anything to determine who has made the most posts from 2 seperate dates?

Many thanks,

Andy

kh99 01-10-2010 06:31 PM

Maybe something like

Code:

SELECT userid, username, posts FROM vb_user ORDER BY posts DESC LIMIT 10
where 'vb_' is whatever your TABLE_PREFIX is, of course.

For some reason when I used this in the Maintenance Execute SQL Query box in the ACP, the LIMIT didn't work, so I don't know, maybe there's something wrong with that syntax.

Of course the above would have to be executed at the correct times. There's probably a way to do a query on the posts table to find out how many posts were made by each user for any time period.

Blade-uk 01-10-2010 07:47 PM

Hi thanks kh99, i ended up using:

SELECT userid, username, posts FROM user ORDER BY posts DESC LIMIT 10000 in phpmyadmin and downloaded the tables into an excel file so i have a list and then i will run it again in a months time when the competition ends and find the difference between the users posts now and then.

Thanks a lot :)

By the way, the limit works in phpmyadmin :)

Andy

kh99 01-10-2010 08:16 PM

You could just leave the LIMIT off completely if you want everyone (and I guess the "ORDER BY" as well, or maybe order by id or name instead).

I guess I was just thinking that you'd be interested in the top posters, but of course you won't know who that is until the end. :)

FitgirlWorld 01-12-2010 03:20 AM

I did the same contest but I simply used a mod from this website--- Cyb Advanced Forum Statistics and kept track of it that way.


All times are GMT. The time now is 03:50 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.01028 seconds
  • Memory Usage 1,711KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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