Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 10 Mar 2016, 01:29
Inked_Mono Inked_Mono is offline
 
Join Date: Jan 2015
{vb:raw post.threads}?

Does anybody know if such a thing exists? I'm looking to keep count of threads created by members in their postbit_legacy, but have tried a few variations and can't seem to find one that works.
Reply With Quote
  #2  
Old 10 Mar 2016, 01:40
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
That statistic doesn't exist in stock vb. I think a few products add it in but I don't have links.
Reply With Quote
  #3  
Old 10 Mar 2016, 01:44
Inked_Mono Inked_Mono is offline
 
Join Date: Jan 2015
Originally Posted by squidsk View Post
That statistic doesn't exist in stock vb. I think a few products add it in but I don't have links.
Ack, that's really unfortunate. I think there's a few plugins that might as well. Do you know, off hand, if they'd allow for such a feed to exist? I'd like to maintain the same design structure of my postbit_legacy, and being able to just have the number generated would be fantastic.
Reply With Quote
  #4  
Old 10 Mar 2016, 02:34
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Create the following plugin:

Product: vBulletin

Hook Location: postbit_display_complete

Title: Get the number of threads started by a user

Execution Order: 5

Plugin PHP Code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Plugin is Active: Yes

Click "Save".

Now, in your postbit template (whichever you use), you can use {vb:raw post.threads} to display the number of threads started by users.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons

Last edited by MarkFL; 10 Mar 2016 at 06:02. Reason: add global declarations
Reply With Quote
  #5  
Old 10 Mar 2016, 05:49
Inked_Mono Inked_Mono is offline
 
Join Date: Jan 2015
You're a hero, Mark, thank you. I'll give it a shot as soon as I can.
Edit: It works perfectly, thank you!

Last edited by Inked_Mono; 10 Mar 2016 at 06:02.
Reply With Quote
  #6  
Old 10 Mar 2016, 06:03
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
After editing my post above, the OP reports it now works.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #7  
Old 10 Mar 2016, 10:13
setishock setishock is offline
 
Join Date: Feb 2008
I don't use legacy. Will this work in the normal mode?
__________________
Working on new projects and expanding our horizons. Come by and see what we're up to now.
Reply With Quote
  #8  
Old 10 Mar 2016, 13:14
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
It shouldn't matter if you use postbit or postbit_legacy. The only difference between those templates is the HTML inside of it.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:15.

Layout Options | Width: Wide Color: