Hey,
i'm working on a website for a clan
and i was asking if you guys knew how to make a login box on the top
login box when not logged in and when logged in members info there
like here on my design
if some one knows how to do it ??
it would be great
Greetz pinks
The code for the login box is like this:
<form action="member.php" method="post">
<input type="hidden" name="action" value="do_login" />
<span class="smalltext"><strong>Quick Login:</strong></span>
<input type="text" class="textbox" name="username" title="Username" value="Username" onfocus="if(this.value == 'Username') { this.value=''; }" onblur="if(this.value=='') { this.value='Username'; }" />
<input type="password" class="textbox" name="password" title="Password" value="Password" onfocus="if(this.value == 'Password') { this.value=''; }" onblur="if(this.value=='') { this.value='Password'; }" />
<input type="submit" class="button" value="Go" />
</form>
You can put this code in the template where you want the login box to be shown. I suggest header_welcomeblock_guest as that is only shown in the header when the user is not logged in. You can modify the code to suit your layout.
is it possible to add a avatar in the box to ??
i dunno what to code for that is