Actually, eoc_Jason; I believe it would be (PLEASE TRY THE TOP ONE FIRST, IF NOT THEN THE SECOND ONE):
PHP Code:
// For admins:
if ($maxattachsize!=0 and $filesize>$maxattachsize and $bbuserinfo[usergroupid]!=6) {
// For admins/supermods:
if ($maxattachsize!=0 and $filesize>$maxattachsize and $bbuserinfo[usergroupid]!=6 or $bbuserinfo[usergroupid]!=5) {
// For admins/supermods/mods:
if ($maxattachsize!=0 and $filesize>$maxattachsize and $bbuserinfo[usergroupid]!=6 or $bbuserinfo[usergroupid]!=5 or $bbuserinfo[usergroupid]!=7) {
If this is wrong (and this is for the attachment size), then it will probably be the following one:
PHP Code:
// For admins:
if ($maxattachsize!=0 and $filesize>$maxattachsize and ($bbuserinfo[usergroupid]!=6)) {
// For admins/supermods:
if ($maxattachsize!=0 and $filesize>$maxattachsize and ($bbuserinfo[usergroupid]!=6 or $bbuserinfo[usergroupid]!=5)) {
// For admins/supermods/mods:
if ($maxattachsize!=0 and $filesize>$maxattachsize and ($bbuserinfo[usergroupid]!=6 or $bbuserinfo[usergroupid]!=5 or $bbuserinfo[usergroupid]!=7)) {
Thanks.
Dave.