View Full Version : phpBB post counts

30-12-2004, 01:57 PM

A customer of mine runs a phpBB forum. We decided to make a 'spam forum' like on JSG, to decrease the junk in the other ones.

This sort of worked, but we want to make it so that posting in the spam forum does not increase postcounts.

How does one do this in phpBB? I tried downloading a mod but I think it's for an older version - it didn't work.

Any ideas?

It's the latest version with an Access database, will be moved to MySQL soon.

30-12-2004, 07:34 PM
they do that at http://eagx.net/ i think thats the site yea go to the ea xposed archive its in phpBB and it had a no post counting spam room just look in the code of the old archive i think the archive site addresse muight be http://archive.eaxposed.com/

EDIT: the archive addresse is http://archive.eagx.net/

30-12-2004, 08:17 PM
Er, that EAX site doesn't actually say how to do what George wants to do though, unless I didn't look far enough.

However, it's a relatively easy thing to do.

Any forum that keeps a post count will probably do this via a database. Each time you make a post, it'll add 1 to the value of your post count. Nothing hard, in fact it probably uses an auto-increment function.

The code that performs this function will be somewhere in phpBB's source code - most likely a database script or a post script (I'm not sure how phpBB works).

In essence all you need to do is create a second copy of this script and modify it so that it doesn't increment the post count. Then you (somehow) set up phpBB so that if you post into the spam/general/chat forum, it uses this second script instead of the normal one.

I'd imagine that an If...Then statement would work, but there might be an even simpler way of doing this.

30-12-2004, 10:45 PM
I have found the location of the script.

It's in /includes/functions_post.php

And I did it, all going great now.

I just added some conditional code into the increasing postcount code. Worked a charm.

Thanks very much.