vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Top Referrer This Month On Forumhome - How do I do it? (https://vborg.vbsupport.ru/showthread.php?t=181174)

citeman 06-01-2008 07:30 AM

Top Referrer This Month On Forumhome - How do I do it?
 
Is there any product or plugin which can do this? Show top ten referrers this month on forum home?

Or if someone could help me create a plugin for this. I am new to vBulletin and don't know the methods we can extract such information in an optimized way. I can do it with expensive mysql queries but I would like to avoid that.

Regards,
Sid

veenuisthebest 06-01-2008 09:37 AM

this shows a lot more than you want
Cyb - Advanced Forum Statistics

citeman 06-01-2008 10:01 AM

Thanks Veenu.. I've tried that hack it is too resource intensive. I am thinking of creating a plugin for this which will simply calculate and display the top ten referrers on the home page.

If anyone has any idea how the queries should be formed please let me know.

The dissplay would be a simple list like:

Top Referrers This Month
1 - USERNAME(232), 2 - USERNAME(200), ...

--------------- Added [DATE]1212373269[/DATE] at [TIME]1212373269[/TIME] ---------------

I am trying this query to get the referrers:

SELECT COUNT(*) AS referrals, user.username, user.userid FROM vbulletin_user AS users LEFT JOIN vbulletin_user ON (users.referrerid = user.userid) WHERE users.referrerid <> 0 GROUP BY users.referrerid ORDER BY referrals DESC LIMIT 1;

But its giving me an error: ERROR 1054 (42S22): Unknown column 'user.username' in 'field list'

This is taken from: https://vborg.vbsupport.ru/showthrea...threadid=25170


All times are GMT. The time now is 09:31 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.00980 seconds
  • Memory Usage 1,712KB
  • 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