Jump to content

Recommended Posts

Hello all, I'm afraid this topic has been beaten to death time and time again, and I am sorry, but I still haven't found exactly what I am looking for as far as integration goes. I am looking to have a portion of my site a members only area, and the only way to access this area is if you have registered with my phpbb forum. I want users to be able to login via a form on my site, and if they login successfully be able to go to the forums AND my portion of the site that is members only. Can someone show me how this is done? Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/65361-phpbb-forum-int/
Share on other sites

  • 3 weeks later...

Well as far as the form goes here is the code:

 

phpBB 2

Asuming you forum path is /forum/

 

<form method="post" action="./forum/login.php">
   
   <table class="tablebg" width="100%" cellspacing="1" id="table1">
   <tr>
      <td class="cat" height="39"><h4> </h4></td>
   </tr>

   <tr>
      <td class="row1" align="center" height="164"><font size="1">Username</font><font face="Trebuchet MS"><span class="genmed"><font size="1">:</font></span><font size="1"> </font>
	<font size="1" face="Trebuchet MS" color="#FFFFFF"> <input class="post" type="text" name="username" size="10" /></font><font size="1"> </font></font><font size="1">Password</font><font size="1" face="Trebuchet MS"><span class="genmed">:</span> 
	</font><font face="Trebuchet MS">
	<font size="1" face="Trebuchet MS" color="#FFFFFF"> <input class="post" type="password" name="password" size="10" /></font><font size="1">  
	</font></font><font size="1" face="Trebuchet MS" color="#FFFFFF"> <input type="submit" class="btnmain" name="login" value="Login" /></font><font face="Trebuchet MS" size="1">
	</font>
	</td>
   </tr>
   </table>

   
  </form>

 

phpBB 3

Asuming your forum path is /forum/

 

<form method="post" action="./forum/ucp.php">
   
   <table class="tablebg" width="100%" cellspacing="1" id="table1">
   <tr>
      <td class="cat" height="39"><h4> </h4></td>
   </tr>

   <tr>
      <td class="row1" align="center" height="164"><font size="1">Username</font><font face="Trebuchet MS"><span class="genmed"><font size="1">:</font></span><font size="1"> </font>
	<font size="1" face="Trebuchet MS" color="#FFFFFF"> <input class="post" type="text" name="username" size="10" /></font><font size="1"> </font></font><font size="1">Password</font><font size="1" face="Trebuchet MS"><span class="genmed">:</span> 
	</font><font face="Trebuchet MS">
	<font size="1" face="Trebuchet MS" color="#FFFFFF"> <input class="post" type="password" name="password" size="10" /></font><font size="1">  
	</font></font><font size="1" face="Trebuchet MS" color="#FFFFFF"> <input type="submit" class="btnmain" name="login" value="Login" /></font><font face="Trebuchet MS" size="1">
	</font>
	</td>
   </tr>
   </table>

   
  </form>

 

If your forum path is not /forum/ change the line below to the relavant path.

 

phpBB 2

<form method="post" action="./forum/login.php">

 

phpBB 3

<form method="post" action="./forum/ucp.php">

 

Not sure about the re-direction to your part of the forum though.

Link to comment
https://forums.phpfreaks.com/topic/65361-phpbb-forum-int/#findComment-339889
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.