PDA

View Full Version : Burning out need HELP!! Pulling a nonvb PHP script into external page OS-Commerce


Scalemotorcars
01-24-2009, 07:31 PM
HELP!!!!! My brain is starting to fry....... :eek:

OK I figured out how to make a Non-Vb page from digging around. I figured out how to pull in the header, navbar and footer. I even figured out how to pull in basic HTML into the body area. Check it out....

http://www.scalemotorcars.com/forum/externaltest3.php

So for right now the body area is an Iframe. That basically is a hokey way to go about things so I need an experts advice.

I want to pull the OS-Commerce php index script into the page and fuse the two together without the use of the I-frame. All links would have to rotate in that page so I don't have to do the same for all the Cart files. Heres where the I-frame works so perfectly but it looks horrible and I'm concerned about browser compatibility and future support for it.

Heres the link to the stand alone OS-C php script. http://www.scalemotorcars.com/catalog/down_for_maintenance.php its closed until I can figure this out or until someone here has mercy on me. Thanks in advance....

Dismounted
01-25-2009, 02:59 AM
Do you mean something like this? https://vborg.vbsupport.ru/showthread.php?t=62164

Integrating your cart files will be a lot harder, unless you can code the PHP yourself, you will probably need to hire a coder to do this for you.

Scalemotorcars
01-25-2009, 01:12 PM
Thanks Dismounted, Ya thats the one I started with. I did have another question on that template.

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

I might have a way to integrate my cart but I need the non Vb page on the sites root outside the forum root.

I tried changeing the /global.php to /forum/global.php but it didnt work at all. Any ideals...

Also I forgot to mention that the Iframe doesn't work anyway. I can get it to look ok but when someone goes to check out the paypal system boots the transaction. I guess the Iframe creates some kind of security risk so if anyone else wants to try the Ifram save your time. Its not going to work right...

Anyone else have any ideals before I hock grandma's ring to get this done right... :)

Marco van Herwaarden
01-25-2009, 02:20 PM
You should chdir() to the forum homedirectory before including global.

Scalemotorcars
01-25-2009, 04:42 PM
Could you please give me an example.

Voltar
01-25-2009, 04:50 PM
Could you please give me an example.


chdir('/path/to/your/forum/dir/');
require_once('./global.php');

Is that what you meant?

Scalemotorcars
01-29-2009, 08:41 PM
That worked thanks... :up: