Reply
PHPBB Login not working properly in IE
Old 03-27-2006, 06:20 PM PHPBB Login not working properly in IE
Junior Talker

Posts: 3
Hey,

I have a phpBB forum, and I'm making a website to go along with it... I've made a login system that's linked to the forum's login, and it works perfectly. Except, of course, in Internet Explorer. When I login using IE, it takes me to the login page on the forum, in stead of just loging in.

Here's the code (partly HTML and partly PHP):

HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>

<embed src="1.mp3" autostart="true" loop="true"
width="2" height="0">
</embed>
<noembed>
<bgsound src="1.mp3" loop="infinite">
</noembed>

<div id="wrap">
  <div id="container"> 
    <div id="temp_header"><img src="images/header.gif"></div>
    <div id="temp_nav"><img src="images/nav.gif"></div>
    <div id="temp_content"><img src="images/content.gif"></div>
    <div id="temp_nav_bot"><img src="images/nav_bot.gif"></div>
    <div id="temp_content_bot"><img src="images/content_bot.gif"></div>
  
    <div id="content">
    
    <!-- BOX
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
          <td><img src="images/box_top.gif" width="481" height="30"></td>
      </tr>
      <tr>
          <td background="images/box_mid.gif"><div class="news"></div></td>
      </tr>
      <tr>
          <td><img src="images/box_bot.gif"></td>
      </tr>
      </table>
    
    -->
    
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
          <td><img src="images/box_top.gif" width="481" height="30"></td>
      </tr>
      <tr>
          <td background="images/box_mid.gif"><div class="news">
              <p>Welcome to the Council of the Oak homepage.<br>
                <br>
                The site is still being worked on, as you probably can see.</p>
              <p>To do list:</p>
              <p>- Design (done)<br>
                - Navigation menu in Flash (done)<br>
                - Login system (almost done)<br>
                - News system<br>
                - Content on the different pages<br>
                - Text layout</p>
              <p>Nu'nhala-tu</p>
            </div>
      </tr>
      <tr>
          <td><img src="images/box_bot.gif"></td>
      </tr>
      </table>
      
      <br>
      
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
          <td><img src="images/box_top.gif" width="481" height="30"></td>
      </tr>
      <tr>
          <td background="images/box_mid.gif"><div class="news">Hi, here's some 
              dummy text ;o<br>
              <br>
              <br>
              Pellentesque rutrum urna at turpis. Vestibulum ante ipsum primis 
              in faucibus orci luctus et ultrices posuere cubilia Curae; Nulla 
              mollis augue id eros. Nulla arcu. Cras sodales laoreet ipsum. Vivamus 
              convallis fermentum nibh. Ut facilisis orci sed mi. Donec augue. 
              Ut quis neque. Vestibulum ante.<br>
              <br>
              Vivamus egestas, nunc et commodo porttitor, nunc turpis sodales 
              nulla, vel convallis nisi purus at eros. Curabitur posuere vulputate 
              urna. Suspendisse potenti. Pellentesque ac est. Pellentesque velit 
              risus, molestie placerat, porttitor id, condimentum et, ante. Quisque 
              lobortis condimentum leo. <br>
              <br>
              In quis odio eget velit bibendum rutrum. Nunc non quam. Duis vitae 
              justo. In lacinia risus non sem. Nullam vitae est blandit metus 
              dignissim aliquet. Aliquam egestas. Aliquam metus felis, scelerisque 
              eget, molestie a, aliquam et, dui. Aenean mauris. Nullam euismod 
              diam sed ipsum. Integer pellentesque. Pellentesque id urna sit amet 
              ipsum pharetra suscipit. Nunc condimentum. Aenean et nibh quis tortor 
              bibendum posuere. Quisque posuere felis id tortor. Nunc ante. </div></td>
      </tr>
      <tr>
          <td><img src="images/box_bot.gif"></td>
      </tr>
      </table>
    </div>
    
    <div id="menu"> 
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="162" height="170">
        <param name="movie" value="nav.swf">
        <param name="quality" value="high">
        <param name="wmode" value="transparent">
        <embed src="nav.swf" width="162" height="170" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed></object>
    </div>
    
    <div id="login"> 
      <?php
define('IN_PHPBB', true);
$phpbb_root_path = '../cotoforum/'; //Change this to point to your phpBB directory
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

if ( !defined('IN_PHPBB') )
{
    die("Hacking attempt");
}

// Start session management

$userdata = session_pagestart($user_ip, PAGE_SITE);
init_userprefs($userdata); 

// End session management


// Log in

