1
I have a popup window with a video screen and want to place banner ads on the page using the RW_banner module. The popup is a simple module and is recognized with a smarty switch at the top of theme.html. This allows a different design to show for the popup.
Quote:
<{if $xoops_dirname == "videos"}>
<{include file="default/videos.html"}>
<{else}>
Show the default theme layout coding
<{/if}>
The videos.html file only has the center block and $xoops_contents and is formatted like this
Quote:
<{foreach item=block from=$xoops_ccblocks}>
<{include file="default/center.html"}>
<{/foreach}>
<hr />
<{$xoops_contents}>
This is the module
Quote:
<?php
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?>
<iframe width="400" height="195" frameborder="0" scrolling="none" name="vidadverts" src="videoads.php">
</iframe>
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>
I want the adbanners to change at 60 sec intervals so I decided on IFrame which would refresh itself using the Meta refresh. I created the file with the banner like this; videoads.php
Quote:
<?php
include("../../mainfile.php");
include("include/functions.php");
echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>";
echo "<html>";
echo "<head>";
echo "<meta http-equiv='refresh' content='60'>";
echo "</head>";
echo "<body>";
echo "<{$adverts}>"; //this is the rw_banner tag
echo "</body>";
echo "</html>";
?>
Everything works fine except the banner smarty tag. I have tried many ways without success. Can anyone suggest the proper way to call the smarty tag