View Full Version : Miscellaneous Hacks - Threads Started by User in Postbit and Profile for vB 4
Boofo
05-26-2010, 10:00 PM
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!
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
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
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
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
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
I was looking forward to this but it says not compatible with 4.02?
Xencored
05-27-2010, 08:23 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).
boofo_(boofo_postbit_threads and boofo_profile_threads)
thats what i was looking for thanks
Boofo
05-27-2010, 08:27 AM
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
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
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
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
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
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
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
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
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
Yes, I am using this one...
https://vborg.vbsupport.ru/showthread.php?t=236953
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.
Boofo
08-07-2010, 01:53 AM
Installed ..
Thank you .. :)
Regards,
Badger
You're not showing as installed.
murekhalir
08-07-2010, 06:47 AM
VERY simple, very nice.
BadgerDog
08-07-2010, 09:43 AM
You're not showing as installed.
Yes, sorry ....
Subsequently un-installed it .... should have left another post ...
Found it created a too crowded display and the the information it displayed wasn't as valuable to our type of membership, as it might be to perhaps other boards.
We use 4 of your other excellent vb4 mods... very nice and well done work ...
Thank you for your efforts .... :)
Regards,
Badger
hiker
09-26-2010, 03:03 AM
Installed :)
I've got a request (that I made in the wrong mod last time :o )
So instead of just counting & displaying the Threads started by the user in the postbit, I'd like it to count and display the threads ONLY of a certain prefix.
In my case the prefix ID is Trip_Report
So I'd like the number of "Trip Reports" created by the user.
Could you please tell me how to edit your xml to count this?
Thank you :cool:
Dr.osamA
09-26-2010, 04:17 AM
Excellent = 5 Stars
installed
thanxx man
mradlin
09-26-2010, 11:16 AM
Installed and working great!!
Thanks.
hiker
09-29-2010, 05:05 AM
Installed :)
I've got a request (that I made in the wrong mod last time :o )
So instead of just counting & displaying the Threads started by the user in the postbit, I'd like it to count and display the threads ONLY of a certain prefix.
In my case the prefix ID is Trip_Report
So I'd like the number of "Trip Reports" created by the user.
Could you please tell me how to edit your xml to count this?
Thank you :cool:
I hate to annoy, but any help on this? By the way I installed and it works perfectly the way it is meant to.
I'm just hoping I can filter it by my prefix. :D
hiker
10-04-2010, 06:15 PM
bump
Boofo
10-05-2010, 12:47 AM
As this mod is free I really don't want to spend a lot of time re-working it for everyone.
hiker
10-05-2010, 11:41 PM
As this mod is free I really don't want to spend a lot of time re-working it for everyone.
I can appreciate that, I was led to this mod by you so I was thinking you had an easy way to do it.
Thanks for the response, I'll see if I can tinker around with it. :)
Boofo
10-06-2010, 12:02 AM
It's never easy to re-work a mod for everyone. ;)
Trevor Matthews
01-19-2011, 08:45 PM
Just installed and is a very useful addition to my forum. Many thanks for doing this for us all.
OldSchoolDSL
03-09-2011, 08:22 PM
Installed and working
4.1.2 :)
Also working with your 2nd modification (joint development with Last_Zero)
https://vborg.vbsupport.ru/showthread.php?t=259636
steve1966
04-20-2011, 07:47 PM
I love your modifications boofo just installed this one rated and nominated thank you once again
haytham
05-03-2011, 11:43 AM
Great mod. Rated, installed and nominated. :)
RobbieZ
07-27-2011, 09:30 AM
Is it possible to have the thread count 'clickable ' and return showing the threads by that user please?
Universal
02-09-2012, 12:42 AM
Just a 2012 update on this mod. This mod seems to be working fine on 4.1.10.
Only thing I changed was I moved the 'Postbit Legacy' code from the Boofo template into the Postbit Legacy template. No problems at all.
Thank you Boofo / Installed sir
DAMINK
02-09-2012, 05:51 AM
Installed and working perfect on 4.1.10
As always great work by the bearded gentleman Boofo.
Thankyou for this.
mgurain
04-26-2012, 12:17 PM
It now makes an error in 4.1.12 :
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: newpost_disablesmiliesoption in [path]/includes/functions.php on line 4337
Boofo
04-26-2012, 01:22 PM
It now makes an error in 4.1.12 :
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: newpost_disablesmiliesoption in [path]/includes/functions.php on line 4337
There is no way that error is coming from this mod. It does not use fetch_template.
babyv0x
04-29-2012, 11:14 PM
working on 4.1.12 . Thanks for this mod
LouiseWilson
06-02-2012, 02:54 PM
Super Boofo :) all working on 4.2.0
Amaury
11-23-2012, 11:48 PM
I know the author is no longer here, so hopefully someone else here can help.
The other day, at the request of another admin that works for KH-MF, I changed the order of the user info postbit from Join Date, Location, Age, Posts to Join Date, Posts, Age, Location by editing the postbit_legacy template.
After installing this modification, Threads was added at the end. I want Threads to be below Posts and above Age. I looked in the postbit_legacy template for it, but I'm not seeing that a code for Threads was added.
http://i101.photobucket.com/albums/m62/AmauryGarcia/postbit_legacy-1.jpg
Lynne
11-24-2012, 05:06 PM
You need to move the template_hook line to where you want this code to show.
Amaury
11-24-2012, 05:14 PM
You need to move the template_hook line to where you want this code to show.
Where would I find this? I didn't see anything on a template hook for "Threads" in the postbit_legacy template.
EDIT: Is it this one?
{vb:raw template_hook.postbit_userinfo_right_after_posts}
Lynne
11-24-2012, 05:59 PM
Yes, that one. (I am assuming that is the one he used.)
Amaury
11-24-2012, 06:47 PM
Yes, that one. (I am assuming that is the one he used.)
Okay, that worked, but it somehow made Age and Location appear below the medals.
https://vborg.vbsupport.ru/
Snowhog
11-24-2012, 08:19 PM
I know that Boofo is no longer among us, but does this MOD work with 4.2.x
Amaury
11-24-2012, 08:31 PM
I know that Boofo is no longer among us, but does this MOD work with 4.2.x
Yes.
Snowhog
11-24-2012, 09:14 PM
Had I read a little bit up on the page, I would have seen the answer. Doh.
Installed on 4.2.x. Works nicely.
Lynne
11-24-2012, 11:02 PM
Okay, that worked, but it somehow made Age and Location appear below the medals.
http://i101.photobucket.com/albums/m62/AmauryGarcia/Threads.png
My guess would be that the other mod (with the medals) is also using the same template_hook.
midgetgrimm
11-24-2012, 11:13 PM
Thanks, great mod. Worked nice and easy, and with other pre-installed profile bits. Cheers!
Installed and Rated :up::up::up::up::up:
Amaury
11-28-2012, 03:21 AM
My guess would be that the other mod (with the medals) is also using the same template_hook.
Sorry, didn't see this reply until now.
I had it set on userinfo_right_after_posts (horizontal postbit) for the YAAS (that other mod you see in there) settings, which does just that: inserts the pins -- or, in our case, medals -- showcase after "Posts." Changing it to userinfo_right (legacy postbit) fixed that, but that's also causing problems with something else.
I won't get into that, though, since this isn't the thread for it. Plus, I'm already discussing it with Squidsk in the YAAS thread. :)
tanzeelniazi
01-03-2013, 10:43 PM
Working Perfect in 4.2.0 thanks
DemOnstar
07-11-2013, 04:19 AM
Good for me too. 4.2.1
Splendid job sir!
Marked as installed....
DemOnstar
07-12-2013, 09:04 AM
Is there a way we click ob threads started by user and have them displayed?
Or maybe I am confused by another mod..
greenpk2
07-15-2013, 01:22 AM
Hello there :) I really love this product and I got one question on "how to do" something with it.
Points towards user posts? Can you do same with this threads?
I got an off-topic forum and i made it so count towards user posts to NO. I would like to have the same thing with threads starter... Please give me a reply as soon as possible :)
Thanks for making this!
DemOnstar
07-15-2013, 08:54 AM
Conflict found with this https://vborg.vbsupport.ru/showthread.php?t=228673&page=2
New Joe
07-15-2013, 11:37 PM
Unfortunately both mods are not supported, this one as boofo passed away rip, and the other as Mosh is not well and stopped with his vb stuff.
Maybe other members could help out though.
Acido
10-14-2013, 04:50 AM
This mod cause Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) in vb 4.2.2
ozzy47
10-14-2013, 04:56 AM
Are you certain it is this mod, I see no reference to split in the product?
Acido
10-14-2013, 06:58 AM
My apologies... This hack it's working fine on my 4.2.2 board. :o
ozzy47
10-14-2013, 09:46 AM
On cool, I thought is was not this one. :)
RawBoard
01-09-2015, 09:09 AM
thank you..
pablodip
03-08-2015, 03:49 PM
It's possible only show id subforum or one section?
Techno Cowboy
03-13-2016, 05:15 PM
Working well with a little tweaking due to customized templates on vB 4.2.4 Beta 1 :up:
RedHacker
05-29-2016, 02:04 AM
I have 3 threads and deleted two threads but in postbit show 3 threads. Why ?
MarkFL
05-29-2016, 02:18 AM
I have 3 threads and deleted two threads but in postbit show 3 threads. Why ?
The thread count is updated via a cron job, so the thread count likely just hasn't been updated yet.
RedHacker
05-29-2016, 11:31 AM
The thread count is updated via a cron job, so the thread count likely just hasn't been updated yet.
Yes but after many hours not change the number.
MarkFL
05-29-2016, 01:00 PM
Try manually running the hourly cleanup and see what happens...
RedHacker
05-29-2016, 01:31 PM
Try manually running the hourly cleanup and see what happens...
It is now OK.
Thanks
MarkFL
05-29-2016, 01:43 PM
Where to running this ?
Follow:
AdminCP -> Schedules Tasks -> Scheduled Task Manager
Then find the "Hourly Cleanup" and click "Run Now."
chubbgsm
10-31-2016, 09:32 AM
very nice.. working in V4.2.3
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.