The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Is it possible to display in the postbit the number of threads the user has posted?
|
#2
|
||||
|
||||
![]()
Not without hacking. I released a hack like this on my site a while back.
|
#3
|
|||
|
|||
![]()
Not difficult but adds a query. Probably could eliminate the extra query but I don't feel like putting the thought process into it. Go ahead and package this up as a hack and claim it as your own.
![]() In showthread.php //FIND PHP Code:
PHP Code:
Aaron |
#4
|
||||
|
||||
![]()
Isn't that inside the loop? If so, that will add a query for every post on the page. And if you use bbuserinfo, it will show the same amount for each post, won't it?
EDIT: I just checked this. It does add a query for each post on the page. ![]() |
#5
|
|||
|
|||
![]()
It would have to unless you find a way to just find the userids in the thread/on the page and then cycle through a bunch of checks for each post. It almost sounds more server intensive to do it that way. But I could be wrong. It is only 7 AM after all.
![]() I would think that you are right about the loop though. You'd need to put the block of code in the loop... PS. I guess use $post['userid'] instead of bbuserinfo. That would be an obvious overlook on my part. |
#6
|
||||
|
||||
![]()
No, you don't want the code inside the loop. That's where you get a query for every post on the page. We tried doing it your way when we did the hack and it came out with a query for every post. We have to go a totally different way to avoid that. And it isn't server intensive at all. It took some doing, but was accomplished.
![]() |
#7
|
|||
|
|||
![]()
Ah good to know. Let me know if you determine a way to do it in vb3.
I like your /bin/laden sig too, by the way. ![]() ![]() |
#8
|
||||
|
||||
![]()
The best way is to edit newthread.php to increment a profile field by one each time a new thread if submited, along with an option in the Update Counters section to rebuild (and create) the number of threads each person has done.
|
#9
|
||||
|
||||
![]() Quote:
Sketch: Nah i'm not gonna put up a mod of which code you gave me. ![]() |
#10
|
||||
|
||||
![]() Quote:
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|