Quote:
Originally posted by akaler
Maybe there should be a place to login on your form.
|
Ok I added a login box at the bottom - I had alot of members complaining about it so now you can either login or register. Here is the updated vbpopup template:
PHP Code:
<script language="JavaScript" src="vbpopup.js"></script>
<div id="vbplocation">
<table border="5" bordercolor="#0198C2" width="450" height="300" bgcolor="#0198C2" 5class="vbpmainframe">
<tr>
<td>
<table width="100%" height="100%" bgcolor="#21C4EA" align="center" class="vbpcontentframe">
<tr>
<td align="center">
<font size="4">Welcome To The Hobby Forum!</font>
</td>
</tr>
<tr>
<td align="center"><font size="2">
If this is your first time here then please take the time to register. Registration is <b>FREE</b> and afterwards you can take advantage of all the great features this site has to offer! If you have any questions please refer to the <a href="http://www.thehobbyforum.com/modules.php?op=modload&name=FAQ&file=index&s=">FAQ</a> section.</font>
</td>
</tr>
<tr><td><HR WIDTH="90%" ALIGN="center" color="#0198C2"></td></tr>
<tr>
<td align="center"><font size="1.5" color="purple">
REGISTER NOW FOR YOUR CHANCE TO WIN A MIG-15 DUCTED FAN JET KIT!
</font>
</td>
</tr>
<tr><td><HR WIDTH="90%" ALIGN="center" color="#0198C2"></td></tr>
<tr><td>
<form action="http://www.thehobbyforum.com/forum/register.php" method="post">
<input type="hidden" name="s" value="">
<table border="0" cellspacing="1" cellpadding="4" width="100%" bgcolor="#21C4EA">
<!-- *** -->
<div align="center">
<tr>
<td bgcolor="#21C4EA" colspan="2"><font face="verdana" size="2" color="000000"><b><center>Registration is FREE!</center></b></font>
</td>
</tr>
</div>
<!-- *** -->
<tr>
<td bgcolor="#21C4EA" align="center"><font class="nf"><b>User Name:</b></font></td>
<td bgcolor="#21C4EA" align="center"><font class="nf"><input type="text" name="username" size="25" maxlength="15"></font></td>
</tr>
<tr>
<td bgcolor="#21C4EA" align="center"><font class="nf"><b>Password:</b></font></td>
<td bgcolor="#21C4EA" align="center"><font class="nf"><input type="password" name="password" size="25" maxlength="15"></font></td>
</tr>
<tr>
<td bgcolor="#21C4EA" align="center"><font class="nf"><b>Enter Password Again:</b></font></td>
<td bgcolor="#21C4EA" align="center"><input type="password" name="passwordconfirm" size="25" maxlength="15"></td>
</tr>
<tr>
<td bgcolor="#21C4EA" align="center"><font class="nf"><b>Email:</b></font>
<td bgcolor="#21C4EA" align="center"><font class="nf"><input type="text" name="email" size="25" maxlength="50"></font></td>
</tr>
<tr>
<td bgcolor="#21C4EA" align="center"><font class="nf"><b>Enter Email Again:</b></font></td>
<td bgcolor="#21C4EA" align="center"><font class="nf"><input type="text" name="emailconfirm" size="25" maxlength="50"></font></td>
</tr>
<tr><td bgcolor="#21C4EA" align="center">
</td><td bgcolor="#21C4EA" align="center"><input type="hidden" name="allowmail" value="yes">
<input type="hidden" name="invisible" value="no">
<input type="hidden" name="showemail" value="yes">
<input type="hidden" name="cookieuser" value="yes">
<input type="hidden" name="nosessionhash" value="yes">
<input type="hidden" name="emailonpm" value="yes">
<input type="hidden" name="prunedays" value="-1">
<input type="hidden" name="umaxposts" value="-1">
<input type="hidden" name="startofweek" value="1">
<input type="hidden" name="timezoneoffset" value="-5">
<input type="hidden" name="emailnotification" value="yes">
<input type="hidden" name="showsignatures" value="yes">
<input type="hidden" name="showavatars" value="yes">
<input type="hidden" name="showimages" value="yes">
<input type="hidden" name="vbcode" value="yes">
<input type="hidden" name="pmpopup" value="yes">
<input type="hidden" name="receivepm" value="yes">
<input type="hidden" name="url" value="http://www.thehobbyforum.com/">
<input type="hidden" name="action" value="addmember">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Reset" value="Reset"></td>
</tr></font>
</td></tr></table>
</form>
<form action="member.php" method="post">
<div align="center"><b><smallfont>Members Login Here:</smallfont></b></div></td></tr><tr align="center">
<td nowrap><input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="login">
<b><smallfont>User: </b></smallfont><input type="text" class="bginput" name="username" size="7">
<b><smallfont>Pass: </b></smallfont><input type="password" class="bginput" name="password" size="7">
<input type="submit" class="bginput" value="Go"></td>
</tr>
</form>
<!-- End content area table -->
</td></tr>
</table>
</td>
</tr>
</table>
</div>