The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Does this override the current post count display? Or is it displayed seperately?
|
|
#3
|
||||
|
||||
|
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 |
|
#4
|
|||
|
|||
|
It is displayed below it, I'll attach a screenshot of it.
Screenshot: |
|
#5
|
|||
|
|||
|
Ahh! Thank you! I forgot to add a step:
Find: PHP Code:
PHP Code:
|
|
#6
|
|||
|
|||
|
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.
PHP Code:
|
|
#7
|
|||
|
|||
|
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.
|
|
#8
|
|||
|
|||
|
I never tested it, just off the top of my head. You should test it first and see if it works.
|
|
#9
|
|||
|
|||
|
Will do, let me finish documenting this other hack and I will do it ASAP.
|
|
#10
|
||||
|
||||
|
The hack works for me now, and I await to see if this caching bizzo works too
|
![]() |
|
|