Log in

View Full Version : Would like to use standard "not logged in" message


Disco_Stu
06-09-2012, 07:14 PM
How can I display the standard

"you are not logged in or do not have permission to access this page"

message instead of the

"The administrator has disabled viewing of the arcade for your member group."

that is currently displayed when I restrict the arcade to registered/ logged in users? I have the arcade set up to be accessed via a new tab and would like to have the same look as the other pages that are restricted to registered/logged in users.

Thanks

Hippy
06-09-2012, 07:37 PM
open up this file

arcade/lang/lang_Arcade_en.php
search for The administrator has disabled viewing of the arcade for your member group

and change it to what you like

Disco_Stu
06-09-2012, 09:01 PM
Those seem to be the literals that are displayed.

I was hoping to be able to execute the standard function print_no_permission(). If I replace the literal with "print_no_permission();" then it's going to display "print_no_permission();" and not actually execute the function print_no_permission().

Is there a place that I can insert the call to the function print_no_permission() ?

Hippy
06-10-2012, 11:22 AM
if you need it that complex then you'll have to do a little recoding
you mentioned to have it state x instead of z
that was the easiest way
if you need option / permissions for one or the other
recoding is needed

Disco_Stu
06-10-2012, 03:46 PM
ok...thanks.

I'll experiment with it a bit. I think I just need to add the test and function call to the php file.