| | |
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
Autor | Správa |
---|
Registrovaný: 01.05.05 Príspevky: 13348 Témy: 1496 Bydlisko: Bratislava | Napísal JanoF: 14.10.2006 15:07 | |
|
Kód: ################################################################# ## Mod Title: Sidebar - Login & Quick Register Mod ## ## Mod Version: 1.0.0 ## ## Author: McPhilly <Marc@PembsDirect.co.uk> - http://www.floppycd.co.uk ## ## Description: This will add a sidebar which contains a quick registration form, ## and a login form to your forum index. The sidebar only display's ## when the user is not logged in. ## Only tested with phpBB 2.0.3 ## ## Installation Level: Very Easy ## Installation Time: 5 Minutes ## ## Files To Edit: 1 ## templates/template_XX/index_body.tpl ## ## ################################################################# ## ## Author Note: ## ## This MOD is Copyright © Marc Philpott, 2002 ## ## My first official MOD, plenty more to come hopefully ! ## ## (Any changes to this MOD must retain my Copyright Notice) ## ################################################################# ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD #################################################################
# #-----[ OPEN ]------------------------------------------ # index_body.tpl
# #-----[ FIND ]------------------------------------------ # <table width="100%" cellspacing="0" cellpadding="2" border="0" align="center"> <tr> <td align="left" valign="bottom"><span class="gensmall"> <!-- BEGIN switch_user_logged_in -->
# #-----[ BEFORE, ADD ]------------------------------------ #
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0"> <tr valign="top"> <td>
# #-----[ FIND ]------------------------------------------ #
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td> </tr> </table>
# #-----[ AFTER, ADD ]------------------------------------ #
</td> <!-- BEGIN switch_user_logged_out --> <td width="150"> <form method="post" action="profile.php"> <br><br> <table width="100%" border="0" cellspacing="1" cellpadding="3" class="forumline"> <tr> <td height="28" class="catHead"> Quick Register</td> </tr> <tr> <td><div align="center" class="gensmall">Username :<br> <input type="text" class="post" name="username" size="10" value="" /> <br> e-mail address :<br> <input type="text" class="post" name="email" size="10" value="" /> <br> Password :<br> <input type="password" class="post" name="new_password" size="10" value="" /> <br> Password Confirm :<br> <input type="password" class="post" name="password_confirm" size="10" value="" /> <br> <input type="hidden" name="viewemail" value="1" /> <input type="hidden" name="viewemail" value="0" checked="checked" /> <input type="hidden" name="hideonline" value="1" /> <input type="hidden" name="hideonline" value="0" checked="checked" /> <input type="hidden" name="notifyreply" value="1" /> <input type="hidden" name="notifyreply" value="0" checked="checked" /> <input type="hidden" name="notifypm" value="1" checked="checked" /> <input type="hidden" name="notifypm" value="0" /> <input type="hidden" name="popup_pm" value="1" checked="checked" /> <input type="hidden" name="popup_pm" value="0" /> <input type="hidden" name="attachsig" value="1" checked="checked" /> <input type="hidden" name="attachsig" value="0" /> <input type="hidden" name="allowbbcode" value="1" checked="checked" /> <input type="hidden" name="allowbbcode" value="0" /> <input type="hidden" name="allowhtml" value="1" /> <input type="hidden" name="allowhtml" value="0" checked="checked" /> <input type="hidden" name="allowsmilies" value="1" checked="checked" /> <input type="hidden" name="allowsmilies" value="0" /> <input type="hidden" name="dateformat" value="D M d, Y g:i a" maxlength="14" class="post" /> <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" /> </div></td> </tr> </table> </form> <form method="post" action="{S_LOGIN_ACTION}"> <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <td height="25" class="catHead"> Login</td> </tr> <tr> <td class="row1" align="center" valign="middle"><span class="gensmall">{L_USERNAME}:<br> <input class="post" type="text" name="username" size="10" /> <br> {L_PASSWORD}:<br> <input class="post" type="password" name="password" size="10" /> <br> Auto Login : <input class="text" type="checkbox" name="autologin" /> <br> <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /> </span> </td> </tr> </table> </form> </td> <!-- END switch_user_logged_out --> </tr> </table>
# # If you now want to remove the Login box on the bottom of your forum : # # #-----[ FIND, REMOVE ]------------------------------------------ #
<!-- 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> <!-- END switch_user_logged_out -->
# #-----[ SAVE/CLOSE ALL FILES ]-------------------------- # #EoM
_________________ Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server |
|
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|