Code: Select all
[img]http://blabla.com/banners/script.php[/img9
The script i am using is returning html code with "echo"..
Jens
Code: Select all
[img]http://blabla.com/banners/script.php[/img9
Code: Select all
<?php
/*****
Random Banners
(C) 2007 NZ's Finest
www.nzsfinest.com
HOW TO USE -
1. Edit the information below (http://www.website.com,image.png, etc).
The format is <url>,<image>
2. Or add in new banners by copying the text
"http://www.website.com,image.png",
and pasting it on a new line above
"http://www.website.com,image.png",
Then include it on your website by using the code:
include("banners.php");
*****/
$banners = array(
"http://www.ojzoo.com,http://www.loricariidae.se/banners/ojzoo.jpg",
"http://www.cyberzoo.com,http://www.loricariidae.se/banners/cyberzoo.jpg"
);
/*****
ATTENTION -
Do not edit below this line unless you know what you are doing.
*****/
$randnum = rand(0, count($banners) - 1); // Choose a random banner
$exploded = explode(",", $banners[$randnum]); // Separate chosen banner by ,
$url = $exploded[0]; // Grab the URL for the banner
$img = $exploded[1]; // Grab the image for the banner
// Display the banner
echo "<a href=\"$url\">";
echo "<img src=\"$img\" border=\"0\" />";
echo "</a>";
?>
Code: Select all
<?php
/**
*
* @package - Board3portal
* @copyright (c) kevin / saint ( www.board3.de/ ), (c) Ice, (c) nickvergessen ( www.flying-bits.org/ ), (c) redbull254 ( www.digitalfotografie-foren.de ), (c) Christian_N ( www.phpbb-projekt.de )
* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (!defined('IN_PORTAL'))
{
exit;
}
$banners = array(
"http://www.ojzoo.com,http://www.loricariidae.se/banners/ojzoo.jpg",
"http://www.cyberzoo.com,http://www.loricariidae.se/banners/cyberzoo.jpg"
);
/*****
ATTENTION -
Do not edit below this line unless you know what you are doing.
*****/
$randnum = rand(0, count($banners) - 1); // Choose a random banner
$exploded = explode(",", $banners[$randnum]); // Separate chosen banner by ,
$url = $exploded[0]; // Grab the URL for the banner
$img = $exploded[1]; // Grab the image for the banner
$template->assign_vars(array(
'BANNER_URL' => $url,
'BANNER_IMAGE' => $img,
));
?>
Code: Select all
include($phpbb_root_path . 'portal/block/banner.'.$phpEx);
I am using the nexus style and i want it to be in centerblock.Kevin wrote:Why do you sent me a PM?
For your Question i need more information - which style do you use and should it be a site block or a center block?