Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1. #11
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Flash Mp3 in a Blank Sidebox

    Thank You Patrick

  2. #12
    Join Date
    Nov 2007
    Location
    Sheboygan
    Posts
    5
    Plugin Contributions
    0

    Default Re: Flash Mp3 in a Blank Sidebox

    Quote Originally Posted by hifipj View Post
    No problem, so many have helped me here I am glad if I can help out others...


    First download and install the "Empty Sidebox" add-on from the d/l section of this site.

    Second, download that little .js flash player from here:

    http://www.jeroenwijering.com/?item=JW_FLV_Player

    Extract the contents of the zip,


    And copy this file to your site's root directory:

    flvplayer.swf

    Use FTP to copy your .flv flash video file to the site's root directory.

    Then put in code based on this model for your tpl_blank_sidebox.php file, which is located in

    \includes\templates\template_default\sideboxes

    directory.

    Replace yoursite.com with your site name, and sample.flv with your .flv file name, also adjust size as needed (I made it to fit nicely in the sideboxes of my Cherry Zen template, which are 150px wide).

    <?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 .= '<object width="140" height="99" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/
    shockwave/cabs/flash/swflash.cab#version=8,0,0,0">
    <param name="flashvars" value="file=http://www.yoursite.com/sample.flv" />
    <param name="movie" value="http://www.yoursite.com/flvplayer.swf" />
    <embed src="http://www.yoursite.com/flvplayer.swf" width="140" height="99" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://www.yoursite.com/sample.flv" />
    </object>';

    $content .= '</div>';
    ?>


    And that should do it!

    If anyone can tell me how to have it call a different .flv file on each reload, or at different times or days, so the videos rotate, that would be great.

    Cheers,
    Patrick
    I got this working in firefox, looks ggod, but it won't work or show on Microsoft Internet Explorer 7. What am I doing wrong, it's so cool and would like it to work on all.

    Here's my web site: www.wisconsinairsoftwars.com

    Thanks
    Jonathan
    Owner of WAW

  3. #13
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Flash Mp3 in a Blank Sidebox

    First download and install the "Empty Sidebox" add-on from the d/l section of this site.
    what does that mean, and where from exactly to download that Empty Sidebox ?

  4. #14
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Flash Mp3 in a Blank Sidebox

    Quote Originally Posted by alhakeem2001 View Post
    where from exactly to download that Empty Sidebox ?
    http://www.zen-cart.com/index.php?ma...roducts_id=174

  5. #15
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Flash Mp3 in a Blank Sidebox

    Quote Originally Posted by crazycucumber View Post
    Hi ,

    Think your editing the wrong file there :-

    Take a look at the tpl_blank_sidebox.php

    you may have called is something different, where the `blank` bit is but it will be in the templates/ sideboxes dir.

    that is where you add the content for your sidebox , the defines is just for the header text ect.
    Hi Crazy,

    I did what you said for for my test ZC but nothing shows in yet, the code that embaded is :
    <script type="text/javascript">
    var so = new SWFObject("http://www.arab-broker.com/oriental2/media/playerMultipleMenuPackage/sampleEmbedCode.html", "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 ?

  6. #16
    Join Date
    Oct 2007
    Posts
    43
    Plugin Contributions
    0

    Default Re: Flash Mp3 in a Blank Sidebox

    Just an update here...

    If you are using this feature and your site has SSL, you will need to change all references in the code to https:// rather than just http://.

    Regards,
    Patrick

  7. #17
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Flash Mp3 in a Blank Sidebox

    I'm not sure if I'm using the SSL feature or not, but even the https:// didn't work with me !!

  8. #18
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Flash Mp3 in a Blank Sidebox

    You have to make sure paths to flash player files are
    correct........
    i.e. bottom right sidebox at
    http://www.dezinashop.com/demo/
    For some reason, IE7 does not show sidebox header,
    but Firefox and Safari do.

  9. #19
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Flash Mp3 in a Blank Sidebox

    Well, I'm sure about my flash player path 100% you can test you self !


    http://www.arab-broker.com/oriental2...leList_old.swf

  10. #20
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Flash Mp3 in a Blank Sidebox

    I'm sure about my flash player path 100%
    Paths to ALL flash player files has to be correct, not just
    swf file..

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Flash hack&blank sidebox = blank page
    By AmandaGero in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Apr 2009, 06:19 PM
  2. Flash mp3 player on downloads page
    By Glendon in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Jul 2008, 01:38 PM
  3. mp3 shop with flash preview?
    By diixo in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 1 Mar 2008, 07:59 PM
  4. A flash MP3 player into a blank sidebox!
    By alhakeem2001 in forum Basic Configuration
    Replies: 1
    Last Post: 7 Jan 2008, 12:41 PM
  5. New SSL - Flash Player in Blank Sidebox breaking Cert
    By hifipj in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 4 Jan 2008, 04:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg