vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Forum Quick Stats Cache Serialize Hack v1.1 (https://vborg.vbsupport.ru/showthread.php?t=61581)

surfhog 04-05-2004 10:41 AM

This looks really kool and i am sure it's just what i was seeking :)

Please tell me that it works with vb3.0.0 ??

Thanks

Boofo 04-05-2004 10:45 AM

Should work just fine. ;)

surfhog 04-05-2004 12:51 PM

sorry to ask boofo

I am getting db error, can you tell me what i may have done wrong please and thanks

Database error in vBulletin 3.0.0:

Invalid SQL:
SELECT user.userid, user.username, COUNT(post.postid) AS postcount
FROM vb3_post
LEFT JOIN vb3_thread ON (post.threadid = thread.threadid)
LEFT JOIN vb3_user ON (post.userid = user.userid)
WHERE thread.forumid=2
GROUP BY post.userid
ORDER BY postcount DESC
LIMIT 1

mysql error: Unknown table 'user' in field list

mysql error number: 1109

Boofo 04-05-2004 01:33 PM

Did you change this:

" . TABLE_PREFIX . "

to vb3

by chance?

surfhog 04-05-2004 01:37 PM

sorry boofo "newbie alert here" :( lol

Do you mean when i installed vb? if so then yes my db is set to vb3_

So I guess I have messed up now then?

Boofo 04-05-2004 01:38 PM

No, I mean when you ran the query? Did you change the query to show that yourself? ;)

Boofo 04-05-2004 01:42 PM

That's the top poster query, right? If it is, here is what you need to run for that query:

PHP Code:

    $topposter $DB_site->query_first("
        SELECT user.userid, user.username, COUNT(post.postid) AS postcount
        FROM " 
TABLE_PREFIX "post
        LEFT JOIN " 
TABLE_PREFIX "thread ON (post.threadid = thread.threadid)
        LEFT JOIN " 
TABLE_PREFIX "user ON (post.userid = user.userid)
        WHERE thread.forumid=
$forumid
        GROUP BY post.userid
        ORDER BY postcount DESC
        LIMIT 1
    "
); 


surfhog 04-05-2004 01:43 PM

ok i have missed something here :( I have not run any db query, so I must have missed something in your instructions. I have just made edits to forumdisplay.php file, by way of copy and paste from your instructions. Done template and new settings.

(-0-0-) Do you think I need some? lol

Thanks

Boofo 04-05-2004 01:52 PM

No, you did right. When you entered a forum, it runs the queries. Did you get any more errors or was that the only one?

Check the forumdisplay.php and make sure the query for the top poster is the one I posted in that last message. Let me know what you find out. We'll get it going for you, hang in there. ;)

surfhog 04-05-2004 02:45 PM

thanks boofo :)

okay I have double checked all the instructions, inc edits to forumdisplay.php, templates and new setting.

Now I am lost, because I do not even have the new template displayed, which i didnt before.

I am assuming that I should have run a sql query via phpadmin? or something I am missing something really silly here. lol lol :o


All times are GMT. The time now is 09:23 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.01060 seconds
  • Memory Usage 1,736KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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