Include shop to site

Guest

Avatar: Guest

2006-04-16 10:15

Hi. Its that possible to include this shop to site? im tryin to do this:

<?php include("q.cart/index.php"); ?>

But get this error:

Warning: main() [function.main]: open_basedir restriction in effect. File(/config/general.php) is not within the allowed path(s): (/home/web/USER/q.cart/index.php on line 10

Warning: main(config/general.php) [function.main]: failed to open stream: Operation not permitted in /usr/home/web/USER/q.cart/index.php on line 10

Fatal error: main() [function.require]: Failed opening required 'config/general.php' (include_path='.:') in /usr/home/web/USER/q.cart/index.php on line 10

Please help me... thanks.. QUICK CART IS BEST :)

Till

No avatar

2006-04-16 11:04

Hi

the easiest (and maybe only) way is to use an Iframe. Check:

http://shop3.cylog.de
and
http://shop2.cylog.de

If you use the SSI script II from Dynamic Drive, you will have automatique iframe adjustment. No scrollbars will show up. for the javascript check:

http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm

Good luck

Till

Guest

Avatar: Guest

2006-04-16 15:10

Yeah i know but, the url will not change.

src

No avatar

2006-10-24 01:49

Hi Till,

I drove myself crazy trying to figure out how you got your site to work with an IFRAME and I couldn't get mine to go with the exact same code.

Turns out, I didn't have the same code!

In Opera 9, using the code directly from http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm, the page would just come up blank.

Checking your source code line by line, I realized you had a slight change that made all the difference:

was:

var FFextraHeight=getFFVersion>=0.116 //extra height in px to add to iframe in FireFox 1.0+ browsers



should be:

var FFextraHeight=parseFloat(getFFVersion)>=0.116 //extra height in px to add to iframe in FireFox 1.0+ browsers



I don't know what that does, but I do know that now it means I can integrate QuickCart into my existing site.

Thanks!

src

No avatar

2006-10-24 03:17

Oops, sorry, had the wrong line of code that is the real change:

In function resizeIframe(frameid)
was:

 if (currentfr && !window.opera){ 



should be:

 if (currentfr && !window.xxx_opera){ //changed by T.Schuster: now Opera ver.9beta will work 



Back to top
about us | contact