vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Special Login Vb Page idea (https://vborg.vbsupport.ru/showthread.php?t=2191)

08-02-2000 02:56 PM

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?

08-02-2000 03:18 PM

You should be able to just use something like this code here: http://www.vbulletin.com/forum/showt...?threadid=2138

-Chris

08-02-2000 07:47 PM

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

10-15-2000 12:06 PM

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?

10-15-2000 10:40 PM

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]

10-16-2000 11:51 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.

10-17-2000 12:38 AM

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]

10-17-2000 01:01 AM

Thanks for the help ... you've given me a great place to start!

blazin 03-07-2002 06:58 PM

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
  • Page Generation 0.01448 seconds
  • Memory Usage 1,724KB
  • 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
  • (9)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