![]() |
We have a "Chit Chat" forum on our boards where users can post anything. The problem is that some of our users complain because others get very high post counts by making useless posts to the Chit Chat forum. I'd really appreciate it if someone could tell me how to make the user post counts not go up in a specific forum.
Thanks |
Sure this is pretty easy to do. Just open up "newreply.php" and change the following code:
Code:
$DB_site->query("UPDATE user SET posts=posts+1,$dotitle"."lastpost=".time()." WHERE userid=$userid"); Code:
// Change the number 1 below to the forum you don't want posts to count in -Chris |
look just what i have been looking for as well :)
what if you want to specify 2 or more forums ? |
Quote:
Code:
if ($threadinfo[forumid]==1 or $threadinfo[forumid]==2) { |
Well thanks for the quick reply! It works great but I have a problem. What about new threads? I did the same change for the newthread.php but my post count increased when I posted a new thread. I'll be very happy if you could find a solution for the new threads.
Thanks |
Quote:
|
It doesn't work for me. Maybe someone else who tried can tell if it works or not?
|
I did it a little differently.
In the Forum table I added a column called countposts countposts smallint(6) default 1 Then using SQL queries I set them forums I wanted to ignore in the post count to zero. update forum set countposts=0 where forumid=XX newthread.php Look for: Code:
$foruminfo=$DB_site->query_first("SELECT Code:
$foruminfo=$DB_site->query_first("SELECT countposts, Under that line add: Code:
$countposts=$foruminfo[countposts]; Code:
$DB_site->query("UPDATE user SET posts=posts+1,$dotitle"."lastpost=".time()." WHERE userid=$userid"); Code:
//Wayne Luke 11/01/2000 Look for: Code:
$foruminfo=$DB_site->query_first("SELECT Code:
$foruminfo=$DB_site->query_first("SELECT countposts, Look for: Code:
$DB_site->query("UPDATE user SET posts=posts+1,$dotitle"."lastpost=".time()." WHERE userid=$userid"); Code:
//Wayne Luke 11/01/2000 [Edited by wluke on 12-26-2000 at 04:39 PM] |
Thanks, I think I will include this on my site.
|
All times are GMT. The time now is 05:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|