|
 | | |
| Autor | Správa |
JanoF
 Správca fóra
 Založený: 01.05.2005 Príspevky: 8736 Bydlisko: Bratislava Vek: 27
 | Zaslal: So 14.10.06 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 |
|
_________________ Skrinka: Nexus Morpho & Enermax UCTB12P | Zdroj: Enermax EMG800AWT 800W | Základná doska: Asus Rampage III Gene | Procesor: Intel Core i7 990X Extreme Edition 3.46 GHz & Scythe Susanoo SCSO-1000 | Pamäť: Kingston HyperX XMP 24 GB DDR3 1600 MHz | Grafická karta: Asus GeForce GT 440 1 GB DDR3 & Thermalright HR-03 | Pevný disk: Intel SSD 510 Series 250 GB & Hitachi Deskstar 5K4000 4000 GB | Optická mechanika: Plextor PX-820SA | Čítačka kariet: Akasa AK-ICR-11 | Klávesnica: Logitech G19 | Myš: Logitech G9x & Razer Kabuto | Monitor: 24" LCD Eizo FlexScan S2431WE | Reproduktory: Logitech Z-2300 | Operačný systém: Microsoft Windows 7 & FreeBSD 9 | Záložný zdroj: APC Back-UPS ES 700 | Spotreba: Idle - 200W / Burn - 400W | Mobil: Nokia N9 64 GB | |
       |
 |
|
Nemôžete pridávať nové témy do tohto fóra. 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. Nemôžete hlasovať v tomto fóre.
|
| |