Well, I could modify the existing no-permissions template, but Id rather have a custom no-permissions for each error.
I have found some examples in the hack db, but they explode my version 2.3.0 when implemented within admin/functions.php:
else {
if($bbuserinfo[usergroupid] == 3) {
eval("standarderror(\"".gettemplate("error_nopermi ssion_awaiting_moderation")."\ ");");
}
else {
if($bbuserinfo[usergroupid] == 4) {
eval("standarderror(\"".gettemplate("error_nopermi ssion_awaiting_coppa")."\");") ;
}
Is there an easier way to do this?
|