Results 1 to 10 of 24

Hybrid View

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

    Default Re: Flash Mp3 in a Blank Sidebox

    If anyone needs the code to do the same thing, reply and I can post it up here.
    Could you post code please? TIA

  2. #2
    Join Date
    Oct 2007
    Posts
    43
    Plugin Contributions
    0

    Default Re: Flash Mp3 in a Blank Sidebox

    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

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

    Default Re: Flash Mp3 in a Blank Sidebox

    Thank You Patrick

  4. #4
    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

  5. #5
    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 ?

  6. #6
    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

 

 

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