Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2008
    Posts
    35
    Plugin Contributions
    0

    Default Sidebox Anywhere -- how do I use it to show centerbox content instead of sideboxes?

    Hi there. I'm attempting to make use of the Sidebox Anywhere Add-On, and infact I'm able to implement it and it works great for that purpose. However, it states on the download page that it has been 'updated to handle centerbox content' (http://www.zen-cart.com/index.php?ma...products_id=79), but I cannot work out how to make it show the featured products or new products center boxes as it is not clear in the instructions. Would you be able to explain how to do this to me, perhaps?
    Thanks in advance,
    Brent

  2. #2
    Join Date
    Jan 2008
    Posts
    35
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere -- how do I use it to show centerbox content instead of sideboxe

    Anyone?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Sidebox Anywhere -- how do I use it to show centerbox content instead of sideboxe

    From the addon description page, and from the documentation inside the single_sidebox.php file:
    /*
    * USAGE INSTRUCTIONS:
    * 1. Upload this single_sidebox.php file to the same folder as your Zen Cart files.
    * 2. On a PHP page where you desire to show Zen Cart sidebox content, insert the following code:
    * $zcSBmodule = 'name.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 = 'left'; // 'left' or 'right' sidebox template style (if not specified, uses 'left')
    * require ("path/to/zencart/single_sidebox.php");
    *
    *
    * DEFAULTS:
    * $zcSBmodule = (if not set, uses "whats_new.php")
    * $zcSBlayout = (optional) (if not specified, uses 'left')
    * $zcSBwidth = (optional) If not specified, uses Zen Cart store defaults
    *
    */
    .

    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.

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

    Default Re: Sidebox Anywhere -- how do I use it to show centerbox content instead of sideboxe

    Thanks for the reply. I did read that, and of course, did as it asked. I wanted to display the featured_products.php centerbox, but setting it as it asks does nothing but revert to the default whats_new.php sidebox. I then thought perhaps it was looking in modules/sideboxes for the box to display, so I then tried setting it to see if I could display the featured.php sidebox and again it reverted to whats_new.php. The fact it's displaying at all leads me to believe I've set it up correctly, I just can't work out why it only wants to show whats_new.php?

    <?php $zcSBmodule = 'featured_products.php';
    $zcSBlayout = 'left';
    require ("http://www.mydomain.com/single_sidebox.php"); ?>

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Sidebox Anywhere -- how do I use it to show centerbox content instead of sideboxe

    I don't understand why you're doing a require() on the URL. Most servers don't allow PHP to do external URL connections for require() or include() statements, for security reasons.
    The module is intended to be used with a single_sidebox.php file installed in your Zen Cart folder on your own server, not on an external server.
    .

    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.

 

 

Similar Threads

  1. I don't get any content using Sidebox Anywhere
    By breauxlg in forum Addon Sideboxes
    Replies: 23
    Last Post: 8 Dec 2012, 12:54 AM
  2. Can I use a scrolling sidebox instead of separate sideboxes?
    By discoverytdi in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 20 Aug 2011, 08:59 AM
  3. How can I setup the catagories sidebox to use image links instead of text?
    By sambenet in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 20 Jul 2011, 06:13 AM
  4. Sideboxes use template_default templates instead of my own
    By dause in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 17 Oct 2008, 01:50 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