View Full Version : Authentication question?
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
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/showthread.php?s=&postid=245482
Lionel
02-10-2002, 02:44 PM
I put in the full path to global.php /var/html/forums/global.php :cool:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.