Version: 1.00, by Dpcows
Developer Last Online: Jan 2010
Version: 2.2.x
Rating:
Released: 02-15-2003
Last Update: Never
Installs: 14
Is in Beta Stage
No support by the author.
Version: 0.3
Title: Special post counter system
Requested: [Here]
Explanation: You can maintain a special post counter for certain forums, like your offtopic forum.
Version 0.3 should be working fine.
i'm not able to test it very well. but it worked for me one 1 board.
my conenction make it almost impossible to upload a file to my server :/
but it should work, and there is no restrinction of the amount of forums..
by the way, i put all this in a nice install file
upload that file to your admin dir and run it..
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
--(for screenshot, see attached file)--
if you want to be able to edit the special posts count of a specific member in the admin cp, do this:
open admin/user.php
-find:
PHP Code:
makeinputcode("Number of Posts","posts",$user[posts]);
-just UNDER that, add:
PHP Code:
makeinputcode("Number of Special Posts","specialposts",$user[specialposts]);
-find:
PHP Code:
if ($posts=="") {
$posts=0;
}
-just UNDER that, add:
PHP Code:
if ($specialposts=="") {
$specialposts=0;
}
-find:
PHP Code:
$DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupid='$usergroupid',username='".addslashes(htmlspecialchars($ausername))."'$pwdinclude,email='".addslashes(htmlspecialchars($email))."',styleid='$userstyleid',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser=$coppauser,homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',signature='".addslashes($signature)."',adminemail=$adminemail,showemail=$showemail,invisible=$invisible,usertitle='".addslashes($usertitle)."',customtitle=$customtitle,joindate=$joindate,cookieuser=$cookieuser,nosessionhash=$nosessionhash,daysprune='$daysprune',lastvisit=$lastvisit,lastactivity=$lastactivity,lastpost=$lastpost,posts='$posts',timezoneoffset='$timezoneoffset',emailnotification=$emailnotification,receivepm='$receivepm',emailonpm='$emailonpm',ipaddress='".addslashes($aipaddress)."',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid");
-REPLACE that with:
PHP Code:
$DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupid='$usergroupid',username='".addslashes(htmlspecialchars($ausername))."'$pwdinclude,email='".addslashes(htmlspecialchars($email))."',styleid='$userstyleid',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser=$coppauser,homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',signature='".addslashes($signature)."',adminemail=$adminemail,showemail=$showemail,invisible=$invisible,usertitle='".addslashes($usertitle)."',customtitle=$customtitle,joindate=$joindate,cookieuser=$cookieuser,nosessionhash=$nosessionhash,daysprune='$daysprune',lastvisit=$lastvisit,lastactivity=$lastactivity,lastpost=$lastpost,posts='$posts',specialposts='$specialposts',timezoneoffset='$timezoneoffset',emailnotification=$emailnotification,receivepm='$receivepm',emailonpm='$emailonpm',ipaddress='".addslashes($aipaddress)."',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid");
now you can edit a user's special post count from the admin cp...
I have a question about this hack, thinking it may help me out with a slightly different issue.
When a user is logged in they see the message:
Members: XX, Threads: YY, Posts: ZZ
I have a forum that is run off the NNTP gateway, so it gets TONS of new posts all the time. I was able to "ignore" the threads in that forum via another individual's code help here... I was also able to exclude the forum from the search and "view new posts" functions... however, I have yet to find a way to stop the post count from going up for this forum.
I'm curious - if I use this hack, turn on special post count and use that forumid, will the post count on the main page NOT show the posts that happen in the "special" forum?
If not, is there a way to do that?
Sorry if this is slightly off topic, but I know others are looking for this functionality as well... this is as close as I've seen to pulling it off.
Thanks..
My users are so tired of seeing the post count in the hundreds I have had to turn off the NNTP gateway, even though they also enjoyed having that forum open.