[Request] Register/Login From Different Page

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.

[Request] Register/Login From Different Page

Postby DKing » Tue Jul 06, 2004 3:07 pm

Is there a mod that can allow users to register/login to phpBB forums on a page that is part of my website? If so, that would be awesome!

Thanks,

DKing
DKing
Registered User
 
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Postby DKing » Tue Jul 06, 2004 4:34 pm

Let me rephrase this a bit:

Is there a way to:

1. Login to my forums from my website

2. Use the same database from my website for my forum: I will have it to where there are member's features if people login.

Im not going to publicise my website, but I need this/these mods. If this is not possible, fine. If so, if you can get around to it, thanks a bunch!!!
DKing
Registered User
 
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Postby DKing » Wed Jul 07, 2004 1:39 pm

Fine... if you wont answer, I am going to go ahead and learn vB Script... (somehow) and after about 5 years of study, I might be able to create something like vBulliten (Yeah... right... *shifty eyes*) Anyways... CAN SOMEONE PLEASE HELP ME!?!?!?!?
DKing
Registered User
 
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Same problem

Postby PimpPot » Wed Jul 07, 2004 4:21 pm

Yeah, i just installed the bb and would like users to be able to login only once from my website's main page. That would mean that i enable the users to login from the main page and bypass phpBB2's own login page.
I also want them to be able to create their own accounts from my page.

Where can i find tutorials for this?
User avatar
PimpPot
Registered User
 
Posts: 2
Joined: Tue Jul 06, 2004 4:31 pm

Postby Brent C. Stevens » Thu Jul 08, 2004 9:43 am

Okay, if you know some basic web-creation, you could just re-adapt the code from the login.php file into the rest of your webpage. Giving credit to the great authors who created the software of course!
Image
User avatar
Brent C. Stevens
Registered User
 
Posts: 331
Joined: Wed Jun 30, 2004 9:18 pm
Location: London, England

Postby krfuhlbrigge » Thu Jul 08, 2004 4:02 pm

See this article:

http://www.phpbb.com/kb/article.php?article_id=143

Here's an example of how I protect my site's pages:

Code: Select all
define('IN_PHPBB', true);
$phpbb_root_path = '../../community/phpbb2/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);


// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_VIEWMEMBERS);
init_userprefs($userdata);

//
// session id check
//
if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
{
   $sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : $HTTP_GET_VARS['sid'];
}
else
{
   $sid = '';
}

// Require user to be logged in to view the page
// Borrowed code from another file, not really a mod
if ( ! ($userdata['session_logged_in'] ))
{
        $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
        header($header_location . append_sid("/login/login.$phpEx?redirect=/admins/affilates/pending_affiliate_list.$phpEx", true));
        exit;
}
// end user logged in mod
Eschew obfuscation.
User avatar
krfuhlbrigge
Registered User
 
Posts: 60
Joined: Wed Apr 28, 2004 2:58 am
Location: New Jersey

Postby krfuhlbrigge » Thu Jul 08, 2004 4:11 pm

Also, I believe the PhpBB fetchall mod will allow you to actually show a login box on each page.
Eschew obfuscation.
User avatar
krfuhlbrigge
Registered User
 
Posts: 60
Joined: Wed Apr 28, 2004 2:58 am
Location: New Jersey


Return to [2.0.x] MOD Requests

Who is online

Users browsing this forum: No registered users and 1 guest