vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Threads Started by User in Postbit and Profile (https://vborg.vbsupport.ru/showthread.php?t=169816)

Boofo 02-05-2008 10:00 PM

Threads Started by User in Postbit and Profile
 
Threads Started by User in Postbit and Profile for vB3.7.0 beta 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. 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.1 --Initial release (No known bugs)

Credits:
Thanks goes out to Andreas, Paul M and Hambil for their invaluable help with the original version of this product. Without them, this hack would not have been possible. And a special thanks goes out to Icy, for taking care of things while I was away.

Details:
--------
1 Product XML (4 Plugins, 2 Phrases)
3 Template Edits

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-threads_started_by_user.xml file on your computer
Do the template edits and you're all set!

NOTE: If you do not click install, you do not need support.

Bounce 02-06-2008 06:24 PM

Many queries does this use ?

Boofo 02-06-2008 06:26 PM

Only 1 during the hourly cron update.

Bounce 02-06-2008 06:35 PM

Quote:

Originally Posted by Boofo (Post 1437572)
Only 1 during the hourly cron update.

Doh I should have read the intructions

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

Thanks installed :up:

Boofo 02-06-2008 06:40 PM

I only added that after your post. Thanks for reminding me. ;)

Bounce 02-06-2008 06:42 PM

Quote:

Originally Posted by Boofo (Post 1437585)
I only added that after your post. Thanks for reminding me. ;)

No problem, is there one for "Posts Started" in the postbit :eek:

Boofo 02-06-2008 06:45 PM

Yeah, I think Jelsoft did that one. ;)

Bounce 02-06-2008 07:16 PM

Quote:

Originally Posted by Boofo (Post 1437591)
Yeah, I think Jelsoft did that one. ;)

aye I was meaning with a clickable link or can that be turned on ?

projectego 02-06-2008 07:24 PM

[high]* projectego clicks install! :D[/high]

Boofo 02-06-2008 07:39 PM

Quote:

Originally Posted by hIBEES (Post 1437610)
aye I was meaning with a clickable link or can that be turned on ?

Just replace:

HTML Code:

$vbphrase[posts]: $post[posts]
with:

HTML Code:

$vbphrase[posts]: <a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow">$post[posts]</a>


All times are GMT. The time now is 10:03 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.01148 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_html_printable
  • (4)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