Custom No Permissions?

by Nyan - 28-10-2015, 12:27 AM
into white males like inanimate
Posts:
2,313
Joined:
Jun 2015
Likes:
192
Credits:
122
Reputation:
205
1 Year of Service
#1
OP
Posted: 28-10-2015, 12:27 AM
Is it possible to change the No Permissions text?
and
­
Posts:
4,221
Joined:
Jan 2015
Likes:
103
Credits:
6,932
Reputation:
89
2 Years of Service
#2
Posted: 28-10-2015, 12:41 AM (This post was last modified: 28-10-2015, 12:42 AM by Addicted.)
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}'";
千里眼
Posts:
1,509
Joined:
May 2015
Likes:
80
Credits:
9
Reputation:
76
1 Year of Service
#3
Posted: 28-10-2015, 01:20 AM
(28-10-2015, 01:16 AM)error("fuck me") Wrote:
PHP Code:
error("fuck off, this is my page!"); 

lol :noh: Your username and that post tho...
­
Posts:
4,221
Joined:
Jan 2015
Likes:
103
Credits:
6,932
Reputation:
89
2 Years of Service
#4
Posted: 28-10-2015, 01:25 AM
(28-10-2015, 01:16 AM)error("fuck me") Wrote:
PHP Code:
error("fuck off, this is my page!"); 

Way to be helpful to the thread... :fp:
­
Posts:
4,221
Joined:
Jan 2015
Likes:
103
Credits:
6,932
Reputation:
89
2 Years of Service
#5
Posted: 28-10-2015, 01:30 AM
(28-10-2015, 01:29 AM)error("fuck me") Wrote:
(28-10-2015, 01:25 AM)Addicted Wrote:
(28-10-2015, 01:16 AM)error("fuck me") 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...
­
Posts:
4,221
Joined:
Jan 2015
Likes:
103
Credits:
6,932
Reputation:
89
2 Years of Service
#6
Posted: 28-10-2015, 01:37 AM
(28-10-2015, 01:35 AM)error("fuck me") Wrote:
(28-10-2015, 01:30 AM)Addicted Wrote:
(28-10-2015, 01:29 AM)error("fuck me") Wrote:
(28-10-2015, 01:25 AM)Addicted Wrote:
(28-10-2015, 01:16 AM)error("fuck me") 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
­
Posts:
4,221
Joined:
Jan 2015
Likes:
103
Credits:
6,932
Reputation:
89
2 Years of Service
#7
Posted: 28-10-2015, 01:39 AM
(28-10-2015, 01:38 AM)error("fuck me") Wrote:
(28-10-2015, 01:37 AM)Addicted Wrote:
(28-10-2015, 01:35 AM)error("fuck me") Wrote:
(28-10-2015, 01:30 AM)Addicted Wrote:
(28-10-2015, 01:29 AM)error("fuck me") 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.
The weirdest fish of them all
Supreme
Posts:
96
Joined:
Jun 2015
Likes:
8
Credits:
363
Reputation:
5
1 Year of Service
#8
Posted: 28-10-2015, 01:46 AM
I would like to know this too  :yay:
[Image: GDwxjiI.gif]
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)