Posting flash movies in blocks

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Posting flash movies in blocks
Lautan
CZ Newbie
Lautan has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Dec 15, 2005
0.00 posts per day
Posts: 2
Points: 43
   
I am trying to post a flash movie in a block but the code doesn't work. I know its possible because i saw a flash movie in a block before.

Any help will be helpful thank you in advance.



Back to top Reply with quote
#2   re: Posting flash movies in blocks
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
Save this as: block-Flash.php and upload to your blocks folder, then go into the admin cp and activate it. Just insert the movie size width and height and location (directory) where stated....remember though if it's a big one you won't want it as a side block.
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2005 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/


if (eregi("block-Flash.php",$_SERVER[PHP_SELF])) {
    Header("Location: ../index.php");
    die();
}

//The following conditional should be used instead of the preceding if site is patched to 3.1 standard
//if ( !defined('BLOCK_FILE') ) {
//    Header("Location: ../index.php");
//    die();
//}
$content = "";
$content .= "<center><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"240\" height=\"146\">";
$content .= "<param name=\"movie\" value=\"http://www.YOURSITE.com/DIRECTORYNAME/FILENAME.swf\">";
$content .= "<param name=quality value=high>";
$content .= "<embed src=\"http://www.YOURSITE.com/DIRECTORYNAME/FILENAME.swf\" quality=high";
$content .= "pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"240\" height=\"146\"></embed></object></center>";

?>



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum