[ Príspevok: 1 ] 
AutorSpráva
Offline

Prevádzkovateľ fóra
Prevádzkovateľ fóra
Disable Board Message

Registrovaný: 01.05.05
Príspevky: 12424
Témy: 1447 | 1447
Bydlisko: Bratislava
Vek: 32
NapísalOffline : 13.10.2006 9:23 | Disable Board Message

Kód:
##############################################################
## MOD Title: Disable Board Message
## MOD Author: Sko22 < sko22@quellicheilpc.it > (Gianluca Scerni) http://www.quellicheilpc.it/
## MOD Updated: Horvath @ http://www.phpbbhacks.com
## MOD Description: Customize disable board message
## MOD Version: 1.0.1
##
## Installation Level: (Easy)
## Installation Time: 1 Minute
## Files To Edit: common.php
## admin/admin_board.php
## templates/subSilver/admin/board_config_body.tpl
## language/lang_english/lang_admin.php
## Included Files: (n/a)
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes: Tested on phpBB 2.0.13 and updated. For support please visit http://www.phpbbhacks.com
## This is not my mod and I simply updated it. All credit goes to Sko22 for this great MOD.
##############################################################
## MOD History:
##
##   2005-03-30 - Version 1.0.1
##
##   2004-02-07 - Version 1.0.0
##      - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ SQL ]------------------------------------------
#
#   If you have a different table prefix then change this command accordingly.
#   I have used the default table prefix!
#

INSERT INTO phpbb_config VALUES ('board_disable_msg', 'Rebuild Search in progress...');

#
#-----[ OPEN ]------------------------------------------
#
common.php

#
#-----[ FIND ]------------------------------------------
#

if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") && !$row['session_logged_in'] && !$row['user_level'] == ADMIN  )
{
   message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

   if ($board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") && !$row['session_logged_in'] && !$row['user_level'] == ADMIN ) {
      if ($board_config['board_disable_msg'] != "") {
         message_die(GENERAL_MESSAGE, $board_config['board_disable_msg'], 'Information');
      } else {
         message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
      }
   }
}

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php

#
#-----[ FIND ]------------------------------------------
#

   "L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'],

#
#-----[ AFTER, ADD ]------------------------------------------
#

   "L_DISABLE_BOARD_MSG" => $lang['Board_disable_msg'],
   "L_DISABLE_BOARD_MSG_EXPLAIN" => $lang['Board_disable_msg_explain'],

#
#-----[ FIND ]------------------------------------------
#

   "S_DISABLE_BOARD_NO" => $disable_board_no,

#
#-----[ AFTER, ADD ]------------------------------------------
#

   "DISABLE_BOARD_MSG" => $new['board_disable_msg'],

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl

#
#-----[ FIND ]------------------------------------------
#

   <tr>
      <td class="row1">{L_DISABLE_BOARD}<br /><span class="gensmall">{L_DISABLE_BOARD_EXPLAIN}</span></td>
      <td class="row2"><input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td>
   </tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#

   <tr>
      <td class="row1">{L_DISABLE_BOARD_MSG}<br /><span class="gensmall">{L_DISABLE_BOARD_MSG_EXPLAIN}</span></td>
      <td class="row2"><input class="post" type="text" maxlength="255" size="40" name="board_disable_msg" value="{DISABLE_BOARD_MSG}" /></td></td>
   </tr>

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#

$lang['Board_disable_explain'] = 'This will make the board unavailable to users. Administrators are able to access the Administration Panel while the board is disabled.';

#
#-----[ AFTER, ADD ]------------------------------------------
#

$lang['Board_disable_msg'] = 'Disable board message';
$lang['Board_disable_msg_explain'] = 'This text will be showed if "Disable board" is on "Yes".';

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


_________________
SilverStone SST CS01 | Corsair SF600 600W SFX | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 (16 Cores / 32 Threads) & Noctua NH-U9DX i4 | Kingston HyperX Savage 32 GB DDR4 2400 MHz | PNY NVIDIA Quadro K1200 DP 4 GB DDR5 | Intel SSD 750 1.2 TB NVMe & Intel SSD 730 240 GB SATA & Seagate BackUp Plus Portable 12 TB USB | 31.5" 4K LCD EIZO FlexScan EV3237 & 2 x 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech Wireless G700s | Harman Kardon Nova | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 - Intel Core i7 5600U, 8 GB DDR3 1600 MHz, Intel HD Graphics 5500, SanDisk SSD 512 GB, 12.5 FHD LED IPS, WWAN 3G 4G LTE, Microsoft Windows 7 Ultimate | Nintendo Classic Mini | BlackBerry Passport 96 GB
 [ Príspevok: 1 ] 


Disable Board Message



Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy.

hlaska SYSTEM MESSAGE

v Antivíry a antispywary

0

556

12.04.2008 22:35

popolvar

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

Scrolling Welcome Message

v Redakčné systémy

0

344

14.10.2006 15:06

JanoF

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

Runtime++library message error

v Notebooky a netbooky

2

381

18.05.2009 11:39

MORPHIUM

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

Message Box YES/NO

v JavaScript, VBScript, Ajax

3

268

10.11.2009 20:52

myxall

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

Disable Registration

v Redakčné systémy

1

851

14.10.2006 14:47

JanoF

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

Disable drive

v Operačné systémy Unix a Linux

0

130

25.04.2012 23:10

webkar

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

Private Message Encryption and Decryption

v Redakčné systémy

0

280

13.10.2006 9:26

JanoF

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

FSCK Disable boot password????

v Operačné systémy Unix a Linux

1

257

04.11.2009 10:37

jararak

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

JavaScript: mini problem s disable

v JavaScript, VBScript, Ajax

2

340

10.03.2009 10:48

max-m

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

disable ALT text a image panel

v Ostatné

3

387

27.01.2009 16:05

Ďuri

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

core 2 duo - jedno jadro disable

v Intel - Integrated Electronics

12

1127

11.12.2007 17:48

Zemla

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

tlačidlo ovplivňujúce atribút disable a typ tlačidla

v JavaScript, VBScript, Ajax

4

239

01.11.2010 12:05

toma-mato

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

AM4 Board

v Základné dosky

11

356

22.05.2017 14:45

cinematik

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

USB on board

v Pevné disky a radiče

5

210

19.09.2010 16:07

swaer

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

odideny cpu alebo board?

v AMD čipové sady

3

347

28.08.2010 1:29

Romi

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

Intel Desktop Board D845PEBT2

v Základné dosky

4

878

21.01.2006 22:35

Intelman



© 2005 - 2017 PCforum, edited by JanoF