The hack STouch posted doesnt know what or where to count so wont work very well.
TouchingVirus's hack will work fine but needs a lot more code editing than needed and also does more querys than are needed.
The following code should work fine though untested I have to say.
Querys needed = 1
(this is assuming you dont turn all the counters on for the specific forum)
extra counter on forum = extra query
So if you turn on counter 1 and 2 for general discussion then the extra querys made when posting in general conversation will be 2.
Add to user table in dbase
countone
counttwo
countthree etc...
basic query for the above would be
ALTER TABLE user ADD countone int(10) unsigned NOT NULL default '0';
ALTER TABLE user ADD counttwo int(10) unsigned NOT NULL default '0';
etc....
repeat for each count you wish to use
Ok now the code edits
In admincp/forum find:
You must first be a
registered member to view any code.
Replace with:
You must first be a
registered member to view any code.
Same file find:
You must first be a
registered member to view any code.
Add Below:
You must first be a
registered member to view any code.
Save & close
Now in functions_newpost find:
You must first be a
registered member to view any code.
Add ABOVE:
You must first be a
registered member to view any code.
save and close
in includes/init.php Find:
You must first be a
registered member to view any code.
Replace with:
You must first be a
registered member to view any code.
I guess i should point out that if you used my IRC poster then the above will already have changed in which case youll need to change
'ircmsg' => 524288
with
'ircmsg' => 524288,
'countone' => 1048576,
'counttwo' => 2097152,
'countthree' => 4194304,
Ok thats it for the php
The following code will only show a count if it is not 0
Now in postbit & and postbit_legacy
both is not actually needed it depends on how you have your postbit viewed.
If you use the old format I think thats postbit_legacy new format is postbit :s (i think)
Find:
You must first be a
registered member to view any code.
Add below:
You must first be a
registered member to view any code.