Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Adding HTML content to sidebox areas

Locked

Started by shackle on 19 Aug 2006, 10:37 AM · Views: 4,028

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
19 Aug 2006, 10:37 AM
#1
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Post #1 by shackle

Well heres the deal adding a new sidebox won't work for me I need to add HTML content (.gif fireworks menu) to my left sidebox area without it being inside a sidebox.

Also it would be ideal if I could actually add this menu to the leftside of my site in the background area. I moved the site to the right so there is a nice area for a MENU just can't find the right place or file to add the HTML menu.

Either will help, but the 2nd idea would work best for me. I tried inserting HTML code this way (haha yea it's noobie I know): <div style="position: absolute; top: 21%; left: -3%; width: 229px; height: 410px; z-index: 1"></div> It worked well however at different resolutions it screws the site because the template doesn't know it's there.

19 Aug 2006, 5:52 PM
#2
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Post #2 by shackle

Is this possible I see it done with the headers often just thought this would work the same way?

19 Aug 2006, 7:58 PM
#3
kobra avatar

kobra

Black Belt

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

Post #3 by kobra

You can try adding it to the body tag in the css and you will be responsible for the positioning & style of same there also

Zen-Venom Get Bitten

19 Aug 2006, 9:10 PM
#4
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Post #4 by shackle

Um yea tired it doesn't seem to work in the css. Thanks though.

Would this be done in a TPL file like the banner I seen the support forum on how to add HTML banners to tpl_header I just need to know which file, and where to add the code anyone have any ideas?

20 Aug 2006, 1:00 AM
#5
kobra avatar

kobra

Black Belt

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

Post #5 by kobra

You can add it there but it will not be positioned where you had posted

Zen-Venom Get Bitten

20 Aug 2006, 4:11 PM
#6
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Post #6 by shackle

Do you mean TPL_header just saying thats how others add there own header banners I don't need it in the header. I was thinking like TPL_left or TPL_main_page one of those files might work? Tired them, but don't know where to add the code get pharse errors. Also tired some files in moduels couldn't get any of them to work either. Has anyone ever done anything like this?

So basically I need to know which file this can be done with, and where I should add the code sorry if i'm confusing people.

Thanks for the help though Korba.

20 Aug 2006, 4:46 PM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,761
Plugin Contributions:
0

Post #7 by Kim

Exactly where on the page do you want this to be?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

20 Aug 2006, 4:54 PM
#8
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Post #8 by shackle

Left side in the background area. I moved the whole site to the right.

If that can't be done then inside the sidebox area without being inside of a sidebox :)

Thanks hope this helps.

21 Aug 2006, 4:45 AM
#9
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Post #9 by shackle

Can this be done? Or am I not being clear enough about what I need done?

Let me know.

Thanks

21 Aug 2006, 5:05 AM
#10
drbyte avatar

drbyte

Sensei

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

Post #10 by drbyte

I'm sorry, the various descriptions you've given so far don't make sense to me.

Perhaps re-explaining from scratch so that a tired mind can comprehend, and providing a link to where this can be seen, might help.

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

21 Aug 2006, 5:21 AM
#11
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Post #11 by shackle

Ok what I want to do is add HTML code to the left side of my site in the background area.

http://www.formulaexo.com/shopexo/

Notice the menu on the left side that's how I want it however I rigged that with sloppy HTML code so it would be displayed there. ```

<div style="position: absolute; top: 21%; left: -3%; width: 229px; height: 410px; z-index: 1"></div> ```

And that doesn't work when your resolution is changed it messes up.

So I wanted to add this content (fireworks .gif menu which requires HTML to work right) To the background left side via TPL files or where ever it can with be done so the template knows it's there and works correctly at different resolutions.

If this still confuses you let me know : )

21 Aug 2006, 5:46 AM
#12
drbyte avatar

drbyte

Sensei

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

Post #12 by drbyte

If you want content to appear "outside" the body of the Zen Cart-generated site, you'll have to use positioning.

In terms of "where" to put the code, why not just put it in a new left sidebox?

the "best" place depends on what code you finally use to display it. What you are using right now is ... well ... not good.

If you're bent on having it outside the store area, the journey ahead will be interesting...

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

21 Aug 2006, 5:54 AM
#13
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Post #13 by shackle

If you're bent on having it outside the store area, the journey ahead will be interesting...

I'm willing to try if anyone has the time, and will to help me. Um If it had to be in the sidebox area could it be done so it isn't inside a sidebox?

21 Aug 2006, 6:44 AM
#14
drbyte avatar

drbyte

Sensei

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

Post #14 by drbyte

Zen Cart draws its content via tpl_main_page.php

Inside that, it calls content for the header, then the "left column", then the "center section", then the "right column", and then the footer.

You've got ALL of that set to show up in the middle of the screen, with whatever amount of space the customer sees on the left/right based on their screen resolution.

If you want to put something in the left column and then use CSS to push it outside the main content area, go ahead. You will lose the ability to expand your center section content into the left column. If you want to put your menu code into the footer, and then reposition it up and left from there, I guess that'd work. To do this, stuff it somewhere in tpl_footer.php, and wrap the appropriate block tags around it so you can relocate it happily.

It all depends on browser compatibility. The challenge of getting all browsers to honour your positioning requests will be fun I'm sure.

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