vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Would like to use standard "not logged in" message (https://vborg.vbsupport.ru/showthread.php?t=284231)

Disco_Stu 06-09-2012 07:14 PM

Would like to use standard "not logged in" message
 
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.


All times are GMT. The time now is 06:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00981 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete