![]() |
Is there a way to create a special page where people have to login using their VB username and password and it takes them to another non-VB page? What I want to accomplish is to have only registered users have access to our chat room (which is not related to Vb).
Is it possible to use Vb as an entry point for another non-Vb page? |
You should be able to just use something like this code here: http://www.vbulletin.com/forum/showt...?threadid=2138
-Chris |
what about the first question?
I would like to have a restricted area where only people registered in the forums can have access, but its not a chat area |
That hack doesn't really apply. I'm trying to do something similar. I need secure pages to check if there's a vb cookie, and if there's not they can sign in using their vb username and password. Then they would see the protected pages.
I've created a login that checks for the cookie and posts the login to the vb index.php file, but after logging in it dumps the user at the forum. I need to have the user dumped at the page they were trying to view. Any help? |
I'm trying the same thing, it checks for the cookie, if it doesn't exist then it allows you to log in, then queries the user table to allow you to use it in a non-vB. I have no idea if this is proper, but it's working for me.
/*Insert into your non-vB page */ require("global.php"); if ($bbusername == "") { eval("\$logincode = \"".gettemplate("logincode")."\";"); echo $logincode; } else { $getusername=$DB_site->query_first("SELECT username,email,homepage FROM user WHERE userid=$bbuserid"); /* Then below, substitute names for use in a non-vb program where the user table has different field names, I use it to fill in a form that already exists in the other program. */ $user=$getusername[username]; $email=$getusername[email]; $url=$getusername[homepage]; } ############# [Edited by wajones on 10-15-2000 at 07:53 PM] |
Thanks for the tip, but that doesn't really help my situation. I don't have another program that I'm trying to get users to log in to.
I'm really just trying to password protect certain pages with vb username and passwords. If there's a cookie, then the user should see the page just fine. If they aren't logged in to vb, they need to see a login screen that will then reveal the password protected page after logging in. |
Same thing just use...
require("global.php"); if ($bbusername == "") { eval("\$logincode = \"".gettemplate("logincode")."\";"); echo $logincode; } else { ##Your code goes here## } Maybe other/better ways of doing it... Also as Chris pointed out see http://www.vbulletin.com/forum/showt...?threadid=2138 [Edited by wajones on 10-16-2000 at 09:40 PM] |
Thanks for the help ... you've given me a great place to start!
|
hi, i have used this code to check to see if a cookie exists to access a non-forum page on my site. It does identify the user, but it also marks that user as having visited the forums when in fact they did not. I found another thread of somebody with this same problem, no reply though. Any help will be much appreciated.
Thanks, Mike |
All times are GMT. The time now is 12:28 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|