Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Number of Posts in Current Forum Only Details »
Number of Posts in Current Forum Only
Mod Version: 1.00, by apfeifer (Member) apfeifer is offline
Developer Last Online: Jan 2007 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 4
Released: 04 Nov 2001 Last Update: Never Downloads: 0
Not Supported  

Hack: Number of Posts in Current Forum Only
Version of vB: 2.2.0, although may work on earlier versions but not tested
Current Version: 1.0.0
Description: This hack shows how many posts a user has in the forum that the post you are viewing is in


Requested by Bald Bouncer.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
New Posting Features Allow URLs in posts only after a minimum number of posts (to reduce spam) Xoligy vBulletin 3.6 Add-ons 97 14 Apr 2012 12:26
Allow URLs in posts only after a minimum number of posts (to reduce spam) Erwin vBulletin 2.x Full Releases 49 27 Sep 2007 11:37

Comments
  #2  
Old 04 Nov 2001, 22:26
MarkB's Avatar
MarkB MarkB is offline
 
Join Date: Oct 2001
Smile

Does this override the current post count display? Or is it displayed seperately?
Reply With Quote
  #3  
Old 04 Nov 2001, 22:33
MarkB's Avatar
MarkB MarkB is offline
 
Join Date: Oct 2001
Ok, I tried it, and the following error came up when viewing a thread:

Fatal error: Call to a member function on a non-object in /home/ultimatm/public_html/forum/admin/functions.php on line 275
Reply With Quote
  #4  
Old 04 Nov 2001, 22:34
apfeifer apfeifer is offline
 
Join Date: Nov 2001
It is displayed below it, I'll attach a screenshot of it.

Screenshot:
Attached Images
File Type: gif postsincurrentforumonly.gif (4.3 KB, 161 views)
Reply With Quote
  #5  
Old 04 Nov 2001, 22:38
apfeifer apfeifer is offline
 
Join Date: Nov 2001
Ahh! Thank you! I forgot to add a step:

Find:


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

After that add:


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

Sorry about that! I'll add it into the documentation right away.

Reply With Quote
  #6  
Old 04 Nov 2001, 22:40
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
could kinda be bad, if a user has made 300 posts in the forums then thats 300 extra queries per post, you should cache it.


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

__________________
Scott MacVicar
vBulletin Developer
Reply With Quote
  #7  
Old 04 Nov 2001, 22:44
apfeifer apfeifer is offline
 
Join Date: Nov 2001
Yeah, in the other thread (the request) I mentioned how this had a lot of queries in it. I actually had tried something almost identical to what you did, but it wasn't working so I decided to release it so people had something to use and play with that later. Is that chunk of code you posted 100% sure to work? If so I'll add it in, with your permission, of course.

Reply With Quote
  #8  
Old 04 Nov 2001, 22:46
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
I never tested it, just off the top of my head. You should test it first and see if it works.
__________________
Scott MacVicar
vBulletin Developer
Reply With Quote
  #9  
Old 04 Nov 2001, 22:47
apfeifer apfeifer is offline
 
Join Date: Nov 2001
Will do, let me finish documenting this other hack and I will do it ASAP.

Reply With Quote
  #10  
Old 04 Nov 2001, 22:49
MarkB's Avatar
MarkB MarkB is offline
 
Join Date: Oct 2001
Thumbs up

The hack works for me now, and I await to see if this caching bizzo works too
Reply With Quote
  #11  
Old 05 Nov 2001, 07:27
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Real name: Justin J. Rebbert
OK, I tried this hack. While it does work, it also adds a very noticable amount of extra time to open a thread. The more posts in a thread (or I guess more accurately, the more unique people to post in a thread), the worse it gets. Quite noticably.

Please let us know if that cacheing bit works good, after its tested.
__________________
-Justin J. "JJR512" Rebbert
www.JJR512.com: Chat about anything!
Reply With Quote
  #12  
Old 05 Nov 2001, 09:36
Bald Bouncer's Avatar
Bald Bouncer Bald Bouncer is offline
 
Join Date: Oct 2001
Thumbs up

you made me very happy matey
Reply With Quote
  #13  
Old 05 Nov 2001, 12:08
apfeifer apfeifer is offline
 
Join Date: Nov 2001
Originally posted by JJR512
OK, I tried this hack. While it does work, it also adds a very noticable amount of extra time to open a thread. The more posts in a thread (or I guess more accurately, the more unique people to post in a thread), the worse it gets. Quite noticably.

Please let us know if that cacheing bit works good, after its tested.
Yeah, right now this takes TON'S of queries to do. I am going to add some more stuff to it, including the cache bit, and that should make it better. At the end I should be able to just do one COUNT(*) to get the number, which would greatly improve the speed.

Reply With Quote
  #14  
Old 05 Nov 2001, 12:15
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001

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

Gets you the number of posts user #xx made in forum #1.
(btw, this is for one forum only, not from sub forums as well)

But still this is another query for each post, so in a thread with 30 posts per page you will have another 30 queries.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]

Last edited by Chen; 05 Nov 2001 at 12:18.
Reply With Quote
  #15  
Old 06 Nov 2001, 09:45
Bald Bouncer's Avatar
Bald Bouncer Bald Bouncer is offline
 
Join Date: Oct 2001
is there a way for this hack to count posts made in more than one forum?
Reply With Quote
Reply


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

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 23:10.

Layout Options | Width: Wide Color: