Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

unknown tag: login function on homepage...

Quote Reply
unknown tag: login function on homepage...
hi,

just a quick question. I have the login function on the homepage. (the form of login.html). Why does it give me a unknown tag "username"?

thanks,
ron

Crazy
Quote Reply
Re: [rsahertian] unknown tag: login function on homepage... In reply to
Can you paste the HTML you are using? Most likely because <%username%> (or <%Username%>, as it most likely is), doesn't exist.

May want to do a <%GT::Template::dump%> to see which tags are available to you.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] unknown tag: login function on homepage... In reply to
Hi Andy,

Are you the Michael Schumacher of GT????Cool

Anyway here is the code. I made a include_login.html
with this.
I CAN login, but the initial value is (unknown tag...etc.)

*******************************
<form action="<%db_cgi_url%>/user.cgi" method="POST">
<input type=hidden name=login value=1>
<table>
<tr><td><%body_font%>Gebruikersnaam:</font></td><td>
<input name="Username" value="<%Username%>" class="button" size="20"></td></tr>
<tr><td><%body_font%>Paswoord:</font></td><td>
<input type=password name=Password class="button" size="20"></td></tr>
<tr><td><br><br></td><td><input type=submit value="Login" class="button">
</td>
</tr>
</table>
Account aanvragen? <a href="<%db_cgi_url%>/user.cgi?signup_form=1"> <b><u>Hier</u></b> kun je je registreren!</a></font><br>
<%body_font%>Paswoord vergeten? Wij kunnen jouw paswoord <a href="<%db_cgi_url%>/user.cgi?email_pass=1">vanaf <b><u>hier</u></b> naar je emailen!</a>
</font>
</form>
Quote Reply
Re: [rsahertian] unknown tag: login function on homepage... In reply to
Just change;

value="<%Username%>"

to...

<%if Username%>value="<%Username%>"<%endif%>

Quote:
Are you the Michael Schumacher of GT????

LOL... nope! I just like to have something to take my mind off work every now and then, so I check back here and try to help out others who are having problems :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] unknown tag: login function on homepage... In reply to
works Andy...

thanks for the xxx time...

bye
ron
Smile