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>

Bounce 02-06-2008 07:42 PM

Quote:

Originally Posted by Boofo (Post 1437630)
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>

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.

Icy 02-07-2008 04:50 AM

Installed :D

Edit: A little typo in Install.txt.

Quote:

In the 'memberinfo_block_statistics' template

Find:
-----------------------------------------------------

<legend>$vbphrase[total_posts]</legend>

-------------------
REPLACE it with:
-------------------

<legend>$vbphrase[total_posts] & $vbphrase[threads]</legend>
Should be
Quote:

In the 'memberinfo_block_statistics' template

Find:
-----------------------------------------------------

<legend>$vbphrase[total_posts]</legend>

-------------------
REPLACE it with:
-------------------

<legend>$vbphrase[total_posts] &amp; $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 by Mudvayne? I know that the other one based on your old Hack called Threads Started by User in Postbit and Profile 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. ;)

Icy 02-07-2008 12:38 PM

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

Quote:

Originally Posted by seangworld (Post 1438001)
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

Quote:

Originally Posted by Boofo (Post 1438142)
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 :)

Quote:

Originally Posted by Boofo (Post 1438142)
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. 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 :)

Quote:

Originally Posted by Boofo (Post 1438142)
@ 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

Quote:

Originally Posted by Mike-D (Post 1438277)
Hmm that get me thinking. I changed some details in your hack including a percent calculating of written Threads and Posts. See my Memberinfo. 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.

Quote:

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

Quote:

Originally Posted by Boofo (Post 1438281)
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

BTW: Any weeks ago I posted a request in your Thread Threads Started by User in Postbit & Profile, 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

Quote:

Originally Posted by Boofo (Post 1438142)
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

Quote:

Originally Posted by SwollenCranium (Post 1468275)
Hi,

Followed your instructions, now my user's mini stat look befuddled ...

http://swollencranium.com/forums/pic...&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

Quote:

Originally Posted by Boofo (Post 1468277)
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. ;)

F0xy 03-22-2008 06:10 PM

does this work with 3.6.8

Boofo 03-22-2008 11:47 PM

Quote:

Originally Posted by F0xy (Post 1471806)
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

F0xy 03-23-2008 09:05 AM

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 :)


All times are GMT. The time now is 06:35 AM.

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.01613 seconds
  • Memory Usage 1,828KB
  • 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
  • (4)bbcode_html_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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