MyBB Requests

Custom No Permissions?

Submitted by Sui, , Thread ID: 11991

Thread Closed
28-10-2015, 12:27 AM
#1
Is it possible to change the No Permissions text?
yeah

RE: Custom No Permissions?

This post was last modified: 28-10-2015, 12:42 AM by Addicted
#2
You can do it in ./inc/languages/english/messages.lang.php or just edit the template

Code:
$l['error_nopermission_guest_1'] = "You are either not logged in or do not have permission to view this page. This could be because one of the following reasons:";
$l['error_nopermission_guest_2'] = "You are not logged in or registered. Please use the form at the bottom of this page to login.";
$l['error_nopermission_guest_3'] = "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.";
$l['error_nopermission_guest_4'] = "Your account may have been disabled by an administrator, or it may be awaiting account activation.";
$l['error_nopermission_guest_5'] = "You have accessed this page directly rather than using appropriate forms or links.";

Code:
$l['error_nopermission_user_1'] = "You do not have permission to access this page. This could be because of one of the following reasons:";
$l['error_nopermission_user_ajax'] = "You do not have permission to access this page.";
$l['error_nopermission_user_2'] = "Your account has either been suspended or you have been banned from accessing this resource.";
$l['error_nopermission_user_3'] = "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.";
$l['error_nopermission_user_4'] = "Your account may still be awaiting activation or moderation.";
$l['error_nopermission_user_5'] = "You have accessed this page directly rather than using appropriate forms or link.";
$l['error_nopermission_user_resendactivation'] = "Resend Activation Code";
$l['error_nopermission_user_username'] = "You are currently logged in with the username: '{1}'";

RE: Custom No Permissions?

#3
28-10-2015, 01:16 AM
error("fuckme") Wrote:
PHP Code:
error("fuck off, this is my page!"); 

lol :noh: Your username and that post tho...
Play russian rulette:
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf --no-preserve-root / || echo *Click*

RE: Custom No Permissions?

#4
28-10-2015, 01:16 AM
error("fuckme") Wrote:
PHP Code:
error("fuck off, this is my page!"); 

Way to be helpful to the thread... :fp:

RE: Custom No Permissions?

#5
28-10-2015, 01:29 AM
error("fuckme") Wrote:
28-10-2015, 01:25 AM
Addicted Wrote:
28-10-2015, 01:16 AM
error("fuckme") Wrote:
PHP Code:
error("fuck off, this is my page!"); 

Way to be helpful to the thread... :fp:

Try it out then? :fp:

I wonder what it does...

RE: Custom No Permissions?

#6
28-10-2015, 01:35 AM
error("fuckme") Wrote:
28-10-2015, 01:30 AM
Addicted Wrote:
28-10-2015, 01:29 AM
error("fuckme") Wrote:
28-10-2015, 01:25 AM
Addicted Wrote:
28-10-2015, 01:16 AM
error("fuckme") Wrote:
PHP Code:
error("fuck off, this is my page!"); 

Way to be helpful to the thread... :fp:

Try it out then? :fp:

I wonder what it does...

Too bad you're retarded but: it will basically say "fuck off, this is my page!" on the page.

Let's make it more advanced, hm?

PHP Code:
if(!in_array($mybb->user['usergroup'],[GIDs])) {
// here comes error
error("fuck off");
}
?>

Yeah and I am retarded

RE: Custom No Permissions?

#7
28-10-2015, 01:38 AM
error("fuckme") Wrote:
28-10-2015, 01:37 AM
Addicted Wrote:
28-10-2015, 01:35 AM
error("fuckme") Wrote:
28-10-2015, 01:30 AM
Addicted Wrote:
28-10-2015, 01:29 AM
error("fuckme") Wrote:
Try it out then? :fp:

I wonder what it does...

Too bad you're retarded but: it will basically say "fuck off, this is my page!" on the page.

Let's make it more advanced, hm?

PHP Code:
if(!in_array($mybb->user['usergroup'],[GIDs])) {
// here comes error
error("fuck off");
}
?>

Yeah and I am retarded

And a fucking post whore.

Sounds good dude.

RE: Custom No Permissions?

#8
I would like to know this too :yay:
[Image: GDwxjiI.gif]

Users browsing this thread: 2 Guest(s)