Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [rocco] GLinks 3RC - Login/Logout Toggle Issue: Edit Log

Here is the list of edits for this post
Re: [rocco] GLinks 3RC - Login/Logout Toggle Issue
This is what i have done (no js in line with GT's primary objective) though it still does not get that toggle issue right (static pages), but hitting login for a logged in user just displays that what's needed:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<title><%site_title%>: User Login</title>
<%include include_common_head.html%>
<%ifnot user.Username%>
<%~set secondarynav = "featureset_nav.html"%>
<body id="login">
<%include include_accessibility.html%>
<div id="wrapper">
<%include include_header.html%>
<%include include_contentheader.html%>
<div id="ocwrapper">
<div id="icwrapper" class="clear">
<%include include_leftsidebar.html%>
<div id="contentwrapper" class="shadowleft">
<div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
<div class="shadowright">
<div id="content">

<div class="crumb"><%Links::Utils::format_title($main_title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div>
<h2><%ifnot user.Username%>User Login<%else%>Already Logged In<%endif%></h2>
<%ifnot user.Username%>
<%if url%><p>You must first login before you can access that.</p><%endif%>
<p>Login to <%site_title%>:</p>

<form action="<%config.db_cgi_url%>/user.cgi" method="post">
<input type="hidden" name="login" value="1" />
<%if url%><input type="hidden" name="url" value="<%url%>" /><%endif%>

<div class="row required clear">
<label for="Username" class="name">Username:</label>
<div class="value">
<input type="text" id="Username" name="Username" value="<%if Username%><%Username%><%endif%>" class="text" />
<div class="row required clear">
<label for="Password" class="name">Password:</label>
<div class="value">
<input type="password" id="Password" name="Password" class="password" />
<div class="formsubmit">
<input type="submit" value="Login" class="submit" />

If you don't have an account, please <a href="<%config.db_cgi_url%>/user.cgi?signup_form=1">register</a>.<br />
If you've forgotten your password, we can <a href="<%config.db_cgi_url%>/user.cgi?email_pass=1">e-mail it to you</a>.
<h3>You Are Already Logged In So You Cannot Login Again. To Login You Have To Log Out First<br /><br /></h3>
<br /><br />
<div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
<%include include_rightsidebar.html%>
<%include include_contentfooter.html%>
<%include include_footer.html%>

Mail Me If Contacting Privately Is That Necessary.

Last edited by:

HyperTherm: Apr 2, 2005, 2:35 AM

Edit Log: