View Full Version : Banned page.
okrogius
03-08-2002, 05:27 PM
It would be really nice if someone could createa hack to display a custom template instead of the standard erorr_nopermission_loggedin template if the user belongs to a certain usergroup (banned by moderators).
Thanks in advance.
inetd
03-08-2002, 05:55 PM
Good idea! :cool:
interesting.... explain more
okrogius
03-08-2002, 07:38 PM
If any regular user is banned through mod control panel they're moved to auser group called 'Banned By Moderators' (not always same group id). If anyone in that group tries to access any part of teh forums they jsut get a vbulletin message showing error_nopermission_loggedin template, which summarized says taht you either haven't activated your account, don't have permission to be there, etc and you're logged in as so and so.
Well to make it easier for who is banned and who is not (in case not banned person tries to post something when havne't activated account or access some private area they get sma error page. So if a user belogns to a usergroup called 'Banned By Moderators' instead of giving him/her error_nopermission_loggedin give another template in vbulletin message format jsut like that one is, which specifically explains you're bnaned and what to do regarding false bans, etc.
cditty
03-08-2002, 07:59 PM
This is a good idea. I recently had to ban a user and I saw the banned screen. It basically just says there was an error or you do not have permission to access this section. Kinda confusing.
Chris
this is extremly easy.if ($bbuserinfo['usergroupid'] == X) {
eval code
} else {
more eval code
}1. look at the dooutput() function to insert a template.
2. create a custom template to suit your forum needs.
3. you are done. get a snack (i prefer a cigarette) ;)
okrogius
03-08-2002, 09:20 PM
just one issue with that nakkid. Keep in mind it has to be forum wide. (show same on every page) I really don't feel like modifying every display php file (forumdisplay.php, index.php, showthread.php,usercp.php, etc.)
Secodnly is the point that users are getting the erro pare in first place not becuase its coded ina simple form, buyt due to them being prohibited to access forum s in cp and getpermissions trigerring it off in the global.php code.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.