$uname = $userdata['username'];
if($uname=="Anonymous") {

?>
<div id="welcome">You are not logged in.</div>
<form action="../cotoforum/login.php" method="post">
<input type="hidden" name="redirect" value="../coto/index.php">
<table>
<tr><td><input type="text" class="loginbox" name="username" value="username" size="12"></td></tr>
<tr><td><input type="password" class="loginbox" name="password" value="password" size="12"></td></tr>
<tr><td><input type="image" src="images/login.gif" value="login" class="submit" name="login" width="57" height="18"></td></tr>
</table>
</form>
<?php

}
else 
//
{
?>
<div id="welcome"><?php echo "You are logged in as ".$uname; ?></div>
<?php
$u_login_logout = '../cotoforum/logout.'.$phpEx.'?logout=true&amp;sid=' . $userdata['session_id'];
$logout = append_sid($u_login_logout);
?>
<div id="logoutback"> 
<?php
echo "$uname";
?><br>&nbsp;
</div>

<a id="logoutbut" href="<?php echo $logout ?>"><img src="images/logout.gif" border="0"></a> 
   
<?php  
}
?>
    </div>
    
  </div>
</div>

</body>
</html>
flipkipje is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-29-2006, 12:14 PM Re: PHPBB Login not working properly in IE
Junior Talker

Posts: 3
anyone?
flipkipje is offline
Reply With Quote
View Public Profile
 
Old 03-29-2006, 12:16 PM Re: PHPBB Login not working properly in IE
Novice Talker

Posts: 11
I have the same problem! Don't know how to fix it.. someone help here plz

Or is there another way to make the login system?
bleh is offline
Reply With Quote
View Public Profile
 
Old 03-29-2006, 05:29 PM Re: PHPBB Login not working properly in IE
Veter's Avatar
Super Talker

Posts: 136
Try to insert in the form this hidden field:
<input type="hidden" name="login" value="Log In">
__________________
-= B2Netsolutions Inc. =-
-= Dedicated servers - Shoutcast hosting =-
Veter is offline
Reply With Quote
View Public Profile Visit Veter's homepage!
 
Old 03-29-2006, 05:38 PM Re: PHPBB Login not working properly in IE
Novice Talker

Posts: 11
omg thanks man its working
bleh is offline
Reply With Quote
View Public Profile
 
Old 03-29-2006, 05:38 PM Re: PHPBB Login not working properly in IE
Junior Talker

Posts: 3
wow thanks! it worked
flipkipje is offline
Reply With Quote
View Public Profile
 
Old 04-19-2006, 01:24 PM Re: PHPBB Login not working properly in IE
Junior Talker

Posts: 1
hi this code <input type="hidden" name="login" value="Log In"> where do i put it in my code

i can't get it to work

<table width="200" border="0" align="center">
<tr>
<td><div id="wrap">
<div id="container">
<div id="temp_nav_bot"></div>
<div id="temp_content_bot"></div>
<div id="menu"></div>
<div id="login">
<div class="style5" id="welcome">You are not logged in.</div>
<form action="../forum/login.php" method="post">
<input type="hidden" name="login" value="Log In">
<table>
<tr>
<td><div align="right"><span class="style2 gen"><strong>Username:
</strong></span>
<input type="text" class="copyright" name="username" value="username" size="15">
</div></td>
</tr>
<tr>
<td><div align="right"><span class="gen style4"><span class="style2">Password</span>:
</span>
<input type="password" class="copyright" name="password" value="" size="15">
</div></td>
</tr>
<tr>
<td align="right" valign="middle">

<div align="right" class="gen">
<div align="justify"><strong><a href="<A href="http://www.reptileontario.com/forum/profile.php?mode=register&agreed=true">Register">h ttp://www.reptileontario.com/forum/profile.php?mode=register&agreed=true">Register!

</a> </strong>
<label>
<input type="submit" name="login2" value="login"><input type="hidden" name="login2" value="login">
</label>
</div>
</div></td>
</tr>
</table>
</form>
<?php
}
else
//
{
?>
<div id="welcome"><?php echo "You are logged in as ".$uname; ?></div>
<?php
$u_login_logout = '../forum/login.'.$phpEx.'?logout=true&amp;sid=' . $userdata['session_id'];
$logout = append_sid($u_login_logout);
?>
<div id="logoutback">
<?php
echo "";
?>
<br>
&nbsp; </div>
<a id="logoutbut" href="<?php echo $logout ?>"><img src="images/logout.gif" width="54" height="14" border="0"></a>
<?php
}
?>
</div>
</div>
</div></td>
</tr>
</table>
straat18 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHPBB Login not working properly in IE
 

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15265 seconds with 12 queries