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
peanutomaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

whardemanCommented:
Anywhere you have this:

<!--BEGIN switch_user_logged_in -->

...there must be at least one space between the comment tag and 'BEGIN', like this:

<!-- BEGIN switch_user_logged_in -->


The same goes for your 'END' tags. Otherwise, phpBB can't recognize the BEGIN and END commands, which breaks the switch.

Hope this helps. =)

W
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
peanutomaAuthor Commented:
That helps tremendously... I feel like a bonehead! Thank you so much!
0
whardemanCommented:
Glad to help. Been there MANY times myself. =D

W
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.