Forums / All Other Contributions/Addons / Sidebox Anywhere -- how do I use it to show centerbox content instead of sideboxes?

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

Locked

Views: 1,003

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
12 Feb 2010, 5:19 AM
#1
exoticcorpse avatar

exoticcorpse

New Zenner

Join Date:
Jan 2008
Posts:
35
Plugin Contributions:
0

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

14 Feb 2010, 10:16 PM
#2
exoticcorpse avatar

exoticcorpse

New Zenner

Join Date:
Jan 2008
Posts:
35
Plugin Contributions:
0

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

Anyone?

15 Feb 2010, 9:41 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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

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.
    1. 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.

16 Feb 2010, 1:23 AM
#4
exoticcorpse avatar

exoticcorpse

New Zenner

Join Date:
Jan 2008
Posts:
35
Plugin Contributions:
0

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

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"); ?>
16 Feb 2010, 4:22 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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

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.