Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Apr 2006
    Posts
    108
    Plugin Contributions
    0

    Default Flash Mp3 in a Blank Sidebox

    HI Folks, Not been here a while so now trying out 1.37 and loving it!

    OK, my question is this: using the blank sidebox module is it possible to get a flash mp3 player in the sidebox?

    I installed the Blank Sidebox contribution and got it working on its own, but I can't get a flash mp3 player working, but when I try pulling the code, it just looks blank

    So in blank_sidebox_defines.php which is this:

    <?php
    /**
    * blank sidebox definitions - text for inclusion in a new blank sidebox
    *
    * @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 $
    */

    define('BOX_HEADING_BLANK_SIDEBOX', 'Blank Sidebox Header');
    define('TEXT_BLANK_SIDEBOX', 'Replace this text with your HTML content.');

    ?>

    eg,

    I try this:

    <?php
    /**
    * blank sidebox definitions - text for inclusion in a new blank sidebox
    *
    * @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 $
    */

    define('BOX_HEADING_BLANK_SIDEBOX', 'Blank Sidebox Header');
    define('TEXT_BLANK_SIDEBOX', '<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="130" height="141">
    <param name="movie" value="test.swf"><param name="quality" value="high">
    <embed src="test.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="130" height="141"></embed>
    </object>');

    ?>


    and I have a .swf and an .xml file to put into the directory, which I do as well

    Any idea on why its a no show, OR is it not even possible to do this or is there an easier solution to get a nice Flash Mp3 player in a sidebox?

    Thanks for any solutions

    Samantha Andrews

  2. #2
    Join Date
    Jan 2006
    Posts
    420
    Plugin Contributions
    0

    Default Re: Flash Mp3 in a Blank Sidebox

    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.
    Various Zen cart sites !

  3. #3
    Join Date
    Apr 2006
    Posts
    108
    Plugin Contributions
    0

    Default Re: Flash Mp3 in a Blank Sidebox

    Hey Crazy Cucumber
    Thats a lot better

    The swf now shows but doesn't load the xml file ?

    is xml not allowed within the sidebox?

    Thanks loads

    Samantha x

  4. #4
    Join Date
    Jan 2006
    Posts
    420
    Plugin Contributions
    0

    Default Re: Flash Mp3 in a Blank Sidebox

    Quote Originally Posted by davidandrews View Post
    Hey Crazy Cucumber
    Thats a lot better

    The swf now shows but doesn't load the xml file ?

    is xml not allowed within the sidebox?

    Thanks loads

    Samantha x
    glad i got you in the right direction , there is no reason I know of that it wont load , maybe some paths are wrong , but your on the limit of my knowledge there .Flash and XML are not my strong points.
    Sorry
    Various Zen cart sites !

  5. #5
    Join Date
    Apr 2006
    Posts
    108
    Plugin Contributions
    0

    Default Re: Flash Mp3 in a Blank Sidebox

    Ok got it working
    All files just needed to be in the root dir (the swf and the xml)

    This is a great contrib

    I now have a working Virtual iPhone in my box!

    Thanks loads

  6. #6
    Join Date
    Oct 2005
    Posts
    96
    Plugin Contributions
    0

    Default Re: Flash Mp3 in a Blank Sidebox

    We were thinking about trying to implement something similar, but we were wondering if the player/sidebox would get reloaded and the music interrupted each time a new page is loaded. Is that an issue?

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

    Default Re: Flash Mp3 in a Blank Sidebox

    This is SO AWESOME!!!!

    Wanted to do this on my site but had no idea where to start... thanks for posting this thread and getting me working on it.

    I have a site that sells HD videos, for download and on disc, and I wanted to have an embedded flash player to show some sample videos. Long story short, I ended up going with an embedded player that's free (goes in root directory, along with your .flv file) from here:

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

    and used the empty sideboxes addon to embed the code for the player. Took some fiddling to get the player to be the right size and show my videos in the right 16:9 aspect ratio with no black space on the sides, top or bottom, but now it's working great.
    If anyone needs the code to do the same thing, reply and I can post it up here.

    Site:

    http://candid-hd.com/catalog/

    Cheers!

    Patrick

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

    Default Re: Flash Mp3 in a Blank Sidebox

    Made me think of some ENHANCEMENTS.... :)

    First, is there any program to automatically "rotate" flv videos the window brings up so that at different times the player will load different clips.

    I suppose it could also be a function in the php code in that sidebox, to have a list of different files to play and randomly choose one on each page load (like how 'featured items' changes every time you reload the page) ... but I have no idea how to do that.

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

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

 

 
Page 1 of 3 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