PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 9th, 2003, 10:30 AM
Defencetalk Defencetalk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 1 Defencetalk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
.html site integration with .php/phpbb, etc.

Hi,

We have phpBB software as our forum and coppermine gallery (written in .php) as our gallery software. Rest of the website is in .html format.

I would like to have users register/login from any page (mainly from html pages) of the website and still be able to post in Gallery/Forums, etc. Also, they would be loged into the website no matter what page they visit as long as they are on that domain.

Anyone familiar with this procedure or can help me accomplish this? Help is very appreciated it. THANK YOU.

Defencetalk

Reply With Quote
  #2  
Old September 11th, 2003, 06:42 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,240 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 18
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
As long as your forms point to your login script (PHP script), you'll be able to use the .html files to login. You'll also need to establish a session for each user, and then check on each page whether or not the session exists for the user currently logged in.

You can also use cookies as an alternative to sessions; although I prefer sessions.
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #3  
Old September 6th, 2010, 05:53 AM
elum.chaitu elum.chaitu is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2010
Posts: 16 elum.chaitu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 56 sec
Reputation Power: 0
Arrow .html site integration with .php/phpbb, etc.

Hello, To integrate phpBB sessions on any page you like, use this code
PHP Code:


define('IN_PHPBB', 1);

$phpbb_root_path = '/path/to/phpBB/';

include($phpbb_root_path.'extension.inc');

include($phpbb_root_path.'common.'.$phpEx);



$userdata = session_pagestart($user_ip, PAGE_INDEX);

init_userprefs($userdata);



if ( $userdata['session_logged_in'] ) {

// there is a logged in user

} else {

// user is not logged in

?>

<form method='post' action='/path/to/phpBB/login.php'>

<fieldset>

<input type='hidden' name='redirect' value='<?=$_SERVER['SCRIPT_NAME']?>' />

<input type='text' name='username' /><br />

<input type='password' name='password' /><br />

<input type='submit' name='login' value='Login!' />

</fieldset>

</form>

<?php

}

?>

Reply With Quote
  #4  
Old January 27th, 2011, 03:38 AM
TiceTonaunake TiceTonaunake is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2011
Location: Algeria
Posts: 1 TiceTonaunake User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 50 sec
Reputation Power: 0
Send a message via ICQ to TiceTonaunake
Erotik-Chat was frauen sexuellen Vorlieben was frauen

Willkommen und Hallo hier im Erotik-Chat. Der Erotik-Chat bietet ihnen die Möglichkeit was frauen und jedemenge andere Sachen,sicherlich auch Sexgeschichten Hier in unsrem Erotik-Chat erwarten dich was frauen Live Dates Suchst du Flirt und Sextalk , sicher bist du hier genau richtig.Ok,worauf wartest du? Flirt und Sextalk erotische frauen ,schnell anmelden . Du suchst jemand von Neuenburg, vieleicht in Oldenburg, oder von Bulle , in Bern, oder Schwaz? Bestimmt ist da jemand dabei.!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > .html site integration with .php/phpbb, etc.


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap