kelly34 Posted January 21, 2006 Posted January 21, 2006 Hi, I have installed STS over a new copy of MS2.2 and for some reason when I click to enlarge images no popup image displays. Can anyone help me with this or have any ideas what the problem would be? Thanks for your help Kelly
Megabit Posted January 21, 2006 Posted January 21, 2006 Look in the contributions section. There is a file you must change. The popup .php file has a mistake in it where it defines the window to link to the author's webpage, you must change it to yours. :thumbsup: Hi, I have installed STS over a new copy of MS2.2 and for some reason when I click to enlarge images no popup image displays. Can anyone help me with this or have any ideas what the problem would be? Thanks for your help Kelly
kelly34 Posted January 21, 2006 Author Posted January 21, 2006 Hi, Thanks for your help but I have tried all the bug fixes in the contribs section and nothing works. I have now installed STS Plus and I have the same problem. I have no idea what I am doing wrong.
kelly34 Posted January 22, 2006 Author Posted January 22, 2006 If I set $display_normal_output = 1; the image popups work fine. However I see the STS version and the normal layout of osc directly under that so I get double sites coming up. Does anyone know how to fix this?
kelly34 Posted January 22, 2006 Author Posted January 22, 2006 Finally worked it out. Add the following to STS version 3.0 STEP 1 open catalog/includes/sts_product_info.php Change the file so it looks like this: $template['productsid'] = $product_info['products_id']; // Just for consistende with osC names $template['product_popup_url'] = FILENAME_POPUP_IMAGE . "?pID=" . $product_info['products_id']; Here I have just added one line which returns the url required for the products popup. STEP2 open catalog/includes/sts_templates/product_info.php.html Add the following between the <head> </head> tags: <script language="javascript" type="text/javascript"> <!-- function popupWindow(url) { newwindow=window.open(url,'name','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150'); if (window.focus) {newwindow.focus()} return false; } // --> </script> STEP3 Add these lines further down in the same file where you want the popups to be: <a href="$product_popup_url" onClick="return popupWindow('$product_popup_url')">$imagesmall</a> <a href="$product_popup_url" onClick="return popupWindow('$product_popup_url')">Click to Enlarge</a>
krazee Posted March 28, 2006 Posted March 28, 2006 i tried that and it doesn't open up a new window. it just resizes the current one, displaying the image. does anyone know where the contribution is? i can't seem to find it.
hoellisch Posted February 28, 2007 Posted February 28, 2007 Add: <!--$headcontent--> In the head content on the STS template page. And that´s work!!!!!!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.