Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Editing 'currencies' box


kuba9449

Recommended Posts

Posted

How to edit 'currencies' box for viewing mp3 player instead of list of currencies?

 

currencies box:

<?php
/*
 $Id: currencies.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 if (isset($currencies) && is_object($currencies)) {
?>
<!-- currencies //-->
         <tr>
           <td>
<?php
   $info_box_contents = array();
   $info_box_contents[] = array('text' => BOX_HEADING_CURRENCIES);

   new infoBoxHeading($info_box_contents, false, false);

   reset($currencies->currencies);
   $currencies_array = array();
   while (list($key, $value) = each($currencies->currencies)) {
     $currencies_array[] = array('id' => $key, 'text' => $value['title']);
   }

   $hidden_get_variables = '';
   reset($HTTP_GET_VARS);
   while (list($key, $value) = each($HTTP_GET_VARS)) {
     if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {
       $hidden_get_variables .= tep_draw_hidden_field($key, $value);
     }
   }

   $info_box_contents = array();
   $info_box_contents[] = array('form' => tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get'),
                                'align' => 'center',
                                'text' => tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id());

   new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- currencies_eof //-->
<?php
 }
?>

 

player code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sample Flash Music Player Embed Code</title>
</head>
<body>

<!--
INSTRUCTIONS
* Replace song.mp3 with the path of your own .mp3 file
* Change autoPlay to "yes" if you want the music track to start automatically once loaded

More instructions at:
http://www.premiumbeat.com/flash_resources..._mp3_player.php

-->

<!-- Begin Copy/Paste -->

<script type="text/javascript" src="swfobject.js"></script>

<div id="flashPlayer">
 This text will be replaced by the flash music player.
</div>

<script type="text/javascript">
  var so = new SWFObject("playerSingle.swf", "mymovie", "192", "67", "7", "#FFFFFF");
  so.addVariable("autoPlay", "no");
  so.addVariable("soundPath", "song.mp3");
  so.write("flashPlayer");
</script>

<!-- End Copy/Paste -->

</body>
</html>

Posted

You should create a NEW info box, not try to change the currencies box as it contains NOTHING needed for the box you want to create.

 

Once you create the new box, make sure the contents of your 'mp3' video fit within the box size and it should work fine.

 

 

 

Chris

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...