Thread: Extra Sideboxes

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Feb 2006
    Location
    United States
    Posts
    96
    Plugin Contributions
    0

    Default Extra Sideboxes

    I found it in an archived thread before the new design of the forum but cannot seem to find it now.Does anyone know where I can get a module to download to create extra sideboxes?Or is there a way to duplicate the sideboxes that come with v1.2.6D?Thanks for any help on this issue.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Extra Sideboxes

    The sideboxes have two peices ...

    /includes/modules/sideboxes

    /includes/templates/templates_default/sideboxes

    If you find a sidebox closest to what you are needing, you can duplicate it by matching the naming convention and editing the content ...

    Once created and uploaded to your site, going to the Layout Boxes Controller will auto load the sidebox to the database for you to configure for your template ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2006
    Location
    United States
    Posts
    96
    Plugin Contributions
    0

    Default Re: Extra Sideboxes

    ok I tried this by going to /includes/modules/sideboxes.I changed TEXT_BANNER_BOX2; to TEXT_BANNER_BOX3;and also changed require($template->get_template_dir('tpl_banner_box2.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_banner_box2.php'); to require($template->get_template_dir('tpl_banner_box3.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_banner_box3.php');
    Then I went to /includes/templates/templates_default/sideboxes and changed tpl_banner_box2 to tpl_banner_box3

    I copied the template default sideboxes file to my custom template so if I upgrade I wont loose any changes made.But when I went to my administrations and turned it on in the layout box controller and added a banner to it thru banner manager, I didn't see the side box appear in my template.Could this be caused by copying the sidebox file to my custom template or could it be from me just naming it banner_box3?Thanks for any help you can give me on this.
    Also is there a page links module or a links module I could download?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Extra Sideboxes

    Banners must have the code in them for calling banners ...

    For example, this blocks the box from showing if the setting is empty:
    Code:
    // test if box should display
      $show_banner_box2 = true;
      if (SHOW_BANNERS_GROUP_SET8 == '') {
        $show_banner_box2 = false;
      }
    That configuration_key SHOW_BANNERS_GROUP_SET8 is in the configuration table and if not set, no sidebox shows, even if turned on ...

    This setting, tells the banner what to get from the database:
    Code:
        $banner_box_group= SHOW_BANNERS_GROUP_SET8;
    Again, if blank, then nothing is retreived ...

    You will need to make your own settings that constant to say which Banner Group to include or nothing will show ...

    This can be done in the database, or at the top of the module for the sidebox you can just put it in as a define statement ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Feb 2006
    Location
    United States
    Posts
    96
    Plugin Contributions
    0

    Default Re: Extra Sideboxes

    OK sorry but I'm just smart enough at php to be dangerous.I looked at the code and I have the exact same code as you posted:
    $banner_box_group= SHOW_BANNERS_GROUP_SET8;

    So What I did was tried the Sashbox banner in the the banner_box3 sidebox.Maybe this was the wrong banner to try?What I am ultimately looking for is a side box to add links to.Like I have in my sponsors box.
    Maybe I just answered my own question here,I am not for sure,but with me actually wanting just to add links would it be better to copy the sponsors box and try that?Thanks for all the help you advise and offer,I appreciate the help.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Extra Sideboxes

    The banner_box_all.php is a very different kind of banners box ...

    This allows you to add multiple banners based on the sort order in the Banners Manager to display at one time ...

    You said you are using: SHOW_BANNERS_GROUP_SET8

    Do you have something defined in the Configuration ... Layout Settings ... for the setting for: Banner Display Groups - Side Box banner_box2

    That is currently the configuration setting for that constant: SHOW_BANNERS_GROUP_SET8

    IF that is blank then nothing will display ...

    You could make: SHOW_BANNERS_GROUP_SET25 (25 is just to make it unique)

    And make a define statement for you new sidebox instead of using the configuration table like the other sideboxes do ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Feb 2006
    Location
    United States
    Posts
    96
    Plugin Contributions
    0

    Default Re: Extra Sideboxes

    Sorry I m posting another reply to this topic, and this might be a really dumb question to ask.
    Where do I create the SHOW_BANNERS_GROUP25(OR WHATEVER # i DECIDE AT)??
    Do I add this in includes/modules/sideboxes/banner_box3 where it says $banner_box_group= SHOW_BANNERS_GROUP_SET8; instead just replace 8 with 25?
    And when I create a new banner in tools>banner manager where it says Banner Group: , or enter a new banner group below , do i enter the BANNER_GROUP25 in the box "enter a new banner group below"?
    Sorry again for the post,it has been a little confusing to me on this issue.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Extra Sideboxes

    The constant contains the names of the Banner Groups that the sidebox should look at ...

    Code:
    define('SHOW_BANNERS_GROUP25', 'mybannergroup, myotherbannergroup');
    Place this before any references to the SHOW_BANNERS_GROUP25 is used so it knows what banner groups to look for ...

    Some how, the code needs to know which banners are suppose to be displayed ...

    The current banner sideboxes each have their definitions actually stored in the configuration table ...

    You can do your's with a define in the start of the code for the sideboxes ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Feb 2006
    Location
    United States
    Posts
    96
    Plugin Contributions
    0

    Default Re: Extra Sideboxes

    Got it to work...Thank You Linda for the time and effort you put in on my post and this forum.I appreciate it immensley.

  10. #10
    Join Date
    Feb 2006
    Location
    United States
    Posts
    96
    Plugin Contributions
    0

    Default Re: Extra Sideboxes

    two questions I forgot to pose and I was wondering do I need to copy banner_box2.php and make it banner_box3.php in includes/english sideboxes?I did notice in my admin>layout setting there is no reference to Banner Display Groups sidebox banner3.Should there be a listing for this new sidebox?

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Need to add two extra category sideboxes
    By ekon79 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Jan 2011, 05:12 PM
  2. Extra Banner Sideboxes
    By meltdowncomics in forum Basic Configuration
    Replies: 0
    Last Post: 22 Oct 2008, 11:52 PM
  3. extra category sideboxes?
    By smithers2005 in forum Basic Configuration
    Replies: 3
    Last Post: 4 Mar 2008, 07:27 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