Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    64
    Plugin Contributions
    0

    Default Re: Banners & Forcing Bottom Boxes to Stay In One Place

    I found this code.....

    Code:
    if (!isset($ezpage_id) || !in_array($ezpage_id,explode(",",'2,5'))) {
        require($template->get_template_dir('tpl_order_history.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_order_history.php');
        $title =  BOX_HEADING_CUSTOMER_ORDERS;
        $title_link = false;
        require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
     }
    "Which means that the template to display the sidebox will be called whenever the page is not an EZ-Page or, if it is an EZ-Page, it does not have ID 2 or 5."

    So I would think that should take care of the ezpages for each sidebox to be displayed. I guess I just need to modify that into also supporting the main_page=xxx method?!?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Banners & Forcing Bottom Boxes to Stay In One Place

    That would be the general kind of code you want to use. What file is it from? Or what tutorial/post/etc?

    $current_page_base will hold a value like 'index' or 'product_info' or 'contact_us', nothing more or less. There are other variables that hold other information you may want to use.

    Some sideboxes (the top two in the right column) will not need to have any restrictive coding, since there will always be space to display them. The third sidebox will be restricted in only a few cases, while the ninth sidebox will be restricted in most cases.

  3. #3
    Join Date
    Mar 2009
    Posts
    64
    Plugin Contributions
    0

    Default Re: Banners & Forcing Bottom Boxes to Stay In One Place

    Glenn good point about the first 2 boxes not needing code based on a condition bc there's room.

    Here's the article you asked about....
    Titled: How can I vary which sideboxes are shown on each of my EZ-Pages?
    https://www.zen-cart.com/tutorials/i...hp?article=249

    I also got some pointers from this one and played around with certain side boxes on just the home page from this article...

    Titled: I want to display some of my sideboxes on my front page only, and suppress them from all other pages.
    https://www.zen-cart.com/tutorials/i...hp?article=270

    I then found and installed some sidebox mods like (scrolling specials, scrolling featured, and scrolling new). I have been playing around with them some and made them only display on first page for learning purposes. Not sure if I will use in place of some sideboxes or not, but just experimenting right now.

    Yet after finding all those mods, I still haven't found the forum or any mods (if any available) to create new sideboxes. I saw a forum days ago, but my keywords not picking any good ones up now. And, there were a bunch of side boxes in the mods, but I don't think any for the banners, unless you know of any?!? Or anyone that reads this thread? Appreciate the pointer to the proper documentation.

    Anyway, I do have a couple of new questions that came up....
    My home page is http://animalsuperstore.com/zenpro/index.php

    1) Whenever I put one of these new mods on the right side, the background color and title don't look like the ones on the left. How can I make the right look the same way?

    2) I get sql errors when I click on "MORE" with these new side boxes. I think I know why, I just don't know how to fix. If you click on specials in the side box, it goes to main_page=specials. However, we customized my specials to go to only the specials for the type of animal I have. So normally, you would click on say Cat first, then in categories on that page, specials and it goes to main_page=specials&cPath=2 where you only get the specials for that category of Cat. So besides the path being wrong, I don't think I have a page that would display all pet specials.

    So would it be a lot of work to support those side box mods from my home page? And, if I decided to put them in a category like this one http://animalsuperstore.com/zenpro/i...ge=cat&cPath=2 and from that page only display those type specials, would that be a fairly easy one to fix? Just a path change and sql query change?

    Sorry so long, but I'm trying to be detailed. Going to bed after posting this, so hopefully tomorrow is a good day for my banners.

    Thanks again for any help!
    Christina

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Banners & Forcing Bottom Boxes to Stay In One Place

    Kuroi's Blank Sidebox is the standard starting point, or you might want the Editable Sidebox. Either of them will hold any content you want to put in them.

    There was discussion about cloning bannerboxes recently; have you searched for that?

    Your style_bg.css has rules like
    Code:
    #bannerbox .bottom-bg,
    .columnLeft .bottom-bg,
    .information_blocks .bottom-bg {
    background: url(../images/bottom-bg2.gif) repeat-x left bottom;
    }
    Add a selector for
    .columnRight .bottom-bg,
    and the rule will apply to right sideboxes as well.

    SQL is not my specialty, so someone else will have to help with that.
    Applying the sideboxes to only certain category pages is quite possible.

  5. #5
    Join Date
    Mar 2009
    Posts
    64
    Plugin Contributions
    0

    Default Re: Banners & Forcing Bottom Boxes to Stay In One Place

    Glenn, I did see those sideboxes, but the description sounded like they only could put your own images or links in them and didn't say anything about the banner code being linked to them. I'll check them out. And I'll also search the cloning forum as well. Thanks!

    If anyone else reads this thread and has an idea about the SQL query for my page, I'd much appreciate any help.

    I might be having unexpected guests over tonight so might not be able to get back to this until tomorrow night. I'll keep this thread posted with my results.

    Have a great weekend Glenn!

  6. #6
    Join Date
    Mar 2009
    Posts
    64
    Plugin Contributions
    0

    Default Re: Banners & Forcing Bottom Boxes to Stay In One Place

    Hey Glenn (or whoever may respond)

    I was able to get the background color and borders for the right boxes to match the left by editing the rules in the css file like you suggested. Thanks! One problem came up after that tho. There is bottom brown corner colors in Subscribe to Email now. Take away the code for the background and the funny brown corners disappear and look normal. Do you have any idea why? Also, do you know where in the css file I change the headers to the sideboxes (ie. one says right1) so they are centered like the left ones?

    http://animalsuperstore.com/zenpro/

    I decided to go with the Editable Sideboxes since they both looked fairly a like except the Editable gives you the Defines Pages Editor option. I installed the Mod and added a bunch of sideboxes for each side to get ready for the specific page task. I found a thread about this subject a little while ago, so I'm going to read through it and see if it helps. For anyone who might be interested, it's http://www.zen-cart.com/forum/showth...one+banner+box

  7. #7
    Join Date
    Mar 2009
    Posts
    64
    Plugin Contributions
    0

    Default Re: Banners & Forcing Bottom Boxes to Stay In One Place

    Oh and the side box header's text color is different between the two side boxes. Probably coding in the same place?!?

  8. #8
    Join Date
    Mar 2009
    Posts
    64
    Plugin Contributions
    0

    Default Re: Banners & Forcing Bottom Boxes to Stay In One Place

    Hi Glenn

    I was able to get the subscribe to email, informational boxes (green center column boxes), and the credit card mod (on the left that I recently added) all to stay on the bottom and not float anymore. All went pretty good except for the informational boxes. They are no longer 33% in width. Setting is still that, but it must not be judging the center width the same anymore. I also had problems with some content like if you clicked on subscribe to email and got an error, the text and red box would over flow over the banners on the right. I changed something (can't remember what now) and it fits except there is no padding on the right of the text and left of the banner. Could these two issues be related? Do you know how to fix?

    http://animalsuperstore.com/zenpro/i...page=subscribe

    stylesheet.css
    Code:
    .columnCenter {
    	padding-bottom: 14em;
    }
    
    #navColumnOneWrapper, #navColumnTwoWrapper {
    	margin: auto;
    	padding-bottom: 14em;
    	}
    style_new.css
    Code:
    #contentMainWrapper {
    	background: url(../images/contentMainWrapper_bg.gif) repeat left top;
    	border: 1px solid #afadad;
    	border-bottom: 0 none;
    	padding: 10px 6px 0 6px;
    	position: relative;
    	margin:-1px 0 0 0;
    	}
    
    .information_blocks {
    	font-size: 1.1em;
    	padding: 0 0px 0 2px;
    	position:absolute;
    	bottom: 2.0em;
    	}
    style_sideboxes.css
    Code:
    #subscribe{
    	position: absolute; 
    	bottom: 7.0em; 
    }
    
    #ccaccept{
    	position:absolute;
    	bottom: 2.0em;
    }
    Thanks!

  9. #9
    Join Date
    Mar 2009
    Posts
    64
    Plugin Contributions
    0

    Default Re: Banners & Forcing Bottom Boxes to Stay In One Place

    I haven't gotten a response to my post yet so I'm flagging it again. Is there anyone that may know the answer to my problem? Thanks!

 

 

Similar Threads

  1. How do I force banners to stay at foot of page?
    By moggi1964 in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 13 May 2011, 06:54 PM
  2. Custom banners? Inserting own images in place of boxes in margin
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Jul 2010, 04:48 PM
  3. Making banners stay on one side
    By robbin21973 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 Mar 2009, 02:56 AM
  4. Multiple size boxes - How to keep them in one place?
    By jas99villa in forum Basic Configuration
    Replies: 2
    Last Post: 21 Feb 2007, 02:36 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