Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Location
    Grimsby UK
    Posts
    98
    Plugin Contributions
    0

    Default Banners still confusing me!

    Hi

    Although I have some experience with the basics of Zencart; I have never really experimented with the banners.
    I have a live site that I have been experimenting on (as well as my XAMPP server) and I am starting to work my way through the logic of the banner constructs along with the FAQ.
    I am having one or two issues that are not covered in the banner FAQ.

    I want two banners to link to affiliates and these need to be fixed. Currently I have two SideBanners set up, one with text for Affiliate A(no markup yet) and one with an image that links to Affiliate B.

    I am using the Layout Settings in Config with side banner_box and Side banner_box2 set to SideBox-Banners group. Then in Banner Manager under Tools I have made only two SideBox-banners active with the respective links. I have no sort order in here; from the FAQ, the sort order only affects the banner-box-all group.

    Then in Layout Boxes Controller I have the sort order set for the correct bannerbox types.

    All ok up to now!

    But, now:

    1) the banner boxes swap their links randomly, ie box A will sometimes contain the same as box B, or they will swap order. ie AA, AB, BA, BB

    2) the image only shows if I upload from my local machine, my store refuses to use the image/banner folder on the webserver!

    3) The image I currently have running is a 106x106 JPG, yet it seems to expand to some arbitrary size and pushes my content to the right, overspilling the container box and ignoring my image size.

    The only way that I can see of sorting out this behaviour is to
    i) alter the layout to allow only one box
    ii) code (X)HTML into one Side Box that defines the images size and external links eg.

    Code:
     
    <p><a href="{url}"><img src="/images/banners/AfilliateA.jpg width="desired_width" height="desired_height" alt="alt text" /></a></p>
    <p><a href="{url}"><img src="/images/banners/AfilliateB.jpg width="desired_width" height="desired_height" alt="alt text" /></a></p>
    Maybe add some classes and style them externally too, but you get the idea.
    I'm sure that this is a workable solution, but am I re-inventing the wheel here?

    I think that the web hosting that I use may be the cause of problem (2), that of addressing the wrong folder for banners because the server is setup in such a way that prevents true root access. I cannot alter http .conf files or .htaccess files. this isn't really a problem for this site because it is a Showroom only.
    Basically, my host runs a shared server that allows FTP PHP CGI POP and MySQL but in parallel directories below the true server root. This is not the major issue here though.

    I just wondered if I have gone about banners in completely the wrong way or whether the XHTML code would be the proper way forward in this instance?

    Thanks for your input

    Dave

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Banners still confusing me!

    Ok, to answer your points:

    1 - they will do, as they are both using the same banner positions, and each is runnign an SQL statement on the database. It's like they are both throughing the same dice, so the same number does occasionally come up. Solution: In config settings, set one to SideBox-BannersA and the other to SideBox-BannersB. Now in the banner settings, where it says which group, assign a banner to a specific group - SideBox-BannersA or SideBox-BannersB. You'll have to enter these, as they won't appear in the dropdowns.

    2 - Make sure you have the correct permissions within the images and banners folders. Try FTPing the banner images up first and see if they then display. It may jsut be that the script can't uplaod your images.

    3 - can you post a link so we can see how the images are affected?

    Absolute

  3. #3
    Join Date
    Oct 2006
    Location
    Grimsby UK
    Posts
    98
    Plugin Contributions
    0

    Default Re: Banners still confusing me!

    Hi Absolute,

    Thanks for the response. I understand what you are saying about the banners in that they choose from within a group and display a random link from within that group. I did not know that this was their designed behaviour, but what you say makes sense.

    In the end I went with coding the XHTML into the banner box that I wanted. I didn't want 'Sponsor' just 'Have you seen..?'

    It works quite neatly and is child's play too.

    I have just about finished the site now (I had a really good day's work today)

    http://www.impact-leisure.com

    Regards

    Dave

    PS, looks like IE7 still has the peekaboo bug! darn!
    Last edited by dml311071; 25 Jan 2008 at 06:59 PM. Reason: addition

  4. #4
    Join Date
    Jan 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: Banners still confusing me!

    You might want to add a .greetings rule to your css to avoid the welcome message overlaying the right hand image at larger text sizes.

    John

    PS You might like to have a look at what happens when viewed at less that full screen on 1024 resolution.
    Last edited by lockettpots; 27 Jan 2008 at 03:08 PM.

  5. #5
    Join Date
    Oct 2006
    Location
    Grimsby UK
    Posts
    98
    Plugin Contributions
    0

    Default Re: Banners still confusing me!

    Quote Originally Posted by lockettpots View Post
    You might want to add a .greetings rule to your css to avoid the welcome message overlaying the right hand image at larger text sizes.

    John

    PS You might like to have a look at what happens when viewed at less that full screen on 1024 resolution.
    Well spotted, I will add a new class in the stylesheet for that!

    another job for the morning that one.

    Regards

    Dave

 

 

Similar Threads

  1. I have disabled all banners, yet banners still appear
    By Swampy Acres Farm in forum General Questions
    Replies: 10
    Last Post: 25 Feb 2013, 03:21 PM
  2. home banners still show up when click the category
    By sub103 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Apr 2010, 07:59 AM
  3. Removing Bottom Banner - Invisible Box Still There After Banners Shut Off
    By eeyipes in forum Customization from the Admin
    Replies: 2
    Last Post: 2 Apr 2009, 01:42 PM
  4. Adding Images Still Confusing
    By VintageCarol in forum General Questions
    Replies: 9
    Last Post: 23 Dec 2008, 01:26 AM
  5. Confusing Header
    By Woody619 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 May 2007, 08:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg