Forums / General Questions / I need coding help BAD...... :(

I need coding help BAD...... :(

Locked
Results 1 to 4 of 4
This thread is locked. New replies are disabled.
22 Sep 2006, 00:59
#1
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

I need coding help BAD...... :(

I posted this before with only one response.. I wrote a script that allowed me to access the zencart from a different folder using my current php scripted website. I tried the same thing for the side boxes (since my website has side boxes) so that instead of the side boxes appearing in the zencart frame it appears on the website frame. I get an error saying

You don't have permission to access /shoppingcart/includes/modules/sideboxes/information.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



but the script that accesses the zencart works... I am not the best coder... but i have an idead how to do things.. the permissions on those folders are all set ok... any ideas how to make this work?

i really need help.. this changes the entire layout of my site if I have to keep the boxes inside the zencart frame... thanks in advance
22 Sep 2006, 06:17
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: I need coding help BAD...... :(

First off, it is not the recommended course to use another page (probably not a php page) to attempt to link Zen Cart functions to. The recommended approach is to use Zen Cart as your opening page, and make it match the looks of any page the you currently have , ultimately scrapping your current page in the process.

You can look in the downloads area at the mod see it here and you can model your wants after this.
22 Sep 2006, 06:30
#3
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: I need coding help BAD...... :(

the original page is php.. and i would prefer zencart look like that page... but instead of creating a theme.. i just wrote a simple few line script that calls up the pages i need...

<script type="text/javascript">
function resizeMe(obj){
docHeight = stats.document.body.scrollHeight
obj.style.height = docHeight + 10 + 'px'

}
</script>

<iframe name="stats" onload="resizeMe(this)" Width="750" style="height:200px" name="stats" frameborder="0" src="../shoppingcart/index.php" align="center">
Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>

simple right....
easier to write that than to code a new theme.. any way.. that works.... pulls up the cat perfectly.. exactly how i want it.. the problem is the boxes on zen cart i am trying to pull up on the boxes in my main php page.. and i get the errors i listed about not having permission..........
the code in your link would be great for an html site..... still searching for answers... thanks...
22 Sep 2006, 06:47
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: I need coding help BAD...... :(

easier to write that than to code a new theme

Not fully correct, as you are finding out, due to sessions for security that Zen Cart creates and uses, you will continue to experience errors of one type or another if you continue down this path. Not that they can not be worked around but the time that you will eventually invest in this would be better spent porting your design over to ZenCart.