Page 1 of 5 123 ... LastLast
Results 1 to 10 of 44
  1. #1
    Join Date
    Apr 2005
    Location
    London
    Posts
    468
    Plugin Contributions
    0

    Default how to add an additional sidebox in v1.x.x

    Hi,
    I would like to add additional "have you seen" sideboxes. I am using these to advertise products on my site. Could someone point me in the direction of how to add an extra box, I'm sure it can be done but not sure how.
    Thanks
    Pete
    FORUM:
    # a public meeting or assembly for open discussion
    #An online discussion group, where participants with common interests can exchange open messages.
    # a public facility to meet for open discussion

  2. #2

    Default Re: how to add an additional sidebox

    Wouldnt this be great if someone would reply?

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

    Default Re: how to add an additional sidebox

    Wouldn't this be great if some of us had a few cups of coffee while others waited patiently for a response or perhaps searched the forums while waiting ...

    Or perhaps posting what kind of additional sideboxes you need and their purpose ...

    More details result in better responses ... as does a tad more patiences ...
    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: v1.5.5]
    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!

  4. #4

    Default Re: how to add an additional sidebox

    Not to sound picky...but that post was from more than a yr ago.
    I already found the information I was looking for regarding it.

    Its just there are usually two types of posts on these boards, people who ask for information thats easily found, or complex questions that entitles too much messing around with code. Not sure how you guys have the patience....

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

    Default Re: how to add an additional sidebox

    If you found the information that is being requested ... then perhaps you could post the link to it to be helpful ...
    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: v1.5.5]
    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!

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

    Default Re: how to add an additional sidebox

    The banner sideboxes can be cloned once you understand a bit more about what they do ...

    For example ...

    /includes/modules/sideboxes/banner_box2.php
    /includes/templates/template_default/sideboxes/tpl_banner_box2.php
    are clones of:
    /includes/modules/sideboxes/banner_box.php
    /includes/templates/template_default/sideboxes/tpl_banner_box.php
    The differences that allow them to pull their own set of Banner Group banners are the settings in the Layout Settings where the Banner Groups are defined for each banner sidebox ...

    The banners_box uses the Banner Group names defined in:
    SHOW_BANNERS_GROUP_SET7

    To know which banners to look for to be displayed ...

    The banners_box2 uses the Banner Group names defined in:
    SHOW_BANNERS_GROUP_SET8

    To know which banners to look for to be displayed ...

    To clone this for another banner sidebox, you would need to create copies for the 2 files for banners_box2 and modify them by copying to:
    /includes/modules/sideboxes/banners_box3.php
    /includes/templates/template_default/sideboxes/tpl_banner_box3.php
    This would require its own unique setting for which Banner Groups to include, such as creating a new configuration_key for:
    SHOW_BANNERS_GROUP_SET10

    Why use SHOW_BANNERS_GROUP_SET10? Because it is unique and has not been used before ...

    This could be added to the configuration table like the other Banner Group definitions, or it could be added to a define statement ...

    Extra define statements are best added to the directory in a file that has meaning to you such as:
    /includes/languages/english/extra_definitions/my_banners_box3.php

    <?php
    define('SHOW_BANNERS_GROUP_SET10', 'BANNER GROUP NAMES GO HERE');
    ?>

    This would load at the same time as the english.php file ...

    Or, you could add it to the configuration table in the same way all the other settings are added:
    PHP Code:
    INSERT INTO configuration (configuration_titleconfiguration_keyconfiguration_valueconfiguration_descriptionconfiguration_group_idsort_orderuse_functionset_functiondate_addedVALUES ('Banner Display Groups - Side Box banner_box3''SHOW_BANNERS_GROUP_SET10''SideBox-Banners''The Banner Display Groups can be from 1 Banner Group or Multiple Banner Groups<br /><br />For Multiple Banner Groups enter the Banner Group Name separated by a colon <strong>:</strong><br /><br />Example: Wide-Banners:SideBox-Banners<br />Default Group is SideBox-Banners<br /><br />What Banner Group(s) do you want to use in the Side Box - banner_box3?<br />Leave blank for none''19''73'''''now()); 
    Then, you customize the new files for banners_box3 to use the changes described above ...

    Example:

    SHOW_BANNERS_GROUP_SET8

    would become:

    SHOW_BANNERS_GROUP_SET10

    TEXT_BANNER_BOX2

    would become:
    TEXT_BANNER_BOX3

    PHP Code:
        require($template->get_template_dir('tpl_banner_box2.php',DIR_WS_TEMPLATE$current_page_base,'sideboxes'). '/tpl_banner_box2.php'); 
    would become:
    PHP Code:
        require($template->get_template_dir('tpl_banner_box3.php',DIR_WS_TEMPLATE$current_page_base,'sideboxes'). '/tpl_banner_box3.php'); 
    etc. etc. etc.

    NOTE: The new defines can also be included in your new file:

    /includes/languages/english/extra_definitions/my_banners_box3.php

    to keep everything related together ...

    Hope this can help give you a start on making new banner boxes ...
    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: v1.5.5]
    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
    Apr 2005
    Location
    London
    Posts
    468
    Plugin Contributions
    0

    Default Re: how to add an additional sidebox

    Thanks for the info Ajeh...Did I miss something, what were the previous messages about? Kinda lost track with what was going on there for a sec

    Pete
    FORUM:
    # a public meeting or assembly for open discussion
    #An online discussion group, where participants with common interests can exchange open messages.
    # a public facility to meet for open discussion

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

    Default Re: how to add an additional sidebox

    Lack of coffee ... hope this worked for you ...
    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: v1.5.5]
    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
    Aug 2005
    Location
    Miramar, FL
    Posts
    41
    Plugin Contributions
    0

    Default Re: how to add an additional sidebox

    How do I create an additional categories sidebox. I don't know if I am to follow the instructions provided here about additional sideboxes. Thanks!

  10. #10
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: how to add an additional sidebox

    same concept applies.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. v139h How to add additional images
    By Chicky in forum General Questions
    Replies: 3
    Last Post: 20 Mar 2013, 12:28 PM
  2. Add Additional Page Link to Information Sidebox?
    By shinyo21 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Aug 2010, 03:22 PM
  3. How can I define additional pages for the Sidebox?
    By memerson in forum Basic Configuration
    Replies: 4
    Last Post: 9 Feb 2009, 06:49 PM
  4. Add additional sidebox banners
    By hockley in forum Basic Configuration
    Replies: 2
    Last Post: 19 Jan 2009, 05:25 PM
  5. Add An Additional Sidebox
    By CarolinaReefs in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Aug 2006, 07:28 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR