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? ;)

Xencored 05-27-2010 07:16 AM

1 Attachment(s)
Thanks again Boofo cant wait for more mate :D

Edit also whats the template called mate where this is
need to add my <div> tags for css (and remmove the <br /> so i can show it on all one line

Cheers
Attachment 117605

Boofo 05-27-2010 07:45 AM

Just look at the template that has the total posts in it and do the same format to the template in the hack. Both templates start with boofo_(boofo_postbit_threads and boofo_profile_threads).

goran424 05-27-2010 08:07 AM

1 Attachment(s)
I was looking forward to this but it says not compatible with 4.02?

Xencored 05-27-2010 08:23 AM

Quote:

Originally Posted by Boofo (Post 2043981)
Just look at the template that has the total posts in it and do the same format to the template in the hack. Both templates start with boofo_(boofo_postbit_threads and boofo_profile_threads).

boofo_(boofo_postbit_threads and boofo_profile_threads)
thats what i was looking for thanks

Boofo 05-27-2010 08:27 AM

Quote:

Originally Posted by goran424 (Post 2043985)
I was looking forward to this but it says not compatible with 4.02?

It should work with 4.0.2 just fine. But as I run 4.0.3, that is what I set it at. Go into the XML file and change it to 4.0.2 and it should work fine then. Make sure to click install, if you install it, in case there are any updates.

KURTZ 05-27-2010 10:21 AM

glad to see you again in the business Bob ... :)

Boofo 05-27-2010 10:53 AM

I was wondering when you were gonna show up. ;)

You're not installing you're favorite hack? ;)

KURTZ 05-27-2010 11:12 AM

Quote:

Originally Posted by Boofo (Post 2044025)
I was wondering when you were gonna show up. ;)

You're not installing you're favorite hack? ;)

right now i'm still onto the 3.8.x ... i'll check again when i'll do the 'great step' to the 4.x ... ;)

Boofo 05-27-2010 11:55 AM

Ok, great! I am working on the Site Map hack now. ;)

PM me when you get a chance. I need to ask you something.

BadgerDog 05-27-2010 12:05 PM

Installed ..

Thank you .. :)

Regards,
Badger

JAFRI 05-27-2010 12:56 PM

Thanks , nice mod

strudinox 05-27-2010 04:38 PM

Awesome mod! Installed. :)

goran424 05-27-2010 05:46 PM

Quote:

Originally Posted by Boofo (Post 2043996)
It should work with 4.0.2 just fine. But as I run 4.0.3, that is what I set it at. Go into the XML file and change it to 4.0.2 and it should work fine then. Make sure to click install, if you install it, in case there are any updates.

Thank you!
Marked installed.

princeedward 06-11-2010 07:37 AM

thanks and nice to have back once again one of vb.org genious developer...
great to see you once again on track mate boofo...
btw...is there any possible to have or see also the last thread created on our profile on this?

and how about if i choose a location to add this on postbit...what should i do?
appreciate any hint on this please...

thanks once again and best regards


Marked Installed-Nominated-Rated Excellent

;)

Boofo 06-11-2010 07:44 AM

I was trying to not use any queries in the Profile if possible but I will look at it and see what it entails. And thank you for the nice comments. ;)

james shadle 06-15-2010 12:28 AM

Awesome!!!
Thank you.
James

Boofo 06-15-2010 02:05 AM

Clicking install would be awesome, too, huh?

KURTZ 06-28-2010 06:05 PM

another green tag for you Bobby ... ;)

COL NIL SATIS 06-28-2010 06:35 PM

Installed...works great ...cheers Boofo .....

Hits install:)

jgt58 07-02-2010 06:01 AM

as always another mod working flawlessly by Boofo!

BlueCheri 07-03-2010 04:08 AM

Will it work for 4.0.4?

Boofo 07-24-2010 12:41 AM

Quote:

Originally Posted by BlueCheri (Post 2063592)
Will it work for 4.0.4?

You tell me. ;)

Gero50 07-28-2010 01:09 AM

Thx installed been wanting this one.

Krusty1231 08-03-2010 02:54 AM

1 Attachment(s)
Thanks for this. I have one little error, (My error - not the mod - it works perfect) if someone could tell me what to do to put that in a box to? (Please)

Installed on - vb 4.0.5

Thanks in advance

Boofo 08-03-2010 03:41 AM

Quote:

Originally Posted by goran424 (Post 2044220)
Thank you!
Marked installed.

You might actually want to click the install button this time as you must have missed it the first time around. ;)

Boofo 08-03-2010 03:43 AM

Quote:

Originally Posted by Krusty1231 (Post 2078406)
Thanks for this. I have one little error, (My error - not the mod - it works perfect) if someone could tell me what to do to put that in a box to? (Please)

Installed on - vb 4.0.5

Thanks in advance

You would have to see how they are doing the other boxes in the postbit_legacy and wrap the code in that. ;)

steeler7 08-04-2010 06:37 AM

I installe3d and it all went through alright but nothing happened on the forum. It is 3 in the morning so my eyes aren't working but do I have to "enable" this and if so, where? I couldn't find it in the admincp/options.

EDIT : I see the stats under the "About Me" section but nothing in the postbit

Boofo 08-04-2010 08:09 AM

Quote:

Originally Posted by steeler7 (Post 2078953)
I installe3d and it all went through alright but nothing happened on the forum. It is 3 in the morning so my eyes aren't working but do I have to "enable" this and if so, where? I couldn't find it in the admincp/options.

EDIT : I see the stats under the "About Me" section but nothing in the postbit

Are you using a custom skin?

steeler7 08-04-2010 12:28 PM

Quote:

Originally Posted by Boofo (Post 2078981)
Are you using a custom skin?

Yes, I am using this one...

https://vborg.vbsupport.ru/showthread.php?t=236953

Boofo 08-04-2010 06:20 PM

Quote:

Originally Posted by steeler7 (Post 2079071)

That is why you are having problems with it showing right in the template. As I do not use that mod, I have no idea what they have changed from the default template. I would say you need to ask in the thread for the mod. The product works with the default template setup.


All times are GMT. The time now is 06:05 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.01279 seconds
  • Memory Usage 1,816KB
  • 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
  • (11)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
  • (40)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