Obsah fóra
PravidláRegistrovaťPrihlásenie




Odpovedať na tému [ Príspevok: 1 ] 
AutorSpráva
Offline

Prevádzkovateľ fóra
Prevádzkovateľ fóra
Sidebar - Login & Quick Register Mod

Registrovaný: 01.05.05
Príspevky: 13348
Témy: 1496
Bydlisko: Bratislava
Príspevok NapísalOffline : 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">&nbsp; 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">&nbsp; 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" />
      &nbsp;&nbsp;&nbsp;{L_PASSWORD}:
      <input class="post" type="password" name="password" size="10" />
      &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}
      <input class="text" type="checkbox" name="autologin" />
      &nbsp;&nbsp;&nbsp;
      <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
Odpovedať na tému [ Príspevok: 1 ] 


Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy. User management register/login/logout/editprofile ...

v PHP, ASP

2

468

03.01.2010 10:39

Unlink Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Quick Reply MOD

v Redakčné systémy

1

1098

03.01.2007 1:14

lucas03 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Quick Edit Mod

v Redakčné systémy

0

459

14.10.2006 15:08

JanoF Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Orange & Black mod - mod by borec

v Modifikácie, návody a projekty

16

3136

07.08.2008 22:49

Orses Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Quick Reply Mod with Quote - problem so smajlikmi

v Redakčné systémy

7

532

07.02.2007 20:20

Bady Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Disabled Autologin ADMIN & MOD

v Redakčné systémy

24

1247

26.12.2006 23:09

Hannibal_King Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. I/P: ASUS TUF Gaming F15 FX506LH-HN004 (i5 10300H & GTX 1650 & 16GB RAM & 512 GB SSD)

v Informujem sa

4

977

27.09.2022 15:15

michalesku Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Symbian & android & iOS & WinMobile

[ Choď na stránku:Choď na stránku: 1, 2 ]

v Smartfóny a tablety

41

2851

15.12.2011 21:16

haffen Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Desktop Sidebar

v Operačné systémy Microsoft

3

482

21.08.2008 0:31

Qpkqkma Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. register

v Ostatné programy

6

309

12.11.2011 22:22

bradlo Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. SIDEBAR pre Xp

v Operačné systémy Microsoft

2

2318

13.05.2008 5:53

cleaner Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Sidebar Prestane pracovať

v Operačné systémy Microsoft

0

337

05.06.2012 17:28

danq Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Windows Sidebar nechce nabehnut

v Operačné systémy Microsoft

7

923

10.05.2009 8:23

Horalka Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. WP - sidebar-primary=nezobrazovat

v Redakčné systémy

4

350

12.01.2014 18:57

newbie99 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. 000webhost register globals

v Webhosting a servery

2

665

08.02.2010 14:50

Gryphon Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. register win XP

v Operačné systémy Microsoft

0

362

06.11.2007 6:14

manazer Zobrazenie posledných príspevkov


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

Skočiť na:  

Powered by phpBB Jarvis © 2005 - 2024 PCforum, webhosting by WebSupport, secured by GeoTrust, edited by JanoF
Ako väčšina webových stránok aj my používame cookies. Zotrvaním na webovej stránke súhlasíte, že ich môžeme používať.
Všeobecné podmienky, spracovanie osobných údajov a pravidlá fóra