Quote:
Originally posted by Logician
I think I didnt get it right? Can you please post the webtemplate (or the relevant part) that you are talking about. And clarification on what exactly you are trying to achieve on this webtemplate can also help.. :knockedout:
|
*hehe* Sure - here's what I'm doing. On the index page of the site, I want it to welcome back each member by name - or if they aren't logged in or registered - a login box would be provided.
Here's the code I'm working with - it may be off, but it's what I got:
(quoted in php because.....I thought it'd be better that way?)
PHP Code:
<!-- Left Column Body Start -->
<td valign="top" width="200"><table bgcolor="#F6EDCA" cellpadding=5 cellspacing="1"><tr width=100% height=100%><td background="http://www.thesistersthree.com/site/headerbg.jpg" align=center>
<font face=verdana color="#FBF5E1" size=1><b>Welcome Back $user_username</b></font></td></tr>
<tr><td bgcolor=#330000">
[[($bbusergroupid==1)]]
<form action="member.php" method="post">
<tr>
<td nowrap><smallfont><b>Not cookied?</b><br>Login with username and password:</smallfont></td>
</tr><tr>
<td nowrap><input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="login">
<input type="text" class="bginput" name="username" size="7">
<input type="password" class="bginput" name="password" size="7">
<input type="submit" class="bginput" value="Login!"></td>
</tr>
</form>
[[/($bbusergroupid==1)]]</td></tr>
<tr>
<td bgcolor="#330000"><font face=verdana color="#FBF5E1" size=1>
<a href="http://www.thesistersthree.com/forums/usercp.php?"><center><b>My Control Panel</b></center></a><br>