Kod: Tümünü seç
#################################################################
## Mod Title: Registration Form On Main Index
## Mod Version: 1.0.0
## Author: Brandons < Webmaster@DcTalkFans.com > - www.dctalkfans.com
## Description: This Mod Allows You To Put A Registration form on the main index.php of your boards. OR it also allows you to put the registration form on any non-phpbb site of yours!
##
## Installation Level: easy
## Installation Time: 2 minutes
## Files To Edit: /templates/subsilver/index_body.tpl
## Included Files: (NA)
#################################################################
##
## Author Note:
If Your putting this on a non-phpbb site then all you need to do to make this work is change the <form action ""> Path To Your Path To Your Phpbb2 Root Path
This Mod Has A Part of The Gender Mod In It. If You Don't Have The Gender Mod Then Simply Take Out That Part The <input> for it and the words "Your Gender". After That It'll Work Fine. You Can Replace That Empty Spot With Anything You'd Like.
Note That We Only Have The Required Fields. To Many Fields Can Deter People From Registering. That Is Why. So Somewhere You Must Tell Your Users They Can Edit Everything Else By Going To "Edit Profile"
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ OPEN /templates/subsilver/index_body.tpl ]------------------------------------------
#
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"><tr><td class="catHead" height="28"><a name="login"></a><
span class="cattitle">{L_LOGIN_LOGOUT}</span></td></tr><tr>
<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:<input class="post" type="text" name="username" size="10" /> {L_PASSWORD}:
<input class="post" type="password" name="password" size="10" /> {L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" /> <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></span></td></tr></table></form>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<form method="post" action="profile.php">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr><td class="catHead" height="28" colspan="4">
<a href="http://t4cministries.com/php/boards/profile.php?mode=register&agreed=TRUE" class="nav"><span class="nav"><font color="006699">Register | Its Free</span></a>
</td></tr>
<tr colspan="4">
<td class="row1" width="25%"><span class="genmed">Pick A Username You Want: *</span></td><td class="row2" width=25%><input type="text" class="post" style="width:150px" name="username" size="25" maxlength="20" value="" /></td>
<td class="row1" width=25%><span class="genmed">Your Email Address: *</span></td> <td class="row2"><input type="text" class="post" style="width:150px" name="email" size="25" maxlength="255" value="" /></td>
</TR><TR colspan="4">
<td class="row1" width=25%><span class="genmed">Choose A Password: *</span><br /><span class="gensmall"></span></td><td class="row2"><input type="password" class="post" style="width: 150px" name="new_password" size="25" maxlength="100" value="" /></td>
<td class="row1" width=25%><span class="genmed">Confirm Your Password: * </span>
<br /><span class="gensmall"></span></td><td class="row2" width=25%> <input type="password" class="post" style="width: 150px" name="password_confirm" size="25" maxlength="100" value="" /></td>
</tr><tr colspan="4">
<td class="row1"><span class="genmed" width=25%>Your Gender: *</span></td><td class="row2" width=25% div align=left><input type="hidden" name="gender" value="0" checked="checked"/><div align=left><span class="gen"></span><input type="radio" name="gender" value="1" /><span class="genmed">Male</span> <input type="radio" name="gender" value="2" /><span class="genmed">Female</span></td>
<input type="hidden" name="viewemail" value="0" checked="checked" />
<input type="hidden" name="hideonline" value="0" checked="checked" />
<input type="hidden" name="notifyreply" value="0" checked="checked" />
<input type="hidden" name="notifypm" value="1" checked="checked" />
<input type="hidden" name="popup_pm" value="1" checked="checked" />
<input type="hidden" name="attachsig" value="1" checked="checked" />
<input type="hidden" name="allowbbcode" value="1" checked="checked" />
<input type="hidden" name="allowhtml" value="0" checked="checked" />
<input type="hidden" name="allowsmilies" value="1" checked="checked" />
<input type="hidden" name="dateformat" value="D M d, Y g:i a" maxlength="14" class="post" />
<td class="row1" width=25%><span class="genmed">Now Click Submit: *</span></td><td class="row2" colspan="1" align="left" height="28" width=25%><input type="hidden" name="mode" value="register" />
<input type="hidden" name="agreed" value="true" />
<input type="hidden" name="coppa" value="0" />
<input type="submit" name="submit" value="Submit" class="liteoption" />
<input type="reset" value="Reset" name="reset" class="liteoption" /></td>
</tr></form>
</table>
#
#-----[ SAVE AND CLOSE ALL FILES ]------------------------------------------
#
#EOF - Enjoy