nelsonevp Posted November 26, 2006 Posted November 26, 2006 Ref: Problem in multilingual webpage Hello, Please, what is it necessary to add to his popup file in order to maintain the language, otherwise after the customer use it (popup) , the webpage return to the default language . The popup_oscplayer.php is: <?php /* $Id: popup_oscplayer.php,v 2.00 09/11/2004 16:00:10 ManMAchine Exp $ Released under the GNU General Public License */ ?> <!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> **************************************************************************** For your information the new data base for this contribution is this: 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
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.