photo pop-ups

nam

Avatar: nam

2007-06-12 17:32

Hi

I've done a quick search the forum for this problem but couldn't find anything. Excuse me if I'm wrong.

I need to disable the pop-up windows when I click on a photo for either categories or products or any other page. I've had a quick look through the code but can't seem to find what I'm looking for...

Can somebody please tell me which bits of code I need to comment out or remove?

cheers,

nam

» Quick.Cart v2.x

do, or do not - there is no 'try' (Yoda)

merci

No avatar

2007-06-13 08:42

nam - you should change links or remove them, for example if you don't want pop-up window in detail page of product, open file templates/products_details.tpl and change or remove <a>...</a> :

<a href="javascript:windowGallery( $aList[iPhoto], $aData[iProduct], 1 );">...</a>


The same you can do in file templates/contents_details.php

nam

Avatar: nam

2007-06-13 09:32

Hi Merci,

thank you merci for your help

I'm sure I tried that but I must have missed something.

Cheers

do, or do not - there is no \\\'try\\\' (Yoda)

nam

Avatar: nam

2007-06-13 16:34

It does not work...

Sorry, but I am not using version v2.xx - I am using version v1.4

In this version there are no files called products_details.tpl (NOTE .TPL - as you mentioned above) or contents_details.php (NOTE .PHP - as you mentioned above)

I've looked and removed the "a href" link in 'products_more.tpl' and 'contents_more.tpl' but it still loads the 'javascript:windowGallery' !!! I just don't understand why it doesn't work

I am using the 'Loaded' version with TinyMCE loaded, in case that makes a difference

nam

do, or do not - there is no 'try' (Yoda)

merci

No avatar

2007-06-14 12:32

nam - I'm not sure If I understand you properly...If you don't want pop-up window in details page of products (this photo next to description), open file products_more.tpl and change this

<div class="photo"><a href="javascript:windowGallery( $aList[iFile], $aData[iProduct], 1 );"><img src="$aList[sPhotoSmall]"  alt="$aList[sDescription]" title="$aList[sDescription]" /></a></div>

for this

<div class="photo"><img src="$aList[sPhotoSmall]"  alt="$aList[sDescription]" title="$aList[sDescription]" /></div>


I checked it in Q.C v 1.4 (I'm not sure if in Loaded version it is the same).

nam

Avatar: nam

2007-06-14 12:40

I did take out the part which was "<a href="... etc
but the photo still poped-up when I clicked on the photo link.
I don't understand it - it should have worked!!

Either there's a bug... Or I'm doing something stupid... Or...

do, or do not - there is no try (Yoda)

Back to top
about us | contact