View Full Version : Miscellaneous Hacks - Threads Started by User in Postbit and Profile
Boofo
02-05-2008, 10:00 PM
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
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
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
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
* projectego clicks install! :D
Boofo
02-06-2008, 07:39 PM
aye I was meaning with a clickable link or can that be turned on ?
Just replace:
$vbphrase[posts]: $post[posts]
with:
$vbphrase[posts]: <a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow">$post[posts]</a>
Bounce
02-06-2008, 07:42 PM
Just replace:
$vbphrase[posts]: $post[posts]
with:
$vbphrase[posts]: <a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow">$post[posts]</a>
Installed :D
Boofo
02-06-2008, 08:31 PM
I've been doing that since forever it seems. It's so automatic, I didn't even realize vb doesn't do that yet.
Installed :D
Edit: A little typo in Install.txt.
In the 'memberinfo_block_statistics' template
Find:
-----------------------------------------------------
<legend>$vbphrase[total_posts]</legend>
-------------------
REPLACE it with:
-------------------
<legend>$vbphrase[total_posts] & $vbphrase[threads]</legend>
Should be
In the 'memberinfo_block_statistics' template
Find:
-----------------------------------------------------
<legend>$vbphrase[total_posts]</legend>
-------------------
REPLACE it with:
-------------------
<legend>$vbphrase[total_posts] & $vbphrase[threads]</legend>
Rickeo
02-07-2008, 05:41 AM
awsome Thank You
seangworld
02-07-2008, 06:20 AM
umm....vb 3.7 beta 4 already does this 'hack'.
click on a user's id on your forum > click on statistics
it's right there, all of that same info.
im including a link to my own profile, which the only thing i added as far as hacks was the youtube one...
http://thehawaiicommunity.com/forum/members/sean.html
Mike-D
02-07-2008, 11:02 AM
Bob,
does you hack something to do with that hack Threads Started by User in Postbit & Profile (https://vborg.vbsupport.ru/showthread.php?t=151844) by Mudvayne? I know that the other one based on your old Hack called Threads Started by User in Postbit and Profile (https://vborg.vbsupport.ru/showthread.php?t=115136) for vB 3.54
Which one is better? Right now I have installed Mudvayne's Hack (see Attachment). But I'm a lil bit curious so I'd like to know what hack is more exact in its calculating :) -Mike
Boofo
02-07-2008, 12:18 PM
Mudvayne's Hack is my hack. He just fixed a db query syntax for 3.6.8 as I was still running 3.5.4 at the time and asked if he could release it. This is an update version of that with the Threads Per Day fixed and working right and the cron update working like it should have been in the first version. The cron update doesn't work in the version you are running unless you un-install and reinstall the hack. That was the only time it was updating. Now it does it hourly with the new cron hooks in this version.
@ Mike-D - I also got the timezone map working in 3.7.0 beta 4. ;)
seangworld - vB doesn't have this features.
Mike-D - Even Mudvayne is using this version for 3.7 :p
Boofo
02-07-2008, 12:47 PM
umm....vb 3.7 beta 4 already does this 'hack'.
click on a user's id on your forum > click on statistics
it's right there, all of that same info.
im including a link to my own profile, which the only thing i added as far as hacks was the youtube one...
http://thehawaiicommunity.com/forum/members/sean.html
I am running beta 4 and no it is not stock. Check again.
Mike-D
02-07-2008, 03:14 PM
Mudvayne's Hack is my hack. He just fixed a db query syntax for 3.6.8 as I was still running 3.5.4 at the time and asked if he could release it. This is an update version of that with the Threads Per Day fixed and working right and the cron update working like it should have been in the first version. Aah ok, now I'm on the way :)
The cron update doesn't work in the version you are running unless you un-install and reinstall the hack.Hmm that get me thinking. I changed some details in your hack including a percent calculating of written Threads and Posts. See my Memberinfo (http://www.honda-legend.com/vbulletin/member.php?u=1). As far as I can see is, that your Hack work excellent. You know what? Is it possible to check per hand to see whether the Cron Job works right? Right now I'm kinda unsure. Thank you for your great support :)
@ Mike-D - I also got the timezone map working in 3.7.0 beta 4. ;)Ah yes: Boofo's Timezone Hack. Good to hear that it works in vB 3.7. That hack is really great and so damn informative. My members love it :)
Boofo
02-07-2008, 03:30 PM
Hmm that get me thinking. I changed some details in your hack including a percent calculating of written Threads and Posts. See my Memberinfo (http://www.honda-legend.com/vbulletin/member.php?u=1). As far as I can see is, that your Hack work excellent. You know what? Is it possible to check per hand to see whether the Cron Job works right? Right now I'm kinda unsure. Thank you for your great support :)
The cron update works in the new version. It didn't work in the old one as it was not attached to a hook at the time. The cron hooks are new since 3.5.4. ;)
PM me the code you did for the percent calculating and I will see if I can incorporate it in the new version, if that's ok. I didn't mess with that too much yet.
Ah yes: Boofo's Timezone Hack. Good to hear that it works in vB 3.7. That hack is really great and so damn informative. My members love it :)
Thanks for the compliment but I was referring to the Timezone Image In Profile hack. The one nutz released. He's using my timezone code in it and I had to find the right hook to make it work in 3.7.0 beta 4. Just a heads up. ;)
Mike-D
02-07-2008, 03:46 PM
PM me the code you did for the percent calculating and I will see if I can incorporate it in the new version, if that's ok. I didn't mess with that too much yet.I will send you the complete Code, Sir ;) You then can publish it. Please keep in mind that all credits goes to you Boofo and Ziki ZH - % Of Forum Posts (https://vborg.vbsupport.ru/showthread.php?t=133127)
BTW: Any weeks ago I posted a request in your Thread Threads Started by User in Postbit & Profile (https://vborg.vbsupport.ru/showpost.php?p=1429998&postcount=51), but I got it worked :)
Once again: Thank you very much for you tireless support, Bob :up:
Mike-D
02-07-2008, 04:09 PM
PM has been sent. Thank you so much for the time in checking it and keep in mind that the code contains TMS Code! Be seeing you :) -Mike
Boofo
02-07-2008, 04:21 PM
Mike, PM answered. ;)
Mike-D
02-07-2008, 06:02 PM
Thank you, Sir :) I'm gonna go in for a closer look to see what you'd like to want. I'll get back to you ;)
Freesteyelz
03-14-2008, 04:32 AM
I can't believe I missed this mod! Then again, I'm even more surprised that vB didn't implement it as a feature. Tisk tisk!
Thanks Boofo!
SwollenCranium
03-18-2008, 11:02 PM
my hack.
Hi,
Followed your instructions, now my user's mini stat look befuddled ...
Any ideas ??
**************************************
I stand corrected ... I made the mistake ... as usual your info is correct and working perfectly .. thanks !!
Boofo
03-18-2008, 11:05 PM
Hi,
Followed your instructions, now my user's mini stat look befuddled ...
http://swollencranium.com/forums/picture.php?albumid=17&pictureid=164
Any ideas ??
A link would help on seeing what is going on. Try re-doing the template edits as most likely it is a missed tag or something simple. ;)
DJ Matt4684
03-19-2008, 12:13 AM
I don't think this particular hack has this, but is there an option to where you can turn this on and off in certain sections of your forum? For instance, if you wanted the threads started by to count for one section and not for another... if that makes sense.
Boofo
03-19-2008, 12:25 AM
No, this hack doesn't do that. It goes the same way as the post count. Just turn off Count Posts Made in this Forum Towards User Post Counts (in the forum Manager) in the forums you don't want counted.
SwollenCranium
03-19-2008, 01:03 AM
A link would help on seeing what is going on. Try re-doing the template edits as most likely it is a missed tag or something simple. ;)
With-in 2 minutes of posting that I had issues ... I corrected it.
No issues now.
Thanks.
chrisdaman77
03-19-2008, 09:41 AM
Once again Bob you do it. Very good job and thanks for putting this up definitely going to be used on both boards.
Boofo
03-19-2008, 10:30 AM
As always, you're very welcome, Chris. ;)
does this work with 3.6.8
Boofo
03-22-2008, 11:47 PM
does this work with 3.6.8
Yes. ;)
ForYou
03-23-2008, 08:32 AM
Hello ,
Thank You for this Hack ,
My qustion ,
If the hack like this it will be very very nice ,
Total posts : 1000
Total Theards : 120
Total posts & Theards : 1120
That calculate the number of posts and theards then we will see the Total ,
I hope you understand me ,
Regards
thanks mate, installed smoothly
arena
05-05-2008, 09:35 PM
very thank you
Graegfqda
05-13-2008, 05:21 PM
Hi,
nice mod :)
I have a question:
How can I add the "." between the number of threads? It shows "1001" . I want that it shows "1.001"
Thanks for help :)
Fırtına
05-13-2008, 09:01 PM
Thanks, installed :)
JadedSouls
05-19-2008, 09:13 PM
*installed*
thought I had a problem with the ministats but I sussed it out and messed up in adding the code. Fixed now :D
Boofo
05-19-2008, 09:17 PM
You messed up? I refuse to believe that. ;)
intrigue
05-23-2008, 09:56 AM
Two requests,
Firstly, i would like to show the threads from a specific forum and
secondly i wanted to show the thread titles with a link from those specific forums.
Any advice on how to achieve this?
Thanks
Matt
Boofo
05-23-2008, 10:03 AM
Not with this hack, no, sorry.
Astrof
05-26-2008, 03:02 PM
Hm, either I did something wrong in template editing or this is not working on my installation.
I want to use it with postbit_legacy, so I made sure I edit that one, but nothing is showing.
Is there something else that needs to be done in order to get this to show in postbit?
I really made sure I edit all the templates correctly, I don't think I did anything wrong with that.
This is an excellent mod, thank you very much. :)
EDIT: Sorry, sorry, sorry, had the wrong style up, just had to switch to the default style which I edited. :)
Works great, thanks a lot! :)
Astrof
06-10-2008, 11:11 PM
Hm ... I don't know if this is a problem with my installation or a bug in the mod ... But I've noticed that in my case it counts moved threads as two threads.
That is, if, for instance, a user starts 4 threads and all those threads are moved, it will say "Threads: 8" in postbit, although when you click on 8, it will display only the four started threads.
Does this happen to anyone else besides me?
Any word on this from the coder?
Thank you.
Boofo
06-10-2008, 11:34 PM
I have not seen that happen and don't know how it can unless you are leaving redirects maybe?
Astrof
06-11-2008, 08:27 AM
Hm, yeah, that could be the case, even though I think it even happened to some members whose threads were not redirected, but I'm not sure.
I'll test thread moving without redirects and post back.
Boofo
06-11-2008, 08:29 AM
You are the first to report this so please let me know what you find out.
Astrof
06-18-2008, 11:16 PM
Okay, I tested this and it is happening without an obvious pattern.
Sometimes it happens, sometimes it doesn't. Sometimes with redirects, sometimes without them.
Also, even the physically deleted threads are still counted towards user's total thread count. One user opened 4 threads, all of them were physically deleted, yet his thread count is still 4.
Boofo
06-19-2008, 12:55 AM
It updates the threadcount for each user hourly, not immediately. Check it after an hour and let me know what it says then.
TimberFloorAu
06-19-2008, 05:50 AM
Cracking mod. :)
Cheers Big Ears
TimberFloorAu
06-19-2008, 06:20 AM
Ok I need your help here Bob.
Not sure how dooable this is, and probably sounds quite crazy.
We have a few users, who get great thread views... and thread activity.
Could we extend this mod to include.
Posts: 527
Threads: 76
Thread Views: 32,768
Thread Replies: 12,456
Could this be done?
Not sure if this would add too many queries.
Basically list a users, entire threadviews, on threads they created. Plus list the amount of replies to that members threads.
Talking totals here and not linkable , lol.
What do you think.. tell me to shut up, you know me im not easily offended :)
Ozzy
Boofo
06-19-2008, 06:52 AM
You would be adding queries to the postbit which would be a query for every post. Not doable in my book.
TimberFloorAu
06-19-2008, 07:07 AM
You would be adding queries to the postbit which would be a query for every post. Not doable in my book.
Kinda thought that would be the case. Bugger lol
Cheers mate
Astrof
06-19-2008, 09:00 AM
It updates the threadcount for each user hourly, not immediately. Check it after an hour and let me know what it says then.
It's okay now, the thread count for that user is back to zero.
But the other problem remains, with or without redirects.
Boofo
06-19-2008, 11:03 AM
If that user's thread count is right then the other ones are, too. Have you tried doing a query to check their thread count?
Boofo
06-19-2008, 11:04 AM
Kinda thought that would be the case. Bugger lol
Cheers mate
I "almost" feel bad. ;)
Mesohu
06-19-2008, 11:54 AM
Doesn't show on postbit .
I use "Thank you" Mod & a personal field ( gender) on posbit . But this mod doesn't show ... it works only on memberinfo_block_statistics & memberinfo_block_ministats .
Boofo
06-19-2008, 12:07 PM
No, it works fine in the postbit. You need to re-edit the postbit template and make sure you are editing the right one (postbit or postbit_legacy).
Astrof
06-20-2008, 08:42 AM
If that user's thread count is right then the other ones are, too. Have you tried doing a query to check their thread count?
The other ones are NOT right.
Redirects or not, the number is larger than the number of threads when listed.
Mesohu
06-20-2008, 09:01 AM
No, it works fine in the postbit. You need to re-edit the postbit template and make sure you are editing the right one (postbit or postbit_legacy).
I have checked and rechecked it for 5 times . I have the right template in postbit , but it doesn't show again ...
Maybe it's b'coz of my style or I don't why it doesn't show the Total Threads under the Total posts.
Boofo
06-20-2008, 09:12 AM
The other ones are NOT right.
Redirects or not, the number is larger than the number of threads when listed.
Then the only thing it can be is you have some other hack messing with it. No one else has reported any problems like this and I don't see how it can be happening.
Boofo
06-20-2008, 09:13 AM
I have checked and rechecked it for 5 times . I have the right template in postbit , but it doesn't show again ...
Maybe it's b'coz of my style or I don't why it doesn't show the Total Threads under the Total posts.
The only thing I can tell you is set up an account for the admin cp and I can take a look at it.
Zacarias
06-22-2008, 09:48 AM
Installed. Just what I was looking for. Thank you!
flapjack
06-22-2008, 04:03 PM
Awesome hack. Thank you very much :)
drsli
06-28-2008, 08:16 PM
I just can second. Thank you so much! :)
PoetJA-1975
07-04-2008, 02:50 PM
Thanx,
Jacquii.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.