Version: 1.0.1, by Boofo
Developer Last Online: Jun 2012
Category: Miscellaneous Hacks -
Version: 3.5.4
Rating:
Released: 05-08-2006
Last Update: 05-13-2006
Installs: 50
Uses Plugins Template Edits
No support by the author.
vB3.5.4 Threads Started by User in Postbit and Profile
Version 1.0.1
(By Andreas, Boofo, Hambil and Paul M.)
What does this product do?
This product counts the threads started by a user and displays it in the postbit and the profile. It will also display the threads per day in the profile. The thread count is automatically updated hourly via cron job. New threads are added to the count in real time. No extra queries are run in the postbit or profile when getting the thread count, only when the cron job runs. This product has been tested on a live board with over 15,000 users and 40,000 threads and ran unnoticeably in the background in 0.3 seconds during the cron job update. This product only counts valid threads (not moderated or soft-deleted threads).
NOTE: This Hack requires at least mySQL 4.0.4
Version Information:
Version 1.0.0 --Initial release
Version 1.0.1 --No longer counts threads in forums that have the "Count Posts Made in this Forum Towards User Post Counts" option set to No. Also made the posts and threads counts in the postbit clickable search links like in the profile.
NOTE: You must redo the postbit template edit to get the clickable links.
Credits:
Thanks goes out to Andreas for the original version of this product. Thanks also goes out to Paul M for coming up with the way to update the thread count without adding a query to every post, and to Hambil for coming up with the way to not count threads in forums where the "Count Posts Made in this Forum Towards User Post Counts" option is set to No. Thanks guys!
Details
---------
1 Product XML (4 Plugins, 2 Phrases)
fishhub try this version. This should also work on vb 3.5.x
thanks, I tried and got this.
Database error in vBulletin 3.5.4:
Invalid SQL:
### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '1', 'Threads started by User: Hourly Cron', 'cron_script_cleanup', '$vbulletin->db->query_write(\"\r\n UPDATE \" . TABLE_PREFIX . \"user AS user \r\n SET user.threads =\r\n (\r\n SELECT COUNT(threadid)\r\n FROM \" . TABLE_PREFIX . \"thread AS thread\r\n LEFT JOIN \" . TABLE_PREFIX . \"forum AS forum ON forum.forumid = thread.forumid \r\n WHERE visible = 1 \r\n AND (forum.options & 4096) \r\n AND user.userid=postuserid\r\n )\r\n\");', 'thread_count_7272');
MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054