har nu fået det her (af melange over icq)
(en bannermod)
##############################################################
## MOD Title: Banner configuration
## MOD Author: dkklein < tommy_jensen67@hotmail.com > (Tommy Jensen)
http://www.sc-resources.net/ ##
## MOD Description: This MOD will let the admin to configure up to 3 banners, a banner in upper right
## hand corner, a banner in the footer and a popup/popunder banner.
## Actual placement is up to the admin, can be anywhere.
## MOD Version: 0.5.0
##
## Installation Level: Easy
## Installation Time: 20 Minutes
## Files To Edit: includes/page_header.php,
## language/lang_english/lang_admin.php
## admin/admin_board.php
## templates/subSilver/overall_header.tpl
## templates/subSilver/admin/board_config_body.tpl
## Included Files: n/a
##############################################################
## Author Notes:
##
## Copyright © Tommy Jensen 2002 -
http://www.sc-resources.net/ ##
## ** No Placement Of This MOD At Sites Other Than
www.phpBB.Com Without My Permission.
##
## If you download this MOD from anywhere other than my own site or phpBB, please do not
## use it. I do not allow this MOD to be posted at non-official phpBB Sites,
## and as such I will not be able to keep this MOD up-to-date at any of these non-official sites
## which do not respect my request to not place it within their site. If you do find it at a site
## other than phpBB.com please let me know!
##
## For anybody that likes this MOD, you can always say 'thanks' by sending me an email :-)
##
## The actual placement of the 3 supported banners is upto the user to decide.
## The instructions in here is just a suggestion where the banners could be placed.
##
## Also it should be fairly simple to add more banners if required.
##
##############################################################
## History:
##
## 0.5.0 - 10/20/2002 - Initial
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
# Run query in SQL
#
INSERT INTO phpbb_config VALUES ('banner_block', '');
INSERT INTO phpbb_config VALUES ('banner_footer', '');
INSERT INTO phpbb_config VALUES ('banner_popunder', '');
INSERT INTO phpbb_config VALUES ('banner_block_enable', '0');
INSERT INTO phpbb_config VALUES ('banner_footer_enable', '0');
INSERT INTO phpbb_config VALUES ('banner_popunder_enable', '0');
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]------------------------------------------
#
$cookie_secure_no = ( !$new['cookie_secure'] ) ? "checked=\"checked\"" : "";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$banner_block_yes = ( $new['banner_block_enable'] ) ? "checked=\"checked\"" : "";
$banner_block_no = ( !$new['banner_block_enable'] ) ? "checked=\"checked\"" : "";
$banner_footer_yes = ( $new['banner_footer_enable'] ) ? "checked=\"checked\"" : "";
$banner_footer_no = ( !$new['banner_footer_enable'] ) ? "checked=\"checked\"" : "";
$banner_popunder_yes = ( $new['banner_popunder_enable'] ) ? "checked=\"checked\"" : "";
$banner_popunder_no = ( !$new['banner_popunder_enable'] ) ? "checked=\"checked\"" : "";
#
#-----[ FIND ]------------------------------------------
#
"L_COOKIE_SETTINGS" => $lang['Cookie_settings'],
#
#-----[ BEFORE, ADD ]------------------------------------------
#
"L_BANNER_BLOCK_ENABLE" => $lang['Banner_Block_Enable'],
"L_BANNER_BLOCK" => $lang['Banner_Block'],
"L_BANNER_FOOTER_ENABLE" => $lang['Banner_Footer_Enable'],
"L_BANNER_FOOTER" => $lang['Banner_Footer'],
"L_BANNER_POPUNDER_ENABLE" => $lang['Banner_Popunder_Enable'],
"L_BANNER_POPUNDER" => $lang['Banner_Popunder'],
"L_BANNER_SETTINGS" => $lang['Banner_Settings'],
#
#-----[ FIND ]------------------------------------------
#
"L_COOKIE_DOMAIN" => $lang['Cookie_domain'],
#
#-----[ BEFORE, ADD ]------------------------------------------
#
"BANNER_BLOCK_ENABLE" => $new['banner_block_enable'],
"BANNER_BLOCK" => $new['banner_block'],
"BANNER_FOOTER_ENABLE" => $new['banner_footer_enable'],
"BANNER_FOOTER" => $new['banner_footer'],
"BANNER_POPUNDER_ENABLE" => $new['banner_popunder_enable'],
"BANNER_POPUNDER" => $new['banner_popunder'],
#
#-----[ FIND ]------------------------------------------
#
"S_COOKIE_SECURE_ENABLED" => $cookie_secure_yes,
#
#-----[ BEFORE, ADD ]------------------------------------------
#
"S_BANNER_BLOCK_ENABLED" => $banner_block_yes,
"S_BANNER_BLOCK_DISABLED" => $banner_block_no,
"S_BANNER_FOOTER_ENABLED" => $banner_footer_yes,
"S_BANNER_FOOTER_DISABLED" => $banner_footer_no,
"S_BANNER_POPUNDER_ENABLED" => $banner_popunder_yes,
"S_BANNER_POPUNDER_DISABLED" => $banner_popunder_no,
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit),
#
#-----[ BEFORE, ADD ]------------------------------------------
#
'BANNER_BLOCK' => ( $board_config['banner_block_enable'] == 1 ) ? $board_config['banner_block'] : '',
'BANNER_FOOTER' => ( $board_config['banner_footer_enable'] == 1 ) ? $board_config['banner_footer'] : '',
'BANNER_POPUNDER' => ( $board_config['banner_popunder_enable'] == 1 ) ? $board_config['banner_popunder'] : '',
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// Forum Management
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Banner_Block_Enable'] = "Enable or disable banner in upper right hand corner";
$lang['Banner_Block'] = "Enter html code for Banner block in the upper right hand corner ";
$lang['Banner_Footer_Enable'] = "Enable or disable banner in footer";
$lang['Banner_Footer'] = "Enter html code for Banner in the footer";
$lang['Banner_Popunder_Enable'] = "Enable or disable popunder or popup";
$lang['Banner_Popunder'] = "Enter html code for popunder displayed when not logged in";
$lang['Banner_Settings'] = "Enable or disable banners";
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<th class="thHead" colspan="2">{L_COOKIE_SETTINGS}</th>
</tr>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<tr>
<th class="thHead" colspan="2">{L_BANNER_SETTINGS}</th>
</tr>
<tr>
<td class="row1">{L_BANNER_BLOCK_ENABLE}<br /><span class="gensmall">{L_BANNER_BLOCK_ENABLE_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="banner_block_enable" value="0" {S_BANNER_BLOCK_DISABLED} />{L_DISABLED} <input type="radio" name="banner_block_enable" value="1" {S_BANNER_BLOCK_ENABLED} />{L_ENABLED}</td>
</tr>
<tr>
<td class="row1">{L_BANNER_BLOCK}</td>
<td class="row2"><textarea name="banner_block" rows="10" cols="60">{BANNER_BLOCK}</textarea></td>
</tr>
<tr>
<td class="row1">{L_BANNER_FOOTER_ENABLE}<br /><span class="gensmall">{L_BANNER_FOOTER_ENABLE_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="banner_footer_enable" value="0" {S_BANNER_FOOTER_DISABLED} />{L_DISABLED} <input type="radio" name="banner_footer_enable" value="1" {S_BANNER_FOOTER_ENABLED} />{L_ENABLED}</td>
</tr>
<tr>
<td class="row1">{L_BANNER_FOOTER}</td>
<td class="row2"><textarea name="banner_footer" rows="10" cols="60">{BANNER_FOOTER}</textarea></td>
</tr>
<tr>
<td class="row1">{L_BANNER_POPUNDER_ENABLE}<br /><span class="gensmall">{L_BANNER_POPUNDER_ENABLE_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="banner_popunder_enable" value="0" {S_BANNER_POPUNDER_DISABLED} />{L_DISABLED} <input type="radio" name="banner_popunder_enable" value="1" {S_BANNER_POPUNDER_ENABLED} />{L_ENABLED}</td>
</tr>
<tr>
<td class="row1">{L_BANNER_POPUNDER}</td>
<td class="row2"><textarea name="banner_popunder" rows="10" cols="60">{BANNER_POPUNDER}</textarea></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
# This part is up to each user to decide exactly where the banners should be placed
# this is how I have placed them
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<a name="top"></a>
#
#-----[ AFTER, ADD ]------------------------------------------
#
# If the popup/under should always be displayed remove the BEGIN/END switch lines
# otherwise it will only be displayed when user is NOT logged in.
#
<!-- BEGIN switch_user_logged_out -->
{BANNER_POPUNDER}
<!-- END switch_user_logged_out -->
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span></td>
</tr>
</table></td>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<td>
{BANNER_BLOCK}
</td>
#-----[ OPEN ]------------------------------------------
#
# This part is up to each user to decide exactly where the banners should be placed
# this is how I have placed them
#
templates/subSilver/overall_footer.tpl
#
#-----[ FIND ]------------------------------------------
#
<div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />
#
#-----[ BEFORE, ADD ]------------------------------------------
#
{BANNER_FOOTER}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
ER DER nogen der vil hjælpe med det på et tidspunkt?!