Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-02-2000 Last Update: Never Installs: 0
 
No support by the author.

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?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-02-2000, 03:18 PM
Guest
 
Posts: n/a
Default

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

-Chris
Reply With Quote
  #3  
Old 08-02-2000, 07:47 PM
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #4  
Old 10-15-2000, 12:06 PM
Guest
 
Posts: n/a
Default

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?
Reply With Quote
  #5  
Old 10-15-2000, 10:40 PM
Guest
 
Posts: n/a
Default

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]
Reply With Quote
  #6  
Old 10-16-2000, 11:51 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #7  
Old 10-17-2000, 12:38 AM
Guest
 
Posts: n/a
Default

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]
Reply With Quote
  #8  
Old 10-17-2000, 01:01 AM
Guest
 
Posts: n/a
Default

Thanks for the help ... you've given me a great place to start!
Reply With Quote
  #9  
Old 03-07-2002, 06:58 PM
blazin blazin is offline
 
Join Date: Jan 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04333 seconds
  • Memory Usage 2,255KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete