Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Login from Mainpage

Quote Reply
Login from Mainpage
Hello

I want to make possible that user can login from the category_list.html

I try this code.
Code:
<%if current_user_id%>
Welkome
<%else%>
<%-- einloggen Start --%>
<table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="<%light_beige%>" style="border-bottom:1px solid <%dark_beige%>">
<tr bgcolor="<%dark_green%>">
</tr>
<tr>
<td width="3%">
</td>
<td> <form name=login method="POST" action="gforum.cgi">
<input type="hidden" name="url" value="<%url%>">
<%hidden_form%>
<font face="Verdana,Arial,Helvetica" size="1" color="#8A0E1F">
Benutzername: <input type="text" class="button" size="30" tabindex=1 name="login_username"<%if user_username%> value="<%user_username%>"<%endif%>>
Passwort: <input class="button" type="password" size="30" tabindex=2 name="login_password">
<input class="submit" type="submit" tabindex=3 value="Anmeldung">
</font>
</td>
</tr>
</form>
</table>
<br>
<%endif%>
<%-- einloggen Ende --%>
Its the same code like in login.html
But it dosent work.
What can i do?

mfg hoefti
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] Login from Mainpage In reply to
try this:

Code:
<input type="hidden" name="url" value="<%if url%><%url%><%else%><%cgi_root_url%>/gforum.cgi?login_attempt=1&<%endif%>" />

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Login from Mainpage In reply to
Hello Ivan

Many thanks for your Help

Its works great.

mfg hoefti
linktobuy Web Directory
Ratgeber Recht