The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB3 Forum Quick Stats Cache Serialize Hack v1.1 Details »» | |||||||||||||||||||||||||||
vB3 Forum Quick Stats Cache Serialize Hack v1.1
Developer Last Online: Jun 2012
vB3 Forum Quick Stats Cache Serialize Hack
Version 1.1 (By Boofo) What does this hack do? It will display stats about each forum at the top of that forum. (NOTE: The attachments info will NOT show in forums that have no attachments.) Also included in the hack is Logician's vB2 "Last Post Minute Hack" (with his permission for the vB2 version, of course) optimized and redone for vB3. It now uses NO queries to get the last minute info. This hack will display a link the last post and the time the last post was made (i.e. "1 minute" or "2 days", etc.) as well as the name and link to the last poster in the forum. The stats are cached and the cache is only updated at a time set by you. With an option in the Admin CP, you can reset the time between cache updates without having to edit any more files once this hack is installed. This hack will add 1 optimized query (for the user's threads and replies stats) on a cache read, but since this hack is serialized, the cache read itself will not pull a query. On a cache update, it will add 6 queries to update the datastore. And then drop back down to the one query until the next cache update. This hack will make a cache in the datastore for each forum you have, so you don't have to worry about forums getting cross-cached with this hack. It has been thorughly tested on my site, but as we all know too well, sites can, and often do, vary in the way a hack performs on it. I forsee no problems of any kind on any site in the way this hack functions. It's basically pretty simple and hard to mess up. Note: This is the setting for the time interval (in minutes) that you want the cache to be updated on. The default value is 10 minutes. The following code is in the forumdisplay.php part of this hack. $updatetime = 10; Once you install the Admin CP setting (at the end of this file), you will be able to update this from the Admin CP vBulletin Options settings. Credits: A BIG thank you goes out to KirbyDE for all of his guidance and patience while this hack was being written and tested. This hack might never have gotten past the dreamed up state if it wasn't for him. And it definately wouldn't have been finished by now or turned out as optimized as it is. Thank you, my friend. I learned a lot from you on our little adventure here. It was definately worth the trip. Version Information: Version 1.0 --Initial release Version 1.1 --Corrected a few minor potential bugs and re-did the template. Now it has a cleaner look. Installation overview: Files to edit: (1) --forumdisplay.php Templates to add: (1) --forumdisplay_quickstats Templates to edit: (1) --forumdisplay Settings to add: (1) --forumcachetime Note: The first image below will show the forum quick stats for a forum that has attachments. The second image will show the forum quick stats for a forum that has no attachments. Show Your Support
|
Comments |
#62
|
||||
|
||||
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 |
#63
|
||||
|
||||
Should work just fine.
|
#64
|
||||
|
||||
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 |
#65
|
||||
|
||||
Did you change this:
" . TABLE_PREFIX . " to vb3 by chance? |
#66
|
||||
|
||||
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? |
#67
|
||||
|
||||
No, I mean when you ran the query? Did you change the query to show that yourself?
|
#68
|
||||
|
||||
That's the top poster query, right? If it is, here is what you need to run for that query:
PHP Code:
|
#69
|
||||
|
||||
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 |
#70
|
||||
|
||||
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. |
#71
|
||||
|
||||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|