Zen Cart Logo
Forums / Addon Sideboxes / Sidebox Anywhere mod - Please Help

Sidebox Anywhere mod - Please Help

Views: 13,781

Results 61 to 64 of 64
28 Dec 2011, 6:36 PM
#61
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Sidebox Anywhere mod - Please Help

and she's back..:laugh:

DOH!

The fact that the iframe worked when my include statement didn't should have given me a HINT on how to get this to work WITHOUT using an iframe.. :shocking:

My original include statement looked like this:

<?php
include '/home2/mysite/public_html/shop/zencart-sidebox-categories.php';
?>
```I changed my include statement to the following:
<?php include 'http://shop.mysite.com/zencart-sidebox-categories.php'; ?>

I kept the link to my sidebox stylesheet in my **single_sidebox.php** file.. However now that I am not using an iframe to call my sideboxes, can anyone (DrByte??) confirm if I need to include any HTML other than the CSS link to my sidebox stylesheet in my **single_sidebox.php** file?? In other words will I have validation/other issues if the only thing I add to my **single_sidebox.php** file is this:
<head> <link rel="stylesheet" type="text/css" href="http://shop.mysite.com/includes/templates/MY_TEMPLATE/css/sidebox_stylesheet.css" /> </head> ```
28 Dec 2011, 7:24 PM
#63
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Sidebox Anywhere mod - Please Help

Note that I had to add one more line to the code I added to my single_sidebox.php file as follows:

<head>
<base href="http://shop.mysite.com/" />
<link rel="stylesheet" type="text/css" href="http://shop.mysite.com/includes/templates/MY_TEMPLATE/css/sidebox_stylesheet.css" />
</head>

My images from my new products sidebox weren't displaying.. So to fix that, I added the base link so that the images in my new products sidebox display correctly.

28 Dec 2011, 8:19 PM
#64
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Sidebox Anywhere mod - Please Help

DrByte:

It's dangerous to have your server set up in a way that allows external includes like that. Very dangerous.

http://phpsec.org/projects/phpsecinfo/tests/allow_url_include.html
http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-includeThe host is Bluehost and the problem is that I can't get the Sideboxes Anywhere code to run any other way on this site unless I use an iframe. Is there another suggestion for making this work??