LivingDreams |
Jul 14, 2006 05:29 PM |
VB forum PHP help
Ok so I made this layout for my forum, the other admin coded it, but were stuck. I designed the layout for the login/logout button and text field will be on the banner.
http://img291.imageshack.us/my.php?image=12hh2.jpg
So were trying to make it where the login field will be up there, and when you login that the message thats circled will show up there.
We don't know how to do that. Any one know how to do it?
I checked the header template but I can't seem to figure out how to do it unless it's another template. Heres the code in the header template:
Code:
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->
<table style="border: 1px solid #262626;" width="740px" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td align="top" background="http://www.gamingforce.com/forums/images/newskin/bg.jpg">
<!-- logo -->
<a name="top"></a>
<table border="0" width="739px" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center"> <img src="$stylevar[titleimage]" alt="$vboptions[bbtitle]" width="741" height="247" border="0" usemap="#Map" /></td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
<map name="Map">
<area shape="rect" coords="162,217,195,232" href="/index.php">
<area shape="rect" coords="197,217,242,232" href="register.php">
<area shape="rect" coords="245,217,306,232" href="/usercp.php">
<area shape="rect" coords="309,217,368,232" href="/memberlist.php">
<area shape="rect" coords="371,217,408,232" href="/arcade.php">
<area shape="rect" coords="410,217,464,232" href="/search.php?do=getnew">
<area shape="rect" coords="465,217,505,232" href="/search.php">
<area shape="rect" coords="509,217,536,232" href="/index.php#shop">
<area shape="rect" coords="539,217,571,232" href="/dchub.php">
</map>
I think this is the login script:
Code:
<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" accesskey="p" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
</td>
</if>
|