kozsar, on 18 November 2010 - 10:33 PM, said:
Nice contrib! Good work... but...
PLEASE! help me! I thing i'll go crazy...
The banners working good, however it always showing up at wrong place... You can check this out: http://www.topnaramky.sk/catalog
I think I must put this code at the right place in index.php, and actually I am trying to find out where it could be, but it doesn't work... I am going insane...
Here is the code what I'm talking about...
<?php // Start Banner Rotator; ?>
<tr>
<td><?php include( DIR_WS_MODULES . FILENAME_BANNER_ROTATOR ); ?></td>
</tr>
<?php // End Banner Rotator; ?>
So if I want to put the banners somewhere at the top of my page, where and which file I have to modify? (sts_template.html? header.php? index.php?) I've tried everything to find out why no showing up elsewhere...
Thanks for your support!
After days searching the solutions i've managed showing up the banners where I want. The first thing that it is no idea changing the banner group names... Everything is configured to 468x50 as default, so you had better not to change it. It is important to know that the default template in STS (for ex. STS_default.html) doesn't executing php...
When i changed the banner group name the default banner showed up, but not the rotaoring... (with $banner_only)
Reading the whole STS doc for three times, i've reailized that the $banner function is set up in the sts_user_code.php... So i've changed this:
$sts->start_capture();
if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><?php echo $sts->template['banner_only']; ?></td>
</tr>
</table>
<?php
}
$sts->stop_capture('banner');
to this:
$sts->start_capture();
if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><?php include( DIR_WS_MODULES . FILENAME_BANNER_ROTATOR ); ?></td>
</tr>
</table>
<?php
}
$sts->stop_capture('banner');
And Voilá, the banner-rotator is working perfect also with STS!!! Follow the steps in the readme, but you have to put the <?php include( DIR_WS_MODULES . FILENAME_BANNER_ROTATOR ); ?> thing to the sts_user_code.php!
P.S.: after searching over the internet i can't beileve that only I had this problem! But the best thing, that I find the solution. This contrib is also working perfect with STS!









