veedee |
02-05-2002 03:15 PM |
ok here goes...
In global.php add
PHP Code:
if ($bbuserinfo['userid']==0) {
eval("\$headexpressreg = \"".gettemplate('head_expressreg')."\";");
}
right after
PHP Code:
$newpmmsg=1;
eval("\$headnewpm = \"".gettemplate('head_newpm')."\";");
}
now create a new template, head_expressreg and put this in it:
Code:
<script language="javascript"><!--
window.open('http://www.yoursite.com/forum/file.php');
// --></script>
Now go to your style set area. Find the text area where you enter content to go in the <head> of the page. Enter in $headexpressreg under $headnewpm
This will pop file.php up. Now to make file.php
Try this:
Code:
<html>
<title>Welcome to visordown.com - register today</title>
<head>
<STYLE type=text/css>
.nf { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt }
.sf { font-family: verdana,arial,helvetica,sans-serif; font-size: 8pt; color: #ffffff; }
</style>
</head>
<body bgcolor="#000000">
<!-- content table -->
<font class="sf">Registration is required if you want to post messages on visordown.com</font>
<table bgcolor="#000000" width="100%" cellpadding="10" cellspacing="0" border="0"><tr><td>
<form action="http://www.visordown.com/forums/register.php" method="post">
<input type="hidden" name="s" value="">
<table border="0" cellspacing="1" cellpadding="4" width="100%" bgcolor="#555576">
<!-- *** -->
<tr>
<td bgcolor="#0000ee" colspan="2"><font face="verdana" size="2" color="#ffffff" class="thtcolor"><b>Registration</b></font>
<font face="verdana" size="1" color="#ffffff" class="thtcolor">(*) fields are required. Please note that passwords are case sensitive.</font></td>
</tr>
<!-- *** -->
<tr>
<td bgcolor="#AAAAE6"><font class="nf"><b>*User Name:</b></font></td>
<td bgcolor="#AAAAE6"><font class="nf"><input type="text" name="username" size="25" maxlength="15"></font></td>
</tr>
<tr>
<td bgcolor="#C3C3EB"><font class="nf"><b>*Password:</b></font></td>
<td bgcolor="#C3C3EB"><font class="nf"><input type="password" name="password" size="25" maxlength="15"></font></td>
</tr>
<tr>
<td bgcolor="#C3C3EB"><font class="nf"><b>*Enter Password Again:</b></font></td>
<td bgcolor="#C3C3EB"><input type="password" name="passwordconfirm" size="25" maxlength="15"></td>
</tr>
<tr>
<td bgcolor="#AAAAE6"><font class="nf"><b>*Email:</b></font><br>
<font color="#000000" face="verdana" size="1">Please enter a <b>valid</b> email address.</font></td>
<td bgcolor="#AAAAE6"><font class="nf"><input type="text" name="email" size="25" maxlength="50"></font></td>
</tr>
<tr>
<td bgcolor="#AAAAE6"><font class="nf"><b>*Enter Email Again:</b></font></td>
<td bgcolor="#AAAAE6"><font class="nf"><input type="text" name="emailconfirm" size="25" maxlength="50"></font></td>
</tr>
<tr><td bgcolor="#113274">
</td><td bgcolor="#113274"><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.visordown.com/forums/thanks.html">
<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>
<font class="sf">By pressing the registration button above you declare that you have read and agree with the <a href="/" target="blank">Community Guidelines</a></font>
<!-- End content area table -->
</td></tr></table>
</body>
</html>
Obviously modify the colours and the paths to your site. It should work a treat. Just visit my site now www.visordown.com/forums as a guest and it should pop up. It isn't perfect, however it works !
Does this help?
Ben
|