MyBB Community Forums

Full Version: How to change the error message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do you change;
You are either not logged in or do not have permission to view this page. This could be because one of the following reasons:
You are not logged in or registered. Please use the form at the bottom of this page to login.
You do not have permission to access this page. Are you trying to access administrative pages or a resource that you shouldn't be? Check in the forum rules that you are allowed to perform this action.
Your account may have been disabled by an administrator, or it may be awaiting account activation.
You have accessed this page directly rather than using appropriate forms or links.

Because when someone gets suspended from posting it will say ^^^^ that, and i want it to say you have been suspend from posting because ...
so is it possible to edit the error message for every cateritoy?
Can anybody help me with this?
AdminCP -> Configuration -> Languages -> Your Language -> [Options] -> Edit Language Variables -> messages.lang.php

Edit the following:

error_nopermission_guest_1
error_nopermission_guest_2
error_nopermission_guest_3
error_nopermission_guest_5
Do you have to put an option for everything?
And can you do a certain, like if they try to access the mod cp, it will say restricted, and if they are banned from posting, it will say you are banned for posting for, x days, x hours, x minutes, and x seconds, and the time counts down, with out refreshing the page.