peanutoma
asked on
PHPBB switch problem
I am trying to create a switch in my PHPBB board to display a welcome message when the user is logged in and display a login form when the user is logged out. I am using the built in switches for the site, switch_user_logged_in and switch_user_logged_out.
This is what I have done...
<!--BEGIN switch_user_logged_in -->
<tr>
<td colspan="3" bgcolor="#E8DECC" >{L_LOGIN_LOGOUT}<span class="style10"><a href="{U_LOGIN_LOGOUT}" class="mainmenu">[{L_LOGOU T}]</a></s pan></td>
</tr>
<!--END switch_user_logged_in -->
...
and
<!--BEGIN switch_user_logged_out -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong>Login</strong> </td>
</tr>
<tr>
<td><form name="form1" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td><span class="name"><strong>Usern ame: </strong>
<input name="username" type="text" class="name" id="username" size="15">
</span> </td>
</tr>
<tr>
<td><span class="name"> <strong>Password: </strong>
<input name="Password" type="password" class="name" id="Password" size="15">
</span></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Go">
<input type="reset" name="Reset" value="Reset"></td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td class="maintext">Not a Memeber? <a href="{U_REGISTER}">{L_REG ISTER} here! </a></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<!-- END switch_user_logged_out -->
When I run the file, this is the error I am getting...
Parse error: parse error, unexpected '}' in /homepages/26/d95179444/ht docs/phpBB 2/beta/for um/include s/template .php(127) : eval()'d code on line 90
Please help...
I don't really know PHP well, and I have followed the instructions from the tutorial that PHPBB has offered.
Thank you,
Sylvia Carroll
This is what I have done...
<!--BEGIN switch_user_logged_in -->
<tr>
<td colspan="3" bgcolor="#E8DECC" >{L_LOGIN_LOGOUT}<span class="style10"><a href="{U_LOGIN_LOGOUT}" class="mainmenu">[{L_LOGOU
</tr>
<!--END switch_user_logged_in -->
...
and
<!--BEGIN switch_user_logged_out -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong>Login</strong>
</tr>
<tr>
<td><form name="form1" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td><span class="name"><strong>Usern
<input name="username" type="text" class="name" id="username" size="15">
</span> </td>
</tr>
<tr>
<td><span class="name"> <strong>Password: </strong>
<input name="Password" type="password" class="name" id="Password" size="15">
</span></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Go">
<input type="reset" name="Reset" value="Reset"></td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td class="maintext">Not a Memeber? <a href="{U_REGISTER}">{L_REG
</tr>
<tr>
<td> </td>
</tr>
</table>
<!-- END switch_user_logged_out -->
When I run the file, this is the error I am getting...
Parse error: parse error, unexpected '}' in /homepages/26/d95179444/ht
Please help...
I don't really know PHP well, and I have followed the instructions from the tutorial that PHPBB has offered.
Thank you,
Sylvia Carroll
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad to help. Been there MANY times myself. =D
W
W
ASKER