Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Dynamic drive like detailed images mod

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 05-18-2005, 12:54 PM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default

Shannon, i had a look at your site, still in working progress. Good luck to it.

The detailed image mod works great at your site too.

regards
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
  #12  
Old 05-18-2005, 12:59 PM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default

i looked at shannons site, she running xcart pro.

She doesn't have the problem with the dropdown list box showing in front of the image????

Anyone knows why this is?
I run normal xcart 4.012 and i have the problem myself.

Maybe someone from xcart knows why this is...
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
  #13  
Old 05-18-2005, 02:10 PM
 
IndieDepot IndieDepot is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 30
 

Default

Weckie,

She is a He. My parents knew what they were getting me into when they named me that back in 1972. *smile*

The dropdown in front of the image is on my site as well. And I thought it was normal for CSS. I have never seen CSS go on top of a drop down...on any webpage i have ever visited or made. I have another site that uses CSS and it does the same thing there.

I figured it was someting we had to deal with.

- MR. Shannon W. Rawls
__________________
- www.TheShotList.com
X-Cart version 4.0.13
PHP 4.3.10
MySQL 4.0.23
Web server Apache
Operation system Linux
Perl 5.008004
XML parser (expat) 1.95.6
Reply With Quote
  #14  
Old 05-18-2005, 02:27 PM
 
zardos zardos is offline
 

Senior Member
  
Join Date: Jun 2004
Location: UK England
Posts: 140
 

Default

Hi weckie

This problem with the dropdown list box showing in front of the image????
is OK in FF it only does it in IE.
__________________
X-Cart V4.0.18
PHP 4.3.10
MySQL Server 4.0.22
Apache/1.3.33 (unix)
OS - Linux
Reply With Quote
  #15  
Old 05-18-2005, 07:47 PM
 
Online Michael Online Michael is offline
 

eXpert
  
Join Date: Mar 2005
Location: Melbourne, Australia
Posts: 273
 

Default

Quote:
Originally Posted by zardos
Hi weckie

This problem with the dropdown list box showing in front of the image????
is OK in FF it only does it in IE.

Damn! Sounds like a complicated fix is needed here.

Just a quick question regarding the thumbnails. I know Weckie had his thumbnails resized to 40X40 (I have mine at 100X100) but it seems to me, and I may be wrong here, that these thumbnails seem to load no quicker than the original full size images themselves. I really haven't noticed any improvement in load times so I'm starting to wonder if we are in fact downloading the full size image and then somehow squeezing it into a 100X100 box. Any potential savings in bandwidth is therefore non existent. Wouldn't it be far better to download the thumbnail and then download the detailed image only when selected? That's how it should work, right?

And while on the subject of image downloads, would everyone here agree that once an image is downloaded that subsequent reloads of the same image should come from cache and not from the server? The reason why I'm bringing this up is because no matter how many times you select to view the same image, the image loads no quicker the last time than the first.
__________________
X-Cart 5.3.5.4
Reply With Quote
  #16  
Old 05-18-2005, 11:12 PM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default

The thumbnails are exactly the same as the full size images only showing smaller as you define in the code.

I will have a look if can get only the thumbnails to display, but i think i need some time here...

About the cache: Isn't this a thing the browser should do??
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
  #17  
Old 05-19-2005, 02:22 AM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default

well i played around a bit, but i can't manage to get the thumbnails since xcart doesn't create thmbnails for the detailed images. (only for the product)
Ofcourse you can create thumbnails for each detailed image but this is a lot of work.

So, i did the following:

next is a new modules/Detailed_Product_Images/product_images.tpl

