vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   "No permission" message on custom vB page (https://vborg.vbsupport.ru/showthread.php?t=72265)

Dave Rosteck 11-28-2004 01:00 AM

"No permission" message on custom vB page
 
Can someone explain how to make the "No permission" error message appear for guests telling them to login or register when they access this part of my forums (http://forums.davesmk.com/chat.php)? You see, I'd like to do this to encourage my guests to register when accessing my chatroom.

Thanks in advance for the help.

Andreas 11-28-2004 02:22 AM

PHP Code:

if (!$bbuserinfo['userid']) {
  
print_no_permission();


Personally, I don't think it would encourage guests to register - the error-messages just gets on their nerves.

Dave Rosteck 11-28-2004 05:26 PM

Do I place this code in the chat.php file or template and what location within the code if that matters?

I agree with you that the message may irritate them. However, this beats the general chat login screen I have now which doesn't even supply the register link or information on how to become a chat user.

Thanks for the help KirbyDE, much appreciated.

Andreas 11-28-2004 06:46 PM

Place this in chat.php, right after require_once('./global.php');

T3MEDIA 12-13-2004 06:05 PM

what if you had a template? How would that work?

deathemperor 12-14-2004 03:43 AM

it can only be placed on php file, useless in template yet it doesn't accept

filburt1 12-14-2004 03:54 AM

Quote:

Originally Posted by Dave Rosteck
Can someone explain how to make the "No permission" error message appear for guests telling them to login or register when they access this part of my forums (http://forums.davesmk.com/chat.php)? You see, I'd like to do this to encourage my guests to register when accessing my chatroom.

Thanks in advance for the help.

As Kirby said, it can discourage registrations rather than encourage. And the registrations you get will likely never make any posts.

Instead, earn your registrations through content and a unique positive experience.


All times are GMT. The time now is 12:19 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.03371 seconds
  • Memory Usage 1,722KB
  • 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)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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