11
Bazus
Re: Login form in header part
  • 2003/11/2 4:00

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


I have tryed everything posible with that code and not working:

this is what I'm using:

<{if {$xoops_isuser}}>
<form action="<{$xoops_url}>/user.php" method="post">&nbsp;<b>user:</b>
<input type="text" id="topfield" name="uname" value="<{$block.unamevalue}>" /> &nbsp; <b>pass:</b>
<input type="password" id="topfield" name="pass" />
<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />
<input type="hidden" name="op" value="login" />
<input type="submit" id="topbutton" value="login" />
&nbsp; <a href="<{$xoops_url}>/user.php#lost">lost pass?</a> &nbsp; <a href="<{$xoops_url}>/register.php">register</a>
</form><{/if}>


and page comes blank with error:
Parse error: parse error on line 139

line 139 is:
<{if {$xoops_isuser}}>

12
Bazus
Re: Login form in header part
  • 2003/11/2 4:13

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


I have changed that line 139 to all combinations possible and still get same error
<{if $xoops_isuser}>

then

<{if !$xoops_isuser}>

and not improvement.

13
wtravel
Re: Login form in header part

Which error do you receive when you use the exact code as stated in the original solution?

Quote:

<td valign="top"><{if !$xoops_isuser}>
<form action="<{$xoops_url}>/user.php" method="post">&nbsp;<b>user:</b> <input type="text" id="topfield" name="uname" value="<{$block.unamevalue}>" /> &nbsp; <b>pass:</b> <input type="password" id="topfield" name="pass" /><input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" /><input type="hidden" name="op" value="login" /> <input type="submit" id="topbutton" value="login" />
&nbsp; <a href="<{$xoops_url}>/user.php#lost">lost pass?</a> &nbsp; <a href="<{$xoops_url}>/register.php">register</a>
</form><{/if}>
</td>


Martijn

Login

Who's Online

222 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 222


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits