heb de pagina's gelinkt naar een andere website,nu hoe kan ik die in een blanke openen?
Heb al in de tpl file met
Code: Selecteer alles
target="_blank"
geprobeerd maar tevergeefs
dan 2
als ik door het forum surf veranderd de banner wel
MAAR na bv 3 stappen ver in het forum te gaan
bv
>testsubforum
>>test
>>>en dan hier de post
bij die laatste word mijn forum plots breder??
te bekijken op http://www.dutchcartuning.com
mvg
Code: Selecteer alles
##############################################################
## MOD Title: Random banners
## MOD Author: RCTycooner < tom.wuyts@a-d-e.net > (Tom Wuyts) http://www.wuyts.org/tom/phpbb2/
## MOD Description: If you have more then one banner, you can let them show up randomly with this.
## MOD Version: 2.1.2
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: page_header.php, overall_header.tpl
##
## Included Files: admin_banner.php,
## lang_banner.php,
## banner_db_update.php,
## banner_config_body.tpl,
## 200to211_db_update.php
##############################################################
## For Security Purposes, Please Check: http://www.wuyts.org/tom/ 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, RCTycooner will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.wuyts.org/tom/
##############################################################
## Author Notes:
## Remember to read and execute the notes found beneath!
## If you do not understand the explanation, please go to
## < http://www.wuyts.org/tom/phpbb2/ > and ask your question in the 'phpbb support' forum
##
##############################################################
## MOD History:
##
## 2004-10-14 - Version 2.1.2
## - Fixed another typo :{ in admin_banner.php ...
## 2004-09-20 - Version 2.1.1
## - Fixed a typo in admin_banner.php
## 2004-07-29 - Version 2.1.0
## - Admin can now define a link on each banner.
## 2003-12-16 - Version 2.0.0
## - rewritten the code totally
## - admin-configurable !!
## - use of language
## 2003-11-15 - Version 1.1.0
## - use of database
## 2003-11-10 - Version 1.0.0
## - First Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#
#
#-----[ COPY ]------------------------------------------
# remember to upload the lang_banner.php file into each language-folder you use!
# and upload banner_config_body.tpl to each template you use!
copy admin_banner.php to root/admin/admin_banner.php
copy lang_banner.php to root/language/xxx/lang_banner.php
copy banner_config_body.tpl to root/template/xxx/admin/banner_config_body.tpl
#
#-----[ RUN ]------------------------------------------
# upload, run and delete if finished
# NOTE: do this with the file (200to210_db_update.php) if you're updating from v2.0.0
banner_db_update.php
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
//
// The following assigns all _common_
#
#----------------[ BEFORE, ADD ]--------------------------------
#
// -----------------------------------------------------------------
// RaNdOm BaNnEr mod by RCTycooner
//count the amount of banners:
$sql = "SELECT id, creator, path, url, url_hover FROM phpbb_random_banners";
if(! ($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not get banners info!!", "", __LINE__, __FILE__, $sql);
}
$banner_row = array();
while( $row = $db->sql_fetchrow($result) )
{
$banner_row[] = $row;
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_banner.' . $phpEx);
//count the amount of banners:
$number_banners = count($banner_row);
//select a banner:
$newrand = rand(0,$number_banners-1);
$banner_result = $newrand;
//show data of resulting banner:
$banner_info = $lang['created_by'] . $banner_row[$banner_result]['creator'];
$banner_path = $banner_row[$banner_result]['path'];
$banner_url = $banner_row[$banner_result]['url'];
$banner_url_alt = $banner_row[$banner_result]['url_hover'];
// end RaNdOm BaNnEr mod by RCTycooner
// -----------------------------------------------------------------
#
# ----------------[ FIND ]--------------------------------
#
'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread,
'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,
#
#----------------[ AFTER, ADD ]--------------------------------
#
'BANNER_INFO' => $banner_info,
'BANNER_PATH' => $banner_path,
'BANNER_URL' => $banner_url,
'BANNER_ALT' => $banner_url_alt,
#
#----------------[ OPEN ]--------------------------------
#
templates/xxx/overall_header.php
#
# ----------------[ FIND ]--------------------------------
# the place where the banner is located;
# I don't know how this looks like in other styles...
# ----------------[ REPLACE, WITH ]--------------------------------
#
<a href="{BANNER_URL}">
<img src="{BANNER_PATH}" border="0" alt="{BANNER_ALT}" title="{BANNER_ALT}" />
</a>
<font size="gensmall">
{BANNER_INFO}.
</font>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM