ronrrico Posted December 18, 2009 Share Posted December 18, 2009 (edited) Finally got it right! What this module will do for you... This is not your tipical translator that translates your entire site and distorts it to the point that it looks like a "Picasso". For those who have tried several translators on their osc sites, (you know what I mean by that. This module will only translate what you want it to translate, this package includes 15 different languages. It is powered by a Google API. English, Spanish, French, Italian, Portuguese, German, Dutch, Greek, Russian, Chinese(Simplified), Chinese(Traditional), Japanese, Korean, Hindi, Arabic, There are an additional 25 or so languages you can add to this. I will add more as time permits. This package contains the necessary instructions to install translator for your product description in product_info.php. Estimate time to install is 2min. THAT SIMPLE! But why stop there, you can add this translator to; Reviews, Policies, FAQs, About Us, Information pages and/or any other text on your site. Feel free to add on to this cool contribution. Credit go's everyone on this one, bits & pieces of different scripts made this one up,,, But never could of done it without help from my buddy (Sujeet) Thanks. :) Enjoy Guys, Ronnie P.s, A Screenshot and Demo link will be included in this package Edited December 18, 2009 by ronrrico Quote Link to comment Share on other sites More sharing options...
mr_absinthe Posted December 18, 2009 Share Posted December 18, 2009 Just to let you know, I went to your demo site, clicked the flag and... nothing. I've even tried to load a different product, result is same - no translation. Am I missing something? But being average visitor / potential customer, I should not need some extra instructions I guess. Using FF 3.5.6 if that helps. Quote Absinthe Original Liquor Store Link to comment Share on other sites More sharing options...
ronrrico Posted December 18, 2009 Author Share Posted December 18, 2009 Sorry about that, I was corrently updating this file. Try now....and let we know. http://youregiftbasket.com/hardware-mice-microsoft-intellimouse-p-3.html Im trying to correct an issue between jquery.prettyPhoto.js & prototype1.6.1.js I can't get prettyPhoto & the translator to work at the same time... It's eather one or the other. I dont know very much about jquery or prototype, If someone out there knows how to fix these type of bus, please do so. We will all apreciare it! Ronnie... Quote Link to comment Share on other sites More sharing options...
ronrrico Posted December 18, 2009 Author Share Posted December 18, 2009 Thank you Bert for the heads up, Been there, :'( I also tried to apply the fix, var $j = jQuery.noConflict(); with no luck. Like I said in my prior post, I dont know much about jquery or prototype code, The fix probably works, I just can't get it to work on this mod. Thanks Burt, Ronnie Quote Link to comment Share on other sites More sharing options...
ronrrico Posted December 18, 2009 Author Share Posted December 18, 2009 basically, instead of using $ for the jquery, use jquery instead - it should be fine as I got some conflicts worked out on a different script... Eg; jQuery("input:radio[name='os1']").click(function() { var show = jQuery(this).attr("value"); jQuery("#imageContainer").html('<img src="images/style' + show + '.gif" width="300" height="400" />'); }); Not; $("input:radio[name='os1']").click(function() { var show = $(this).attr("value"); $("#imageContainer").html('<img src="images/style' + show + '.gif" width="300" height="400" />'); }); God bless that brain of yours Burt! I works! Thank a mill!!!!! Issue fixed when using prettyPhoto popups. ///Replace: <script type="text/javascript"> $(document).ready(function(){ $("a[rel^=prettyPhoto]").prettyPhoto({ animationSpeed: 'fast', /* fast/slow/normal */ padding: 40, /* padding for each side of the picture */ opacity: 0.00, /* Value betwee 0 and 1 - was before 0.35 */ showTitle: true, /* true/false */ allowresize: true, /* true/false */ counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */ theme: 'dark_rounded' /* light_rounded / dark_rounded / light_square / dark_square */ }); }); </script> ///With: <script type="text/javascript"> jQuery(document).ready(function(){ jQuery("a[rel^=prettyPhoto]").prettyPhoto({ animationSpeed: 'fast', /* fast/slow/normal */ padding: 40, /* padding for each side of the picture */ opacity: 0.00, /* Value betwee 0 and 1 - was before 0.35 */ showTitle: true, /* true/false */ allowresize: true, /* true/false */ counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */ theme: 'dark_rounded' /* light_rounded / dark_rounded / light_square / dark_square */ }); }); </script> And you should be good to go. I will Upload a new package with this update fix tonight........ Contribution can be downloaded here: http://addons.oscommerce.com/info/7167 Thanks agin Bert! Quote Link to comment Share on other sites More sharing options...
bhbilbao Posted December 19, 2009 Share Posted December 19, 2009 clicking the flag nothings happens. Sorry Ronrrico , but what archive or archives should be modified??? EventDispatcher.js??? prototype1.6.js??? translater.css??? product_info.php??? The "osc_translater" folder must be copied as it in the root or the archives inside it????? Quote Link to comment Share on other sites More sharing options...
ronrrico Posted December 19, 2009 Author Share Posted December 19, 2009 clicking the flag nothings happens. Sorry Ronrrico , but what archive or archives should be modified??? EventDispatcher.js??? prototype1.6.js??? translater.css??? product_info.php??? The "osc_translater" folder must be copied as it in the root or the archives inside it????? The "osc_translater" folder must be uploaded to the root. The mod listed above is for product_info.php This is only if you have prettyphoto installed, otherwise you should not have that code in your product_info.php at all. for testing: upload product_info_vanilla.php to your root and go to: http://yoursite.com/product_info_vanilla.php ad see if it works from there. If it dose, this means you have other code confliction with prototype in product_info. let me know how it goes...Hala Madrid! :D Quote Link to comment Share on other sites More sharing options...
bhbilbao Posted December 19, 2009 Share Posted December 19, 2009 Yes , i saw where to put the folder on href="osc_translater/translater.css" But it dont works. In my root I have 2 folders lightbox and js. And inside the lightbox/ folder the archive prettyPhoto.js $(document).ready(function(){ prettyPhoto.init(); }); prettyPhoto = { options : { 'animationSpeed' : 'fast', /* fast/normal/slow */ 'padding' : 0 /* padding for each side of the picture */ }, init : function(){ // Find all the images to overlay prettyPhoto.imagesArray = []; $("a[rel^='prettyOverlay']").each(function(){ prettyPhoto.imagesArray[prettyPhoto.imagesArray.length] = this; $(this).bind('click',function(){ prettyPhoto.open(this); return false; But is diferent to the code you write before. I tried to modify it but it donst work. I have other contribution instaled: "Increase and decrease the size of the text in the description of the products - Font size By APOPULAR.zip" I tried playing with the <divs> and it translate half of the text. P.D: Referente a "Hala Madrid!" "Soy más informático que futbolero" :D Quote Link to comment Share on other sites More sharing options...
bhbilbao Posted December 19, 2009 Share Posted December 19, 2009 For people that dosnt work this contribution Im were using other translate box: <td class="main"><script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=es&w=160&h=60&title=&border=&output=js"></script></td> But this looks better. Quote Link to comment Share on other sites More sharing options...
bhbilbao Posted December 19, 2009 Share Posted December 19, 2009 Now it works!!!!! Do this contribution translate all words??? I see that some latin words like "magnética" with the acentuation do not traslate. ¿? But now the lightbox popup dosnt work. And Pricematch contribution works extrange. Quote Link to comment Share on other sites More sharing options...
ronrrico Posted December 19, 2009 Author Share Posted December 19, 2009 (edited) For people that dosnt work this contribution Im were using other translate box: <td class="main"><script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=es&w=160&h=60&title=&border=&output=js"></script></td> But this looks better. Ok, replace your code with this: jQuery(document).ready(function(){ prettyPhoto.init(); }); prettyPhoto = { options : { 'animationSpeed' : 'fast', /* fast/normal/slow */ 'padding' : 0 /* padding for each side of the picture */ }, init : function(){ // Find all the images to overlay prettyPhoto.imagesArray = []; jQuery("a[rel^='prettyOverlay']").each(function(){ prettyPhoto.imagesArray[prettyPhoto.imagesArray.length] = this; jQuery(this).bind('click',function(){ prettyPhoto.open(this); return false; Or try replacing your code with the one I posted above. Suerte! Ronnie Edited December 19, 2009 by ronrrico Quote Link to comment Share on other sites More sharing options...
bhbilbao Posted December 19, 2009 Share Posted December 19, 2009 I tried two manners but nothing. I have problems with the products description that has html code like <li> or <div>. This part dosnt translate. In other hand, it translate half the normal text. i dont know why worked for a moments, but nothing now. Quote Link to comment Share on other sites More sharing options...
ronrrico Posted December 19, 2009 Author Share Posted December 19, 2009 I tried two manners but nothing. I have problems with the products description that has html code like <li> or <div>. This part dosnt translate. In other hand, it translate half the normal text. i dont know why worked for a moments, but nothing now. Yeah, this translater doese not support Html like <div> & <Il> for the time being. Maby someone with the brains like member "Spooks" :D can update this translater to be compatible with Html. Regarding your comment "it translate half the normal text" This is not accurate: Check your spelling. This translater is powered by Goggle API, accuracy rate of 75-%85. So no matter what translater mod you use, you will not get a better translation than this and will ony get better as google collects more and more data every day. The next best thing to Google API is Yahoo beblefish traslater API, besides these two API's, there is nothing even close to compare in accuracy that I know of. Make sure you apply the fix I gave you to any javascript relating to jquery you have in the pages where you are going to place your translater. If you see this: $(document).ready(function(){ Change to this: jQuery(document).ready(function(){ Just replace $ with jquery and you should be fine. You said something adout your Pricematch contribution works extrange, was it distortes or something out of place? This bug fix may solve the problem: open your prettyphoto css file and find: display: inline; And change it to this: display: inline-block; I the problem still persists, check any other css file linking to this page like (example) stylesheet.txt or the css for the pricematch mod it it has one and do the same. Good luck! Quote Link to comment Share on other sites More sharing options...
mr_absinthe Posted December 19, 2009 Share Posted December 19, 2009 Your demo site seems to be working now, well done! Quote Absinthe Original Liquor Store Link to comment Share on other sites More sharing options...
ronrrico Posted December 19, 2009 Author Share Posted December 19, 2009 Your demo site seems to be working now, well done! Thank you buddy, Ultimate Osc Translator runs on a prototype library and it was conflicting with my prttyphoto module that runs on a jquery library. Thanks to post by bert Burt yesterday, I was able to fix that issue... Today I load a new package with a addon "Product Reviews" this add-on will Translate your customers reviews at the click of a buttom. See demo here: http://youregiftbasket.com/hardware-mice-microsoft-intellimouse-pri-3.html?reviews_id=2 Cheers! Quote Link to comment Share on other sites More sharing options...
bhbilbao Posted December 19, 2009 Share Posted December 19, 2009 I dont knew that translate the 80% of the test. One problem less. These are my scripts before the </head> tag: <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150') } function popupPricematch(url) { window.open(url,'popupPricematch','toolbar=no,status=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=500,height400,screenX=10,screenY=150,top=10,left=150') } //--></script> <?php // MVS Shipping Estimator Start ?> <script language="javascript" type="text/javascript"><!-- function estimatorpopupWindow(URL) { window.open(URL,'productsshippingestimator','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600') } //--></script> <?php // MVS Shipping Estimator End ?> <script type="text/javascript"> function TamFonte(num, id) { document.getElementById(id).className = "ft"+num; } </script> <link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" /> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script> <!-- Light Box J Query Add on BOF --> <link rel="stylesheet" href="lightbox/prettyPhoto.css" type="text/css" title="prettyPhoto main stylesheet" charset="utf-8" /> <script src="lightbox/jquery-1.2.3.pack.js" type="text/javascript" charset="utf-8"></script> <script src="lightbox/prettyPhoto.js" type="text/javascript" charset="utf-8"></script> <!-- Light Box J Quesry Add on EOF --> I replaced $(document).ready(function(){ to jQuery(document).ready(function(){ on pretyphoto.js The translator works fine. But the popup photo doesn´t work (its open in other tab or window) I think that the problem is the archive prototype1.6.js. Could be a problem having diferent versios of it??? If I remove the line <script type='text/javascript' src="/osc_translater/prototype1.6.js"></script> of your code, popup prety photo works fine but not the translator. I also try to write the scripts before the <head> tag. Also renaming src="/osc_translater/prototype1.6.js to src="js/prototype.js Only works the translator or the popup. Quote Link to comment Share on other sites More sharing options...
ronrrico Posted December 19, 2009 Author Share Posted December 19, 2009 I dont knew that translate the 80% of the test. One problem less. These are my scripts before the </head> tag: <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150') } function popupPricematch(url) { window.open(url,'popupPricematch','toolbar=no,status=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=500,height400,screenX=10,screenY=150,top=10,left=150') } //--></script> <?php // MVS Shipping Estimator Start ?> <script language="javascript" type="text/javascript"><!-- function estimatorpopupWindow(URL) { window.open(URL,'productsshippingestimator','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600') } //--></script> <?php // MVS Shipping Estimator End ?> <script type="text/javascript"> function TamFonte(num, id) { document.getElementById(id).className = "ft"+num; } </script> <link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" /> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script> <!-- Light Box J Query Add on BOF --> <link rel="stylesheet" href="lightbox/prettyPhoto.css" type="text/css" title="prettyPhoto main stylesheet" charset="utf-8" /> <script src="lightbox/jquery-1.2.3.pack.js" type="text/javascript" charset="utf-8"></script> <script src="lightbox/prettyPhoto.js" type="text/javascript" charset="utf-8"></script> <!-- Light Box J Quesry Add on EOF --> I replaced $(document).ready(function(){ to jQuery(document).ready(function(){ on pretyphoto.js The translator works fine. But the popup photo doesn´t work (its open in other tab or window) I think that the problem is the archive prototype1.6.js. Could be a problem having diferent versios of it??? If I remove the line <script type='text/javascript' src="/osc_translater/prototype1.6.js"></script> of your code, popup prety photo works fine but not the translator. I also try to write the scripts before the <head> tag. Also renaming src="/osc_translater/prototype1.6.js to src="js/prototype.js Only works the translator or the popup. Ok Paisano, let's try this again 1). I see you are working with 2 differant versions of prototype at the same time. prototype.js that I see in your code snippet and prototype1.6.js that I supplyed with with mod. This can be a problem........ 2).You said I replaced $(document).ready(function(){ to jQuery(document).ready(function(){ on pretyphoto.js No, change it back to $, you do not mod anything in pretyphoto.js You do this change in product_info.php You should have a piece of javastript pertaining to prettyphoto in product_info.php You will have to do the change fron $ to jquery about 2 to 3 times, depending on what version of prettyphoto you are using. Then your translater and prettyphoto will work together,,, I hade the same problem and this is how I solved it. Try this for now, Do me a favor, remove this mod completely from your site, tonight I will upload to oscommerce a new improved version with somee bug fixes and ad-ons. + a new addon "Product Reviews", this add-on will Translate your customers reviews at the click of a buttom But you need to remove the old version, because filename will be differant do to a spelling error i had in the prior version. Also included is the latest version or prototype 1.6.1 Quote Link to comment Share on other sites More sharing options...
bhbilbao Posted December 20, 2009 Share Posted December 20, 2009 You do this change in product_info.phpYou should have a piece of javastript pertaining to prettyphoto in product_info.php This is the other code in may product_info.php: // Light Box J Query with ultra Pics 2.08 Add on BOF if ($custom_computer['products_model'] == "Custom"){ $product_info_query = tep_db_query("select p.products_weight, p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); }else{ $product_info_query = tep_db_query("select p.products_weight, p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); } // Light Box J Query with ultra Pics 2.08 Add on EOF ... <!-- Light Box J Query with ultra Pics 2.08 Add on BOF --> <?php $small_image = $product_info['products_image']; $popup_image = $product_info['products_image_med']; if ($popup_image == '') $popup_image = $small_image; echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $popup_image) . '" target="_blank" rel="prettyOverlay[gallery]" title="' . $product_info['products_name'] . '">' . tep_image(DIR_WS_IMAGES . $small_image, $product_info['products_name'], 0, 200, 'hspace="1" vspace="1"') . '<br/>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?> <!-- Light Box J Query with ultra Pics 2.08 Add on BOF --> .... <?php // Light Box J Query with ultra Pics 2.08 Add on BOF if (ULTIMATE_ADDITIONAL_IMAGES == 'enable') { include(DIR_WS_MODULES . 'additional_images.php'); } // Light Box J Query with ultra Pics 2.08 Add on EOF ?> I also readed the documentation said Burt.(conflicts). But I dont know how to apply those fixes. It say to write them at the end of jquery, but nothing happens. By the way, is there any contribution to take only one product_description(for example the spanish) and with it, the other languages take that description.??? The description sizes are higher to the rest items in the online database. My host only give to me a 100MB dB. I have menus and buttons translated to espanol/english/german and i want to maintain them. But when im editing the product if i give the decription box empty of an expecific language, then in the shop will be empty. I thought to write only one description for all languages and with this mod translate the others.(Less work and less MB of dB). I dont care about the 80% translate rate. Quote Link to comment Share on other sites More sharing options...
ronrrico Posted December 20, 2009 Author Share Posted December 20, 2009 This is the other code in may product_info.php: // Light Box J Query with ultra Pics 2.08 Add on BOF if ($custom_computer['products_model'] == "Custom"){ $product_info_query = tep_db_query("select p.products_weight, p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); }else{ $product_info_query = tep_db_query("select p.products_weight, p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); } // Light Box J Query with ultra Pics 2.08 Add on EOF ... <!-- Light Box J Query with ultra Pics 2.08 Add on BOF --> <?php $small_image = $product_info['products_image']; $popup_image = $product_info['products_image_med']; if ($popup_image == '') $popup_image = $small_image; echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $popup_image) . '" target="_blank" rel="prettyOverlay[gallery]" title="' . $product_info['products_name'] . '">' . tep_image(DIR_WS_IMAGES . $small_image, $product_info['products_name'], 0, 200, 'hspace="1" vspace="1"') . '<br/>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?> <!-- Light Box J Query with ultra Pics 2.08 Add on BOF --> .... <?php // Light Box J Query with ultra Pics 2.08 Add on BOF if (ULTIMATE_ADDITIONAL_IMAGES == 'enable') { include(DIR_WS_MODULES . 'additional_images.php'); } // Light Box J Query with ultra Pics 2.08 Add on EOF ?> I also readed the documentation said Burt.(conflicts). But I dont know how to apply those fixes. It say to write them at the end of jquery, but nothing happens. By the way, is there any contribution to take only one product_description(for example the spanish) and with it, the other languages take that description.??? The description sizes are higher to the rest items in the online database. My host only give to me a 100MB dB. I have menus and buttons translated to espanol/english/german and i want to maintain them. But when im editing the product if i give the decription box empty of an expecific language, then in the shop will be empty. I thought to write only one description for all languages and with this mod translate the others.(Less work and less MB of dB). I dont care about the 80% translate rate. Send me your product_info.php & prettyPhoto.js in a privave email, I think you have an alter or realy old version prettyphoto. Se original version:http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/ With new version, you have option to use prettyphoto for Video, Iframes, youtube videos... You can see sanples of it at the bottom of my demo product_info page. Send me your site name and product_info.php & prettyPhoto.js files in a email, I'll see what I can do. Did you install latest version I uploaded last night? please do it before sending me your files. Quote Link to comment Share on other sites More sharing options...
PupStar Posted February 7, 2010 Share Posted February 7, 2010 Ok I am testing this out all seems ok but instead of displaying flags for the languages all I see is text no flags. I have uploaded the osc_translator folder to public_html and I am using your product_info_vanilla.php Is there another step which is ommited from the install or is something broken??? Thanks PS Quote Link to comment Share on other sites More sharing options...
PupStar Posted February 7, 2010 Share Posted February 7, 2010 Its ok I grabbed the images from your site and placed them in /images/flag/ and all is now sweet. Maybe you should update the package with the missing folder. Regards PS Quote Link to comment Share on other sites More sharing options...
urbanfactory Posted March 28, 2010 Share Posted March 28, 2010 (edited) Hi can someone help me, I´ve installed this contribution but when i click on the flags nothing appens, also the website background-image turns white, everything is on the right place, i´ve checked here on the forum, also i have other contributions installed, like osc multi images, osc thumb, and so on. Thanks in advance Edited March 28, 2010 by urbanfactory Quote Link to comment Share on other sites More sharing options...
Talis Posted April 19, 2010 Share Posted April 19, 2010 Hi can someone help me, I´ve installed this contribution but when i click on the flags nothing appens, also the website background-image turns white, everything is on the right place, i´ve checked here on the forum, also i have other contributions installed, like osc multi images, osc thumb, and so on. Thanks in advance Hi, I'm having the same issue in that no action happens when clicking a flag. Code has been fully checked against that of the working demo site (I have even tried using the <script> sections from the demo site). Spelling and versions of js files has also been checked. I can't find a reason as to why no action takes place up on clicking a flag. Other contributions installed are Extra Product Fields v1.3, Flash for Product Info, Pay Without Account & HeaderTags_SEO Any ideas as to what is causing Translator not to function? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
bhbilbao Posted May 9, 2010 Share Posted May 9, 2010 Hi again Ronrrico, finally working with the last release. The problem was a conflict with other contribution: Increase and decrease the size of the text in the description of the products http://addons.oscommerce.com/info/7095 here: <ul type="square"> <span class="ft1"><a onclick="TamFonte(1, 'noticia')"><img src="images/diminui_fonte.jpg" border="0"></a></span> <span class="ft3"><a onclick="TamFonte(3, 'noticia')"><img src="images/aumenta_fonte.jpg" border="0"></a></span> <span class="blue"><h2><?php echo TEXT_INFO;?><?php echo $products_name; ?></h2></span> <div id="noticia" class="ft1"><?php echo stripslashes($product_info['products_description']); ?></div> I replaced the id="noticia" for the translator code id="source" and working. (but the html <td> ul and li remains without translation). Other question. Now that we have the translator working I need to delete the other languges products description and only use the spanish description. I need this to reduce the database size. I use Spanish(default), english, and euskara. I don´t kwon what line to modify but i think it should be something like this ( products_description.... and language_id=xxx). Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Melhor Posted October 12, 2010 Share Posted October 12, 2010 Hi, I'm having the same issue in that no action happens when clicking a flag. Code has been fully checked against that of the working demo site (I have even tried using the <script> sections from the demo site). Spelling and versions of js files has also been checked. I can't find a reason as to why no action takes place up on clicking a flag. Other contributions installed are Extra Product Fields v2.23, Any ideas as to what is causing Translator not to function? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.