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

FORGET all the detailed images THIS IS THE ONE

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 03-28-2005, 01:06 AM
 
weckie weckie is offline
 

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

Default

People who are really interested in buying your products, will disable their blocker. Otherwise they are not really interested. Its just a commercial thing. Dont worry about the blockers...
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
  #12  
Old 03-28-2005, 07:10 AM
 
sstillwell@aerostich.com sstillwell@aerostich.com is offline
 

eXpert
  
Join Date: Jun 2004
Location: Duluth, MN
Posts: 242
 

Default

Wow! Impressive. I like it a lot, but I don't think I would use the onmouseover. I would use onclick. Things poping up "unexpectedly" may resemble spyware activity, besides my FF blocked the popup.

I do like it though esspecially auto closing the window when going out of focus.
__________________
No longer using Xcart, was good while it lasted.
Reply With Quote
  #13  
Old 03-28-2005, 07:20 AM
 
weckie weckie is offline
 

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

Default

Yeah, thats possible too, just change the onmouseover....
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
  #14  
Old 03-28-2005, 07:30 AM
 
g0t0pless g0t0pless is offline
 

eXpert
  
Join Date: Jul 2003
Posts: 360
 

Default

I wouldn't want to turn away a single customer because they "thought" I was creating popups on their computer. Popups are the WORST thing to happen to the internet.
__________________
4.1.7
X-Cart Gold
Product Configurator Module
Advanced Order Management Module
RMA Module
Feature Compare Module
Blue Dream theme by 7Dana.com
Reply With Quote
  #15  
Old 03-28-2005, 11:08 AM
 
weckie weckie is offline
 

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

Default new version

Well here's a new one. This one will popup even if there is a popupblocker activated. (SO THIS IS REALLY THE ONE)

Here's what to do, it is very simple. In your modules/Detailed_Product_Images directorie, first backup your PRODUCT_IMAGES.TPL
Then create a new one with this data, and thats it. THATS REALLY it. So very simple, even the newbies can do this.

Code:
{* $Id: product_images.tpl,v 1.12 2004/05/28 12:21:05 max Exp $ *} {if $images ne ""} {capture name=dialog} <CENTER> <DIV {literal}<head><script language="JavaScript" type="text/javascript"> // hier definieer je alle afbeeldingen var afbeeldingen=new Array(){/literal} {section name=image loop=$images} {if $images[image].avail eq "Y"} {if $images[image].tmbn_url}{literal} afbeeldingen[{/literal}{%image.index%}{literal}]=["{/literal}product_image.php?imageid={$images[image].imageid}{literal}", "#"] // "pad en naam van de foto", "eventuele hyperlink" {/literal}{/if}{/if}{/section}{literal} var voorladen="ja" // "ja" of "nee" var optlinktarget="" // optioneel: hier kun je een target invullen bij framesgebruik var beeldrandbreedte=0 var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.2)" // hieronder niets wijzigen if (voorladen=="ja"){ for (x=0; x<afbeeldingen.length; x++){ var ditbeeldje=new Image() ditbeeldje.src=afbeeldingen[x][0]}} function beeldcode(dezeafbeelding){ var beeldhtml="" if (dezeafbeelding[1]!="") beeldhtml='<a href="'+dezeafbeelding[1]+'" target="'+optlinktarget+'">' beeldhtml+='[img]'+dezeafbeelding[0]+'[/img]' if (dezeafbeelding[1]!="") beeldhtml+='</a>' return beeldhtml} function wijzigbeeld(beeldplaatsing, beeldindex){ if (document.getElementById){ var imgobj=document.getElementById(beeldplaatsing) if (imgobj.filters && window.createPopup){ imgobj.style.filter=filterstring imgobj.filters[0].Apply()} imgobj.innerHTML=beeldcode(afbeeldingen[beeldindex]) if (imgobj.filters && window.createPopup) imgobj.filters[0].Play() return false}} </script></head> <body>{/literal} {section name=image loop=$images} {if $images[image].avail eq "Y"} {if $images[image].tmbn_url} {literal} <a href="#" onMouseover="wijzigbeeld('beeldplaatsing',{/literal}{%image.index%}{literal})"> [img]{/literal}product_image.php?imageid={$images[image].imageid}{literal}[/img]</a> {/literal}{/if}{/if}{/section}{literal} <center> <div id="beeldplaatsing" style="width:1px;height:1px"></div> </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}


SEE IT LIVE http://www.weckonline.nl


Tell me what you think of it....

EASTER was very productive for me....

Greetz
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
  #16  
Old 03-28-2005, 11:12 AM
 
weckie weckie is offline
 

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

Default

http://weckonline.nl.server1.firstfind.nl/weckonline/product.php?productid=16144&cat=254&page=1

sorry, forgot a product......
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
  #17  
Old 03-28-2005, 12:25 PM
 
zardos zardos is offline
 

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

Default

Hi weckie

Wow!!! Very Impressive mod, and i think the second way looks better. But how do you change where you would like the image to popup, say just above the thumbnail.

Very nice work
__________________
X-Cart V4.0.18
PHP 4.3.10
MySQL Server 4.0.22
Apache/1.3.33 (unix)
OS - Linux
Reply With Quote
  #18  
Old 03-28-2005, 12:48 PM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

doesnt seem to work in FF 1.02.

I rollover and it appears, but the image appears underneath the text for each of the sections below. the image and text overlap.

anyone else have this issue?
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
  #19  
Old 03-28-2005, 12:55 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Yea, same for me in Firefox. The first version crashes Firefox, the second one has the issues mentioned above.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #20  
Old 03-28-2005, 01:02 PM
 
weckie weckie is offline
 

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

Default

i am sorry, i only have netscape and IE, in those it works perfect. Just keep in mind that most (normal) customers dont even know that there are other browsers. I dont know how to change the mod to make it suitable for third party browsers.

And uhh, ZARDOS, i will have a look at it.....
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
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 04:34 AM.

   

 
X-Cart forums © 2001-2020