[ Príspevok: 1 ] 
AutorSpráva
Offline

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

Registrovaný: 01.05.05
Príspevky: 13415
Témy: 1496 | 1496
Bydlisko: Bratislava
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


_________________
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 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 11 Enterprise | APC Back-UPS BE-850 VA | Lenovo ThinkPad X250 & Microsoft Windows 11 Professional | iPhone 15 Pro 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 24.04.1 LTS
 [ 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.

Disable Registration

v Redakčné systémy

1

1183

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

326

25.04.2012 23:10

webkar

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

hlaska SYSTEM MESSAGE

v Antivíry a antispywary

0

911

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

568

14.10.2006 15:06

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

434

04.11.2009 10:37

jararak

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

Runtime++library message error

v Notebooky a netbooky

2

684

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

490

10.11.2009 20:52

myxall

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

JavaScript: mini problem s disable

v JavaScript, VBScript, Ajax

2

531

10.03.2009 10:48

max-m

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

Private Message Encryption and Decryption

v Redakčné systémy

0

559

13.10.2006 9:26

JanoF

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

disable ALT text a image panel

v Ostatné

3

577

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

1471

11.12.2007 17:48

Zemla

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

Laravel / NextJS / message: 'CSRF token mismatch.

v PHP, ASP

0

492

30.11.2021 2:45

Hi332

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

Python - Cryptographic message syntax CMS + pecat

v Perl, Python, Ruby, CGI

2

555

29.06.2021 14:49

arno

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

409

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

949

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

439

19.09.2010 16:07

swaer



© 2005 - 2024 PCforum, edited by JanoF