Re: BannersAll - doesn't show all banners. Please help!
I've found another way to my problem. I just put all of my banner's codes into one banner, called it "All Banners" and it did it. You can see it here: www.api.kh.ua/zen I can't see the statistics of each of the banner from the Admin section, though. My way is probably not the right way of solving the problem, but I can't think of anything else. The only other way would be to use the sidebox_banners_all.
Re: BannersAll - doesn't show all banners. Please help!
It seems like you have entered the raw code for the banners into the HTML Text field of the Banner Manager screen. As stated above the text box in the screen, clicks will not be recorded for banners created that way. That is why you do not see the statistics.
You will need to tweak the custom code I posted earlier if you want to have the banners displayed and also have the statistics recorded. Btw, tpl_main_page.php which I posted earlier is related to Footer Position 3 while tpl_footer.php is related to Footer Position 2. I'm sorry to have missed that one out.
Alternatively, as you mentioned, you can create individual image banners (not HTML banners) under a banner group and then assign that banner group to sidebox_banners_all. However, you will not be able to hotlink to the images like what you are currently doing now but you will get to see the statistics this way without any custom coding.
Re: BannersAll - doesn't show all banners. Please help!
canopy, thank you for your advices. Unfortunately, I don't know the code very well, I don't think I really understand what I need to do. I'll have to stick with what I came up with, I guess. Unless, of course, somebody will actually adapt the code for me :-)
Re: BannersAll - doesn't show all banners. Please help!
I also really wanted to be able to display all of the banners from a group in a single location, and have ended up with quite a useful solution if anyone's interested. This could help with all sorts of customisations:
1. Apply DrByte's excellent contribution that allows you to display any centrebox or sidebox in a PHP file outside of Zen Cart [http://www.zen-cart.com/index.php?ma...roducts_id=79]
2. Delete line 41 of single_sidebox.php as we're using this within ZC and it will cause a fatal error if you leave it in:
PHP Code:
require('includes/application_top.php');
3. Insert the appropriate code in whatever template file you want it. In my case it was tpl_main_page.php and I inserted the following, just after the banner 3 code:
PHP Code:
$zcSBmodule = 'banner_box_all.php'; // name of sidebox or centerbox to be displayed (see filenames in the /includes/modules/sideboxes folder) (if not set, uses "whats_new.php")
$zcSBlayout = 'right'; // 'left' or 'right' sidebox template style (if not specified, uses 'left')
require $_SERVER['DOCUMENT_ROOT'] . '/new/single_sidebox.php';
Note that the final line is a bit different from DrByte's instructions as the server I'm working with doesn't allow direct URL calling.
Re: BannersAll - doesn't show all banners. Please help!
Hi, I'm reviving this post, since I got the same issue, but don't know how to solve it. The only advice here is to tweak the code in the tpl_footer with the help of tpl_banner_box_all. I just don't know how to do that. I'm trying and trying, but no luck.
Please, could anyone help me with being more specific with this instruction of hardcoding the bannerFive.
Thank you so much in advance.
Tanja