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}>
<{$xoops_contents}>
This is the module
Quote:
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?>
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:
include("../../mainfile.php");
include("include/functions.php");
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "<{$adverts}>"; //this is the rw_banner tag
echo "";
echo "";
?>
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