vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Display Enhancements - SM Forum Statistics (https://vborg.vbsupport.ru/showthread.php?t=178727)

WhaLberg 05-09-2008 10:00 PM

SM Forum Statistics
 
Hello everybody,

After I saw a thread months ago, I told the thread author that I will do it and I made my promise, well, a little bit late.

What is this statistics product?
This is NOT a board statistics mod. This is a forum statistics mod that displays the top posters, top replied threads (within two months) and top viewed threads (within two months).

INSTALLATION:
  • Import the product.
  • Open the FORUMDISPLAY template.
  • Add after $navbar:
    HTML Code:

    $forumtops
  • Save.

That's all.

Congratulations!

Any idea to improve this mod is welcome.

NOTE: Works on 3.6.x.

Update notes:
v1.1 - Top poster query edited.
v1.2 - Thread queries edited.

Hornstar 05-10-2008 04:13 AM

So is this an updated Top X Stats or from another mod? I have been waiting for Top X Stats to be updated for a while myself.

ElForro 05-10-2008 04:39 AM

Thanks! I was the one who asked for it... I will try it...

I'm getting this error:

Code:

Invalid SQL:

              SELECT COUNT(*) AS count, post.userid, post.username FROM foro_post
                          LEFT JOIN foro_thread AS t ON(post.threadid = t.threadid)
                          LEFT JOIN foro_forum AS f ON(f.forumid = t.forumid)
                          WHERE f.forumid = 3
                          GROUP BY username
                          ORDER BY count DESC
                          LIMIT 5;

MySQL Error  : Unknown column 'post.userid' in 'field list'
Error Number : 1054
Date        : Saturday, May 10th 2008 @ 02:55:01 AM
Script      : http://www.xxxx.com/forumdisplay.php?f=3
Referrer    : http://www.xxxx.com/
IP Address  : XXX.XX.XX.XX
Username    : XXXX
Classname    : vB_Database


indie2industry 05-10-2008 05:09 AM

First install. Lets see how this works

:-)

indie2industry 05-10-2008 05:17 AM

and working perfectly

ElForro 05-10-2008 05:23 AM

Now I tried to install in my test forum wich is a VB 3.7 (before i tried with 3.6.9) and I'm getting this error

Code:

Database error in vBulletin 3.7.0:

Invalid SQL:

              SELECT COUNT(*) AS count, post.userid, post.username FROM vbpost
                          LEFT JOIN vbthread AS t ON(post.threadid = t.threadid)
                          LEFT JOIN vbforum AS f ON(f.forumid = t.forumid)
                          WHERE f.forumid = 2
                          GROUP BY username
                          ORDER BY count DESC
                          LIMIT 5;

MySQL Error  : Unknown table 'post' in field list
Error Number  : 1109


WhaLberg 05-10-2008 05:46 AM

I have updated the product. Please re-import and tell me the result.

asj 05-10-2008 06:09 AM

Quote:

Originally Posted by ElForro (Post 1514600)
Now I tried to install in my test forum wich is a VB 3.7 (before i tried with 3.6.9) and I'm getting this error

Code:

Database error in vBulletin 3.7.0:

Invalid SQL:

              SELECT COUNT(*) AS count, post.userid, post.username FROM vbpost
                          LEFT JOIN vbthread AS t ON(post.threadid = t.threadid)
                          LEFT JOIN vbforum AS f ON(f.forumid = t.forumid)
                          WHERE f.forumid = 2
                          GROUP BY username
                          ORDER BY count DESC
                          LIMIT 5;

MySQL Error  : Unknown table 'post' in field list
Error Number  : 1109


the same problem :(

WhaLberg 05-10-2008 08:38 AM

Please download the attachment and if you had installed the previous version, overwrite it when importing.

Defkalion 05-10-2008 09:07 AM

Nice work. :)


All times are GMT. The time now is 08:39 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.01941 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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