nelsonevp Posted November 17, 2006 Share Posted November 17, 2006 Hello , I have the contribution: "osplayer v2.1" for Mp3 music, the unique problem is when the customer use the file : popup_oscplayer in order to listen the music, after it the shop continues always in English and leave the original language in which the client use it (I have 5 languages) Eg. Spanish, French, Italian, German and in these cases the shop continues after in English. ( I work many hours but unfortunately I can not find the solution) Please if you have time for the solution I appreciate a lot. The whole file popup_oscplayer.php is: <?php /* $Id: popup_oscplayer.php,v 2.00 09/11/2004 16:00:10 ManMAchine Exp $ Mp3 player module for osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com osPlayer - ManMAchine - 09/11/2004 [email protected] Copyright ? 2004 ManMAchine Released under the GNU General Public License */ //******************************************** //******************************************** // oscPlayer V2 ? Manmachine //******************************************** //******************************************** ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Mp3 preview</title> </head> <style type="text/css"><!-- body { margin:0; padding:0; background: #fff; } //--></style> <body> <!--swf player file --> <object type="application/x-shockwave-flash" data="osc_player.swf?mp3id=<?php echo $_GET['product_id'];?>&autoplay=<?php echo $_GET['autoplay'];?>" width="193" height="265"> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="movie" value="osc_player.swf?mp3id=<?php echo $_GET['product_id'];?>&autoplay=<?php echo $_GET['autoplay'];?>"/> <a href=http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash target="blank"><img src="images/icons/noflash.gif" width="88" height="31" vspace="5" hspace="50" alt="install flash player plugin"/></a> </object> </body> </html> Thanks, Nelson Quote Link to comment Share on other sites More sharing options...
Guest Posted November 17, 2006 Share Posted November 17, 2006 After this line: Released under the GNU General Public License */ add: require('includes/application_top.php'); $navigation->remove_current_page(); Not tested, but I think that may well be the problem Sonia Quote Link to comment Share on other sites More sharing options...
nelsonevp Posted November 18, 2006 Author Share Posted November 18, 2006 After this line: Released under the GNU General Public License */ add: require('includes/application_top.php'); $navigation->remove_current_page(); Not tested, but I think that may well be the problem Sonia Thanks Sonia, I install your instruction and now all the languages after the popup_oscplayer.php go to Spanish. For your information the default language is English. In the past I had similar situation ( the languages went to Spanish) after the customer use a "Visual Verify Code) in order to went in Contact Us and Tell a friend and the solution was to force this pages with SSL. But now I can't force to SSL because the osplayer don't open and consequently no music. I think you are very close to solution, perhaps add the query? But I don't know how I install in the query only the part of the languages, because It is only for the CDs and I have also different products. Regards and thanks again, Nelson Quote Link to comment Share on other sites More sharing options...
nelsonevp Posted November 30, 2006 Author Share Posted November 30, 2006 Thanks Sonia, I install your instruction and now all the languages after the popup_oscplayer.php go to Spanish. For your information the default language is English. In the past I had similar situation ( the languages went to Spanish) after the customer use a "Visual Verify Code) in order to went in Contact Us and Tell a friend and the solution was to force this pages with SSL. But now I can't force to SSL because the osplayer don't open and consequently no music. I think you are very close to solution, perhaps add the query? But I don't know how I install in the query only the part of the languages, because It is only for the CDs and I have also different products. Regards and thanks again, Nelson Until now, I can not obtain that the popup_oscplayer.php continue in the same language that the customer use. I think that it is necessary to add also a query similar that in popup_images.php, but with adaptation to the new data base of the contribution. This is the actual code in popup_images.php, my question is how do you adapted it to the new database for the new contribution? $products_query = tep_db_query("select pd.products_name, p.products_image from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'"); This is the new data base: CREATE TABLE `products_mp3` ( `products_id` int(11) NOT NULL default '0', `products_folder` varchar(25) NOT NULL default '', PRIMARY KEY (`products_id`), UNIQUE KEY `products_folder` (`products_folder`) ) TYPE=MyISAM; INSERT INTO configuration_group VALUES ('20', 'osplayer', 'osPlayer v2 Options', '20', '1'); INSERT INTO configuration VALUES ('', 'Open player in a pop up', 'ENTRY_OSCP_POPUP', 'true', 'Open a popup window ( true ) or put the player on the page ( false )', '20', '1', '', '', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),'); INSERT INTO configuration VALUES ('', 'Lecture automatique', 'ENTRY_OSCP_PLAY', 'false', 'Autoplay ? ', 20, 2, '', '', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),'); INSERT INTO configuration VALUES ('', 'Mp3 preview', 'PRODUCT_LIST_MP3', '10', 'Add a listen button ?', 8, 5, now(), now(), NULL, NULL); Thanks, Nelson 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.
Note: Your post will require moderator approval before it will be visible.