AMcKay
06-22-2008, 09:46 PM
EDIT: Nevermind. I've got what I was looking for.
I need a hack that can limit the number of times a person can post per thread in certain forums. It doesn't need to be an official addon - just a code snippet and where to add it will do.
This is what I'm looking for. Unfortunately it doesn't work for 3.7.X:
https://vborg.vbsupport.ru/showthread.php?p=1046096
I think the result would look something like this, but I barely know any php:
if ($bbuserinfo[usergroupid]==6 AND $foruminfo[forumid]==1) {
$checkpostfromthread=$db->query_first("SELECT count(*) as count FROM " . TABLE_PREFIX . "post AS post
WHERE threadid = $threadinfo[threadid] AND userid=$bbuserinfo[userid]");
if ($checkpostfromthread['count']>0) {print_no_permission();}
}
I need a hack that can limit the number of times a person can post per thread in certain forums. It doesn't need to be an official addon - just a code snippet and where to add it will do.
This is what I'm looking for. Unfortunately it doesn't work for 3.7.X:
https://vborg.vbsupport.ru/showthread.php?p=1046096
I think the result would look something like this, but I barely know any php:
if ($bbuserinfo[usergroupid]==6 AND $foruminfo[forumid]==1) {
$checkpostfromthread=$db->query_first("SELECT count(*) as count FROM " . TABLE_PREFIX . "post AS post
WHERE threadid = $threadinfo[threadid] AND userid=$bbuserinfo[userid]");
if ($checkpostfromthread['count']>0) {print_no_permission();}
}