The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
is there a way to have a post count to the left that will only count posts made in a certain forum?
thanks |
#2
|
||||
|
||||
You can set it so that it doesn't count certain forums, so in theory you could set it so it only counts the forum you want. That would affect all post count displays though..if you want a seperate one if needs to be a code hack.
|
#3
|
||||
|
||||
yeah I noticed that mate, I was kinda looking to have both a count for ALL and a count for a chosen Section, anyway if its too hard to do I guess i can live without it....
cheers for the help |
#4
|
||||
|
||||
bump
|
#5
|
||||
|
||||
Try this Firefly wrote this for me and it works great, you might have to modify it a little.
http://161.58.84.213/forum/showthrea...threadid=26988 |
#6
|
||||
|
||||
cheers mate, fron the info Ive been given I think I need something along these lines,
Quote:
|
#7
|
||||
|
||||
Here is how I did it, I have post and thread counts go to my forum in my signature and look torwards the bottom forum on the page.
PHP Code:
Then used this in forumhome template. PHP Code:
|
#8
|
||||
|
||||
I see what you have mate, this counts all replys made in a certain forum and displays the total, I just want to display the amount each user has made in a certain forum and display it in their postbit
|
#9
|
|||
|
|||
in showthread.php find:
Code:
$postbits .= getpostbit($post); Code:
$user[forumposts]=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE forumid=$forumid AND userid=$post[userid]"); |
#10
|
||||
|
||||
Not recommended for performance issues.
You are basically running a query inside a loop, so for every post in a thread that query will be executed. (trust me, I learned the very hard way) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|