![]() |
Nice addition to the latest version Bob. :)
|
I have a vbrc3 tables prefix that i edited it to the queries. Now i get this message:
Invalid SQL: SELECT COUNT(*) AS referrals, user.username, user.userid FROM vb3_user AS users LEFT JOIN vb3_user ON (users.referrerid = user.userid) WHERE users.referrerid <> 0 GROUP BY users.referrerid ORDER BY referrals DESC LIMIT 1 mysql error: Unknown table 'user' in field list mysql error number: 1109 Is there anything to edit to get rid of this message? |
Try this:
PHP Code:
|
Thanks for the quick reply. That never worked. So i took that whole referrer thing out and it is now working. I do not use the referer system anyways. Once again boofo thanks for the quick reply.
|
That's strange. Optimize your tables in the Admin CP and try it again. There is no way that that shouldn't work unless you have a table a little messed up.
No problem on the reply. I just try to support my hacks as best I can. ;) Don't forget to click install. ;) |
Hey Boofo thanks for the hack :)..
To tell you the truth i was thinking of making something like this a few days ago (with my limited php knowlege tho) hehe.. With my header i display total posts, members and threads on the forum. Instead of adding statscache to every file (pain in the ass) i was thinking maybe adding that code (main code) to the phpinclude or even trying to add statscache to the specialtemplates using the phpinclude (possible?), im not to sure with this new vb3 where the phpincludes comes into play so yeh dunno if it would be possible...(havnt had time to look) What do you guys and gals think? Thanks |
I would leave it on the forumhome. You'd be adding a lot of unneccessay queries when the cache updates to all of your pages. ;)
But if you wanted to add the stats themselves to different pages and have the forumhome updated them as needed, then all you have the do is add $statscache to the specialtemplates of whatever page you want them on and do un unserialize and it would do no queries that way. ;) |
I would perfer it to be on the header, same way as i had it on vb2... (used to it now hehe)
The only parts i use are total threads, posts and members. Ive edited the rest out of your script. I was going to set it to update every 20mins, therefor it would only run thoes 3-4 queries every 20mins, which isent so bad considering they are only quick ones.. im just trying to think of the best way of doing it ?. Wow you do reply fast ;) |
==================
thats good and all, but if its in my header.. well thats alot of files.. hehe |
Give it a shot and let me know how it goes. I've never tried doing it that way before. ;)
If I was going to add it to my header, I would run the hack on the forumhome and let it do all of the updating and then just unserialize it. But to tell you the truth, I'm not sure what file I would have to do that in. Maybe init.php? |
All times are GMT. The time now is 10:35 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|