Hello!
I urgently need your help!
My shop is here: http://www.carlmanevent.se/shop/index.php
and is currently all black
I know that Zen Cart is complex and I really try to edit as much as I can in the Admin panel, but before my shop went black, I tried to edit the tpl_main_page.php which is in the "common" folder.
The reason for editing this file, was that after inactivating my banners in the admin apnel, I still got that big area on the top of the page that was white. I read in the code that text about #pane5 was causing this and I went into tpl_main_page-php to put "<--" and "-->" areounf that text. It did not work though and when I edited back so that the file looked as it did before my changes, I got this black page!
I can honestly say that I changed back everything, so I don't know why i can't even see the shop now...
Any ideas?
Here's the area that I first tried to edit, but now is back in its original text:
<div class="scroll">
<div class="extra">
<div class="main-width">
<div class="holder">
<div class="scroll-pane" id="pane5">
<!-- BOF- BANNER #1 display -->
<?php
if (SHOW_BANNERS_GROUP_SET1
!= '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
if ($banner-
>RecordCount() > 0) {
?>
<ul class="blocks">
<?php
$new_banner_search =
zen_build_banners_group(SHOW_BANNERS_GROUP_SET1);
// secure pages
switch
($request_type) {
case ('SSL'):
$my_banner_filter=" and banners_on_ssl= " . "1";
break;
case
('NONSSL'):
$my_banner_filter='';
break;
}
$sql = "select
banners_id from " . TABLE_BANNERS . " where status = 1 " . $new_banner_search .
$my_banner_filter . " order by banners_sort_order";
$banners_all = $db-
>Execute($sql);
// if no active
banner in the specified banner group then the box will not show
$banner_cnt = 0;
while
(!$banners_all->EOF) {
$banner_cnt++;
$banner =
zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1);
echo '<li
class="scroll-interval">'.zen_display_banner('static', $banners_all-
>fields['banners_id']).'</li>';
// add spacing
between banners
if
($banner_cnt < $banners_all->RecordCount()) {
}
$banners_all-
>MoveNext();
}
?>
</ul>
<?php
}
}
?>
<!-- EOF- BANNER #1 display -->
</div>
</div>
</div>
</div>
</div>
I know now that I probably should do my editing in the Stylesheet_tm.css file to remove that banner background area,
but I strongly feel that step number 1 is to get the shop back on track and not looking black!
Thanks for all your help and input!



Reply With Quote

