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)

Boofo 04-05-2004 02:49 PM

No, what you need to do is set the update cache time to 0 to run this to set the template up and then you can set it back to whatever you want after that.

surfhog 04-05-2004 02:50 PM

okay thanks I will try that then lol

[HTL] rules ......... lol

surfhog 04-05-2004 03:00 PM

well i have to say thanks for helping boofo, but my patience has gone with this one, maybe I will try it at a later date when i have more knowledge.

all the best :)

Boofo 04-05-2004 03:55 PM

Ok, well, when you're ready, I'll be here. Sorry you had so much trouble with it but it should have been no problem at all to install. Hmmm....

surfhog 04-10-2004 01:35 PM

okay I am here lol

I still getting as per:
https://vborg.vbsupport.ru/showpost.php?p=495901&postcount=63

I have done as per:

https://vborg.vbsupport.ru/showpost.php?p=495974&postcount=71

Any ideas please, the other thing

if I view a forum with no posts = nps
if I attempt to view a forum with posts, then I get the error:

Quote:

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-10-2004 02:00 PM

That's the same problem as you are having with the other hack. For some reason the user table is giving us fits when you have a table prefix in the db and we use the TABLE_PREFIX on it. I am still looking into it and I will come up with an answer as soon as I know something. The strange thing is that there are those that also have a table prefix and are not having this same problem. :(

Sit tight and either disable that query for now or wait in installing the hack for this one until I get an answer. ;)

surfhog 04-10-2004 03:26 PM

funny you say that boofo, i suspected as much myslef after i posted here.
yes I have seen these on several vb3 boards, so it must work and i do feel it would be a worth while modification to have on any board, hence my persistance.

i wonder if i am the only one having/had problems with these?
okay i will disable for now and await further instructions ;)
thank you

mharmon 04-10-2004 03:39 PM

This works great.. one question though: How can I change the green color of the

"Last updated at 11:38 AM - April 10th, 2004"

I tried changing the <font color=green> in the template -- but it didn't do anything.

This is a great hack.. I love it!

:)

Boofo 04-10-2004 05:42 PM

That's where you change it, but there are 2 places to change it in the template. ;)

Boofo 04-10-2004 09:22 PM

Quote:

Originally Posted by surfhog
funny you say that boofo, i suspected as much myslef after i posted here.
yes I have seen these on several vb3 boards, so it must work and i do feel it would be a worth while modification to have on any board, hence my persistance.

i wonder if i am the only one having/had problems with these?
okay i will disable for now and await further instructions ;)
thank you

Here's your fix for this hack. It seems that this only affects those with table prefixes and since I don't use a table prefix as well as a lot of others, I didn't have any problem with this query. This will take care of it for you. ;)

Replace the top poster code in the forumdisplay.php with this:

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 AS thread ON (post.threadid = thread.threadid)
        LEFT JOIN " 
TABLE_PREFIX "user AS user ON (post.userid = user.userid)
        WHERE thread.forumid=
$forumid
        GROUP BY post.userid
        ORDER BY postcount DESC
        LIMIT 1
    "
); 

Again, thanks to NTLDR for filling me in on this. ;)


All times are GMT. The time now is 11:50 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.01237 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_quote_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