vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Threads Started by User in Postbit and Profile for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=243363)

Boofo 05-26-2010 10:00 PM

Threads Started by User in Postbit and Profile for vB 4
 
1 Attachment(s)
Threads Started by User in Postbit and Profile for vB 4
Version 1.0.1
(By Boofo)

What does this product do?
This product counts the threads started by a user and displays it in the postbit and the profile, under the About Me tab. 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 only counts valid threads (not moderated or soft-deleted threads).

Note: Only 1 query is used during the hourly cron update.

Version Information:
Version 1.0.0 --Initial release for vBulletin 4.0.3
Version 1.0.1 --Added 'Percent of total forum threads/posts' in the profile.

Installation Overview:
-----------------------------------------------------
1 Product XML (8 Plugins, 4 Phrases and 2 templates)

Installation Instructions:
-----------------------------------------------------
Go to your Admin CP
Scroll down to 'Plugins & Products'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-boofo_threads_started.xml file on your computer
-----------------------------------------------------

Done!
Enjoy!

Code:

if ($mark_as_installed != 'clicked')
{
        $you_get = 'squat';
}
else
{
        $you_get = 'support';
}


chipc0i 05-27-2010 12:42 AM

demo please?

nomoreturn 05-27-2010 12:48 AM

1 Attachment(s)
Thanks Installed and working great

Boofo 05-27-2010 12:53 AM

You had doubts? ;)

You're very welcome, sir.

puertoblack2003 05-27-2010 01:14 AM

lol..marked installed for support:p

Boofo 05-27-2010 01:25 AM

So, you don't like "squat" then? ;)

erel34 05-27-2010 02:40 AM

thanks..

Boofo 05-27-2010 03:38 AM

I would click install if you want any support in the future.

Lynne 05-27-2010 03:47 AM

So good to see someone do this right by adding a field to the table and keeping track of threads that way. This is so much more efficient than the one added query per post mods that I've seen people do!

Boofo 05-27-2010 05:41 AM

Quote:

Originally Posted by Lynne (Post 2043923)
So good to see someone do this right by adding a field to the table and keeping track of threads that way. This is so much more efficient than the one added query per post mods that I've seen people do!

Thank you, young lady. But I really do need to credit Andreas for helping me come up with this originally. ;)

I've done it this way since the vb3.5 version. Too many vb admins don't worry enough about the queries that can be added for each post. In the old days, queries were the biggest no-no you could do in a hack. I guess I'm too old to change, huh? ;)


All times are GMT. The time now is 10:47 PM.

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.01049 seconds
  • Memory Usage 1,733KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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