Link to home
Start Free TrialLog in
Avatar of peanutoma
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_LOGOUT}]</a></span></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>Username: </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_REGISTER} here! </a></td>
          </tr>
          <tr>
            <td>&nbsp;</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/htdocs/phpBB2/beta/forum/includes/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
ASKER CERTIFIED SOLUTION
Avatar of whardeman
whardeman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of peanutoma
peanutoma

ASKER

That helps tremendously... I feel like a bonehead! Thank you so much!
Glad to help. Been there MANY times myself. =D

W