If you want a different error to be displayed then just add this under that block of code:
PHP Code:
if ($bbuserinfo['usergroupid']!='1' AND $bbuserinfo['usergroupid']!='3' AND $bbuserinfo['usergroupid']!='4' AND $bbuserinfo['posts']<69)
{
// Some code or error message here.
}
Change the
69 to whatever number of posts.
If you want the same error message to be shown then change this:
PHP Code:
if ($bbuserinfo['usergroupid'] == '1' or $bbuserinfo['usergroupid'] == '3')
to this:
PHP Code:
if ($bbuserinfo['usergroupid']=='1' OR $bbuserinfo['usergroupid']=='3' OR ($bbuserinfo['usergroupid']!='4' AND $bbuserinfo['posts']<69))
But, if it were me.. I'd just use this (regardless of whether or not guests can post and I wanted the same error message):
PHP Code:
if ($bbuserinfo['usergroupid']=='1' OR $bbuserinfo['usergroupid']=='3' OR $bbuserinfo['usergroupid']=='4' OR $bbuserinfo['posts']<69)