vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Authentication question? (https://vborg.vbsupport.ru/showthread.php?t=31145)

paulsjv 10-24-2001 02:54 AM

how would i go about making a user have to login to the "community" on a page that is out side of the message forum. For example, I want to have a chat room but at the same time i want people to have to register with vBulletin in order to even use the chat room and therefore be logged in to use the chat room. Is there a file I can just include in my php script that will do this functionality already? or what do i need to look for or do in order to create another page that uses the vBulletin authentication? would i just create another template called chat or something of that nature?

mashby 01-30-2002 04:20 PM

I've searched high and low on vbulletin.com and here and I've yet to find a definitive answer. This should really be part of an FAQ or something. :)

Personally, I'm using vBulletin on a private section of my site (http://www.interpug.com) and I'd like to make it so the entire private section (/private) is password protected via vBulletin's user authentication. I don't use PHPNuke or any other scripts, I just want to integrate it with the rest of the site.

Any help would be appreciated. :D

black 01-30-2002 04:42 PM

im guessing include the global.php file

if thats not it i could find out doesnt seem hard......

black 01-30-2002 04:44 PM

but u will have to put the file in the forums/ folder

john2k 02-07-2002 02:14 AM

I just started messing around with user authentication on a non-vB page and was able to get it working by placing the following code at the top of the page:

PHP Code:

<?php

include ("global.php");

if (
$bbuserinfo[userid]==0) {
  
show_nopermission();
}

?>

Only problem is that right now I can only get this to work on the protected page when it is inside the /forums/ directory.

I got the details on this from http://www.vbulletin.com/forum/showt...&postid=245482

Lionel 02-10-2002 02:44 PM

I put in the full path to global.php /var/html/forums/global.php :cool:


All times are GMT. The time now is 11:16 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.01002 seconds
  • Memory Usage 1,719KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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