vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Modifying the "You are not logged in" message (https://vborg.vbsupport.ru/showthread.php?t=96330)

MadMorbius 09-15-2005 01:53 PM

Modifying the "You are not logged in" message
 
I'd like to modify the message that's returned to a user when they attempt to access a resource to which they have no access or are not logged in. The current message is:

%user%, you do not have permission to access this page. This could be due to one of several reasons:

(lists reasons)

I'd like to add to the reasons that are displayed. Can someone tell me where that's done?

Thanks

Chris M 09-15-2005 02:06 PM

You will need to edit the [high]nopermission_loggedin[/high] phrase found in the "Error Messages" phrasegroup :)

Chris

MadMorbius 09-15-2005 02:53 PM

Thanks very much. Located it and changed to suit. I guess to add an additional entry however, I'll need to add the phrase and modify the template to display it?

Chris M 09-15-2005 02:57 PM

If you mean how do you modify the existing phrase to add more reasons for not having permission, then there are 2 ways of accomplishing this:

1.) You enable debug mode in your config.php file and alter the MASTER LANGUAGE phrases

2.) You paste the altered version of the phrase into the "English (US) Translation" box and this will become what is displayed :)

Chris

b65ran 09-15-2005 08:29 PM

is there any way you can add a quick register code in there so guest can register or users can login is they need to?


All times are GMT. The time now is 11:12 PM.

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.01160 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