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

Additional Images Layout and Location.

Locked

Started by phantomxc on 10 Apr 2008, 5:30 AM · Views: 3,301

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
10 Apr 2008, 5:30 AM
#1
phantomxc avatar

phantomxc

New Zenner

Join Date:
Apr 2008
Posts:
15
Plugin Contributions:
0

Additional Images Layout and Location.

I have been playing around with the additional images and I was wondering if I could get some help achieving the image layout of this site.

http://www.diecastmodelcars.com/2005-red-porsche-carrera-gt-p-97.html

I'll take the car too :)

I like how the main image takes up the whole top section of the page and the additional images are all together right underneath it.

I just figured out how to move the additional images up top and it looks like crap.

http://eternityetchings.com/store/index.php?main_page=product_info&cPath=4_11&products_id=1

Yes I know the images look like crap too I haven't done any professional photos yet.

Any help would be greatly appreciated.

10 Apr 2008, 5:59 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Additional Images Layout and Location.

First you need to matt all your images to the same size like the referenced site has done.

The referenced site is Zen Cart but has some custom coding for this and I suspect that they did not share it with the community

Zen-Venom Get Bitten

10 Apr 2008, 6:14 AM
#3
phantomxc avatar

phantomxc

New Zenner

Join Date:
Apr 2008
Posts:
15
Plugin Contributions:
0

Re: Additional Images Layout and Location.

I can see the custom coding for the images loading in the same location but say I don't really care about that function and was more interested in just the image layout and spacing. They can open up in a new window like they do now.

I can change the images to all the same size no problem.

10 Apr 2008, 6:15 AM
#4
mimran avatar

mimran

New Zenner

Join Date:
Apr 2008
Posts:
68
Plugin Contributions:
0

Re: Additional Images Layout and Location.

well dude!
it is not hard once you play with it a bit
for your main image
simple solution is in your css set the width to 100%
that will automatically force every thing to go down and just keep the main image up the top.

Secondly, in your product info tpl (and i guess you have already done it, bring the extra images code right beneath your main image code)

then in your css for extraimages
use display: inline;

and you are set.

however i notice your image size for thumbnails is coming out different to get a clean look simply make all your images of the same size.

anymore questions just feel free to post i will be checkingup, more than happy to help

regards
mimran

10 Apr 2008, 6:31 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Additional Images Layout and Location.

The switching effect might be the Ajax Image Swapper mod which is available; look in the forum for its support thread.

10 Apr 2008, 6:47 AM
#6
phantomxc avatar

phantomxc

New Zenner

Join Date:
Apr 2008
Posts:
15
Plugin Contributions:
0

Re: Additional Images Layout and Location.

Ya I have been playing with the AJAX Image Handler and for what ever reason I can't get it to work correctly for me. Stupid SQL :(

Thanks for the quick responses!

time to play around with more code :)

10 Apr 2008, 7:58 AM
#7
phantomxc avatar

phantomxc

New Zenner

Join Date:
Apr 2008
Posts:
15
Plugin Contributions:
0

Re: Additional Images Layout and Location.

Wow this thing is really hating me right now, and I am hating it back :(

I go into stylesheet.css and play around a little bit trying to get the desired effect. Change a thing or two and then my menu does this.

So I delete everything I have done and can't get that stupid yellow bar to go away. So I finally restored from a timemachine backup (I love my external hard drive) the stylesheet file and upload and its gone? So I am thinking that hey maybe I just screwed something up and didn't notice it.

Go on to play with some more changes and do the following

#productAdditionalImages {
margin: 0;
padding:0;
float:right;
width:40%;
display: inline;
}

and it actually changes the layout of the photos to something more like the desired effect. So I change the float to center and then thats when that flippin yellow bar pops up again. I then changed it back to float:right; and the bar was still there. THAT WAS THE ONLY THING I CHANGED?

Getting very angry, I just delete the stylesheet from my server just to see what would happen. It fixes it? I then load the original that I undid all my changes to and the bar is back! So I have to restore the stupid file AGAIN!

Can anyone enlighten me as to what is going on? This is driving me crazy!

10 Apr 2008, 8:04 AM
#8
mimran avatar

mimran

New Zenner

Join Date:
Apr 2008
Posts:
68
Plugin Contributions:
0

Re: Additional Images Layout and Location.

one other quick thing, in the admin section

configuration
images
images in a row: change that to suit your need as well so e.g. change it to 7

that will fix some of it.

10 Apr 2008, 8:13 AM
#9
phantomxc avatar

phantomxc

New Zenner

Join Date:
Apr 2008
Posts:
15
Plugin Contributions:
0

Re: Additional Images Layout and Location.

Just to add to the fun, now any time I have a stylesheet.css file in my template folder the menu adds the great yellow bar and becomes all jacked up.

I restored from the file and even opened the original zip where the file came from.

Still there :(

10 Apr 2008, 8:42 AM
#10
mimran avatar

mimran

New Zenner

Join Date:
Apr 2008
Posts:
68
Plugin Contributions:
0

Re: Additional Images Layout and Location.

dude
did changing number of additional images in configuration helped your cause?

also with the style sheet

try this rather than what you have

.additionalimages{
// your code here
}

10 Apr 2008, 4:04 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Additional Images Layout and Location.

"change the float to center"
You can only float left or right; specifying "center" would cause a css error.
To center the contents of an element, use
text-align: center;

Your stylesheet_main.css has this:

#productAdditionalImages {margin:10px; border:1px solid #535353; padding:10px 0px;}

#productAdditionalImages .additionalImages {text-align:center;}

#productAdditionalImages .additionalImages a {color:#C00505; font-weight:bold;}

I didn't see any conflicts in your other two major stylesheets, or the mod stylesheets, but that's not to say there aren't any. The more separate files you have (unless they are tightly focused like styles_AJAX_image_swapper.css), the easier it is to miss conflicts.

Your template maker has changed some of the standard ids and classes, so some standard suggestions may not apply to you, or there may be unknown styling that overrides the standard suggestions. At least they have not eliminated or encrypted most of the standard identifiers, as many Template Monster templates do.

22 Feb 2010, 5:48 AM
#12
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Additional Images Layout and Location.

argh this is the next thing i'd like to figure ot on my site but i'm not looking forward to it

i just first thing i have to do is change the size on my main image being displayed

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

22 Feb 2010, 6:17 AM
#13
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Additional Images Layout and Location.

ok i changed the size of my main image now but i can't move my additional images under my main image as tabbed products pro won't let that happen

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

28 Feb 2010, 7:43 PM
#14
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Additional Images Layout and Location.

ok i turned off the additional images tab and now the additional images are plastered next to the main image not under it? any ideas

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods