Verfasst: 31.07.2006 10:36
Weiß niemand was?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
##############################################################
## MOD Title: Infobar Mod Addon
## MOD Author: Pingu625 < pb_pascal@web.de > (Pascal Berrang) http://www.coolpas.net
## MOD Description: This Addon permits the administrator to switch on the
## Infobarmod in the header and to switch off.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5 min
## Files To Edit: 6
## admin/admin_board.php
## includes/page_header.php
## language/lang_english/lang_admin.php
## language/lang_german/lang_admin.php
## templates/.../admin/board_config_body.tpl
## templates/.../overall_header.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ 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 MODs not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
##
## ACHTUNG:
## Bitte ändere gegebenenfalls das Tabellenprefix phpbb_ zu deinem eigenen!
## Attention:
## Change, if you need it, the prefix phpbb_ to your own, please!
##
##############################################################
## MOD History:
##
## 2006-08-04 - Version 1.0.0
## - Releasedate
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
# Please read the Author Notes, before SQL!
INSERT INTO phpbb_config (config_name, config_value) VALUES ('infobar', '1');
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]------------------------------------------
#
$prune_yes = ( $new['prune_enable'] ) ? "checked=\"checked\"" : "";
$prune_no = ( !$new['prune_enable'] ) ? "checked=\"checked\"" : "";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$infobar_yes = ( $new['infobar'] ) ? "checked=\"checked\"" : "";
$infobar_no = ( !$new['infobar'] ) ? "checked=\"checked\"" : "";
#
#-----[ FIND ]------------------------------------------
#
"L_ENABLE_GZIP" => $lang['Enable_gzip'],
"L_ENABLE_PRUNE" => $lang['Enable_prune'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"L_INFOBAR" => $lang['Infobar'],
#
#-----[ FIND ]------------------------------------------
#
"PRUNE_YES" => $prune_yes,
"PRUNE_NO" => $prune_no,
#
#-----[ AFTER, ADD ]------------------------------------------
#
"INFOBARON" => $infobar_yes,
"INFOBAROFF" => $infobar_no,
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Infobar'] = "Infobar switch on";
#
#-----[ OPEN ]------------------------------------------
#
language/lang_german/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Infobar'] = "Infobar einschalten";
#
#-----[ OPEN ]------------------------------------------
#
templates/.../admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_MOD_ALLOW_DELETE_POST}<br /><span class="gensmall">{L_MOD_ALLOW_DELETE_POST_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="mod_allow_delete_post" value="1" {MOD_ALLOW_DELETE_POST_YES} /> {L_YES} <input type="radio" name="mod_allow_delete_post" value="0" {MOD_ALLOW_DELETE_POST_NO} /> {L_NO}</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_INFOBAR}<br /></td>
<td class="row2">{L_YES}<input type="radio" name="ticker" value="1" {INFOBARON}> {L_NO}<input type="radio" name="ticker" value="0" {INFOBAROFF}></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
$template->pparse('overall_header');
#
#-----[ BEFORE, ADD ]------------------------------------------
#
/
// Show infobar (yes/no)
//
if ( !$userdata['session_logged_in'] AND $board_config['infobar'] == '1' )
{
$template->assign_block_vars('switch_infobar', array());
}
#
#-----[ OPEN ]------------------------------------------
#
templates/.../overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- InfoBar MOD by http://www.cback.de -->
<div id="info"><div id="infobar"><a href="{U_REGISTER}">{L_CBACK_INFOBAR}</a></div></div>
<br>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<!-- BEGIN switch_infobar -->
<!-- InfoBar MOD by http://www.cback.de -->
<div id="info"><div id="infobar"><a href="{U_REGISTER}">{L_CBACK_INFOBAR}</a></div></div>
<br>
<!-- END switch_infobar -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Code: Alles auswählen
##############################################################
## MOD Title: Shop Mod Addon
## MOD Author: Pingu625 < pb_pascal@web.de > (Pascal Berrang) http://www.coolpas.net
## MOD Description: This Addon permits the administrator to switch on the
## Shoplink in the header and to switch off.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5 min
## Files To Edit: 6
## admin/admin_board.php
## includes/page_header.php
## language/lang_english/lang_admin.php
## language/lang_german/lang_admin.php
## templates/.../admin/board_config_body.tpl
## templates/.../overall_header.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ 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 MODs not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
##
## ACHTUNG:
## Bitte ändere gegebenenfalls das Tabellenprefix phpbb_ zu deinem eigenen!
## Attention:
## Change, if you need it, the prefix phpbb_ to your own, please!
##
##############################################################
## MOD History:
##
## 2006-08-04 - Version 1.0.0
## - Releasedate
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
# Please read the Author Notes, before SQL!
INSERT INTO phpbb_config (config_name, config_value) VALUES ('shop', '1');
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]------------------------------------------
#
$prune_yes = ( $new['prune_enable'] ) ? "checked=\"checked\"" : "";
$prune_no = ( !$new['prune_enable'] ) ? "checked=\"checked\"" : "";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$shop_yes = ( $new['shop'] ) ? "checked=\"checked\"" : "";
$shop_no = ( !$new['shop'] ) ? "checked=\"checked\"" : "";
#
#-----[ FIND ]------------------------------------------
#
"L_ENABLE_GZIP" => $lang['Enable_gzip'],
"L_ENABLE_PRUNE" => $lang['Enable_prune'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"L_SHOP" => $lang['Shop'],
#
#-----[ FIND ]------------------------------------------
#
"PRUNE_YES" => $prune_yes,
"PRUNE_NO" => $prune_no,
#
#-----[ AFTER, ADD ]------------------------------------------
#
"SHOPON" => $shop_yes,
"SHOPOFF" => $shop_no,
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Shop'] = "Shoplink switch on in the overall-header";
#
#-----[ OPEN ]------------------------------------------
#
language/lang_german/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Shop'] = "Shoplink im Overall-Header einschalten";
#
#-----[ OPEN ]------------------------------------------
#
templates/.../admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_MOD_ALLOW_DELETE_POST}<br /><span class="gensmall">{L_MOD_ALLOW_DELETE_POST_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="mod_allow_delete_post" value="1" {MOD_ALLOW_DELETE_POST_YES} /> {L_YES} <input type="radio" name="mod_allow_delete_post" value="0" {MOD_ALLOW_DELETE_POST_NO} /> {L_NO}</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_SHOP}<br /></td>
<td class="row2">{L_YES}<input type="radio" name="shop" value="1" {SHOPON}> {L_NO}<input type="radio" name="shop" value="0" {SHOPOFF}></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
$template->pparse('overall_header');
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// Show Shoplink (yes/no)
//
if ( $userdata['session_logged_in'] AND $board_config['shop'] == '1' )
{
$template->assign_block_vars('switch_shop',array());
}
#
#-----[ OPEN ]------------------------------------------
#
templates/.../overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<a href="{U_REGISTER}">{L_REGISTER}</a> •
<!-- END switch_user_logged_out -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN switch_shop -->
<a href="{U_SHOP}">{L_SHOP}</a> •
<!-- END switch_shop -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM