Zen Cart Logo
Forums / Basic Configuration / A flash MP3 player into a blank sidebox!

A flash MP3 player into a blank sidebox!

Locked

Views: 2,633

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
7 Jan 2008, 11:32 AM
#1
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

A flash MP3 player into a blank sidebox!

Can any body help on that ! as I wanted to add a flash MP3 player into a blank sidebox which I have Installed recently, I have been in all discussions about this issue but nothing brought my flash player to life! I'm working on a test ZC which I build it for testing reason, but nothing shows in yet, the code that I embedded is :

<script type="text/javascript"> var so = new SWFObject("http://www.arab-broker.com/oriental2/media/playerMultipleMenuPackage/playerMultipleList_old.swf", "mymovie", "295", "200", "7", "#FFFFFF"); so.addVariable("autoPlay","no") so.addVariable("playlistPath","playlist.xml") so.write("flashPlayer"); </script>

I'm using a Bi-lingual website as for the Arabic language the content of the blank sidebox is gone and in the English version it shows this : TEXT_BLANK_SIDEBOX

Should I add the link for the flash player where it says : so.write("flashPlayer");And should I add the path for the xml file where it says : so.addVariable("playlistPath","playlist.xml")and if so where exactly, in ("playlistPath" or "playlist.xml") ?

the link for the test website:
http://www.arab-broker.com/oriental2...ex&language=en

what did I do wrong here ?

7 Jan 2008, 11:41 AM
#2
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: A flash MP3 player into a blank sidebox!

I just forgot to say I added the script in the tpl_blank_sidebox.php, so it should look like this :

<?php /** * blank sidebox - allows a blank sidebox to be added to your site * * @package templateSystem * @copyright 2007 Kuroi Web Design * @copyright Portions Copyright 2003-2007 Zen Cart Development Team * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: blank_sidebox.php 2007-05-26 kuroi $ */ $content = ''; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">'; // Replace the text and HTML tags between the apostophes on lines 19 and 20. // Use as many or as few lines using this model as you need for your custom content. // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19. // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!) $content .= '<p>' . TEXT_BLANK_SIDEBOX . '</p>'; $content .= '<p><script type="text/javascript"> var so = new SWFObject("http://www.arab-broker.com/oriental2/media/playerMultipleMenuPackage/playerMultipleList_old.swf", "mymovie", "295", "200", "7", "#FFFFFF"); so.addVariable("autoPlay","no") so.addVariable("playlistPath","playlist.xml") so.write("http://www.arab-broker.com/oriental2/media/playerMultipleMenuPackage/playerMultipleList_old.swf"); </script>.</p>'; $content .= '</div>'; ?>