We’ve edited the site a little bit, and we we’re able to get images in the search bar, for Login and Register, but I was wondering how to making it recognize that your logged in and change the images to profile and logout?
I’m looking at the login form code, webLoginEnter(document.loginfrm.cmdweblogin), and i’m assuming that this has something to do with recognizing that the user is logged in, correct? Could I just from this code, take out things that have to do with the form, and have it recognize that the user is logged in or not? Or might that not be possible?
<!-- #declare:separator <hr> -->
<!-- login form section-->
<form method="post" id="loginfrm" action="[+action+]">
<fieldset>
<input type="hidden" value="[+rememberme+]" name="rememberme" />
<p><label for="username">User: <input type="text" name="username" id="username" tabindex="1" onkeypress="return webLoginEnter(document.loginfrm.password);" value="[+username+]" /></label><!-- PASSWORD --><label for="password">Password: <input type="password" name="password" id="password" tabindex="2" onkeypress="return webLoginEnter(document.loginfrm.cmdweblogin);" value="[+password+]" /></label><label for="checkbox_1" class="checkbox">Remember me</label><input type="checkbox" id="checkbox_1" name="checkbox_1" tabindex="3" size="1" value="" [+checkbox+] onclick="webLoginCheckRemember()" /><input type="submit" value="[+logintext+]" name="cmdweblogin" class="button" /><a href="#" onclick="webLoginShowForm(2);return false;" id="forgotpsswd">Forget Your Password?</a><a href="[~17~]">New User? Click Here!</a></p>
</fieldset>
</form>
<hr>
<!-- log out hyperlink section -->
<p><a href="#">My Info</a></p>
<p><a href="[+action+]" class="button">Logout</a></p>
<hr>
<!-- Password reminder form section -->
<form id="loginreminder" method="post" action="[+action+]">
<fieldset>
<input type="hidden" name="txtpwdrem" value="0" />
<p><label for="txtwebemail">Enter the email address: <input type="text" name="txtwebemail" id="txtwebemail" size="24" /></label></p>
<p><label>To return to the login form, press the cancel button.</label></p>
<input type="submit" value="Submit" name="cmdweblogin" class="button" /> <input type="reset" value="Cancel" name="cmdcancel" onclick="webLoginShowForm(1);" class="button" style="clear:none;display:inline" />
</fieldset>
</form>