Code:
{* $Id: product_images.tpl,v 1.12 2004/05/28 12:21:05 max Exp $ *} {*** Created bij www.weckonline.com. NOTE: This line must stay intact for free use. Thanks. Herman Steijn. ***} {if $images ne ""} {capture name=dialog} <CENTER>{$lng.lbl_zoom} {section name=image loop=$images} {if $images[image].avail eq "Y"} {if $images[image].tmbn_url} <font size="5">{%image.index%} {/if} {/if}{/section} {literal} </center> </body> {/literal} </DIV> {/capture} {if $smarty.capture.dialog ne ""} {include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra="width=100%"} {/if} {/if}

This doesn't display images instead of that is displays a number to click on for zooming.
This one will keep the bandwidth low.
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
  #18  
Old 05-20-2005, 04:21 AM
 
Online Michael Online Michael is offline
 

eXpert
  
Join Date: Mar 2005
Location: Melbourne, Australia
Posts: 273
 

Default

Weckie,

Nice compromise mate and another fine effort. Great work! The only thing wrong with using numbers is that you have no idea what the image behind them look like so what does the customer do..? The customer clicks on them all in search for the one they really want to see and as a result, bandwidth usage skyrockets. I think the real fix for this mod would have to be something similar to the following:

1) Alter the database to include a provision for a thumbnail for each and every detailed image.

2) The admin area where detailed images are uploaded needs to include a similar field for the thumbnail. Where no thumbnail is provided, a default image is used (on the customer end) that reads "click to view" or something similar.

3) Thumbnails are displayed in the detailed image dialog as a means to link and display the detailed image.

I know it sounds simple (and it's probably not), but this would be a far better and more effective way of presenting images to the ccustomer. It would also lower the bandwidth, and enable fast page loading times too.

I am no programmer, however, I canБ─≥t see why this couldn't be implemented. You only have to look through this forum to see how clever some people are at solving problems. The talent is here, itБ─≥s perhaps a question of will. So what do you reckon guys (and gals), can it be done? Would this proposed fix be any harder than some of the other forum solution?
__________________
X-Cart 5.3.5.4
Reply With Quote
  #19  
Old 05-21-2005, 06:52 PM
 
Online Michael Online Michael is offline
 

eXpert
  
Join Date: Mar 2005
Location: Melbourne, Australia
Posts: 273
 

Default

Ok,

I found a solution for the Fancy Categories problem showing up on top of the detailed image. In the CSS section of the code add in the text as shown bellow:

Code:
{literal} <style type="text/css"> #showimage{ position:absolute; visibility:hidden; border: 1px solid pink; z-index: 1; } #dragbar{ cursor: hand; cursor: pointer; background-color: #EFEFEF; min-width: 100px; /*NS6 style to overcome bug*/ } #dragbar #closetext { font-weight: bold; margin-right: 2px; } </style>

If the problem persists (see your doctor ), just change z-index:1 to 2, then try 3 and so on until the image layer has greater priority. This solution could also be applied to other objects that get in the way such as flash banners etc.

Unfortunately I don't have a fix for the quantity list box problem but it seems to be the way IE treats select boxes as system objects and doesn't
want to show them under other layers. Seems to be more and more an IE issue the longer I look at it. For anyone who has no list boxes showing in the background, then this issue is no issue at all. The mod will work and display just fine as is.

Hope this helps someone.
__________________
X-Cart 5.3.5.4
Reply With Quote
  #20  
Old 05-28-2005, 01:52 AM
 
golfguy golfguy is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Omaha,NE
Posts: 108
 

Default

Online Michael, your're on the right track. I'm fairly new to x-cart, so I don't know if there is a lot of absolute positioning going on, but the way it works is;

if there are two layers occupying the same x,y corordinate space the layer first in the code shows first, you can override this with zindex.

zindex can be a positive or negitive number. the lowest zindex goes to the bottom.

In the case of this mod no zindex was declared so the drop downs occur in the code first.

Make the zindex in the mod REALLY high, say like 1000. Most programers that use layers set zindex in increments of 50, so they can insert layers in the future without worrying about pecking order.
__________________
Version 4.2.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:14 AM.

   

 
X-Cart forums © 2001-2020