You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 58 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - How to Embed a .SWF into a Block ? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Levarris
Nuke Cadet
Nuke Cadet


Joined: Oct 07, 2006
Posts: 1


PostPosted: Fri Oct 06, 2006 10:44 pm Reply with quoteBack to top

Does anyone know how this can be accomplished? Ive tried to insert the straight HTML for it that obviously doesnt work.
Find all posts by LevarrisView user's profileSend private message
shrek_rock
Captain
Captain


Joined: Nov 24, 2003
Posts: 709


PostPosted: Sat Oct 07, 2006 7:31 pm Reply with quoteBack to top

You need to create your block in a php editor. Notepad will also do the job.

This tutorial should shed some light on this subject. Instead of javascript, replace with your embed codes

http://www.westernstudios.net/tut-javacript-block.html

_________________
Image

Image
Find all posts by shrek_rockView user's profileSend private messageSend e-mailVisit poster's website
Diablo2007
Nuke Soldier
Nuke Soldier


Joined: Jan 07, 2007
Posts: 27


PostPosted: Mon Jan 08, 2007 5:27 pm Reply with quoteBack to top

This works well also:

Code:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* [InF@MoUs]FlashBlock                                                 */
/* Copyright (c) 2007 by [InF@mous]Inc                                  */
/* http://www.infamouscallofduty.com                                    */
/*                                                                      */
/* 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.       */
/* This Block Was Made By Di@Blo From www.infamouscallofduty.com        */
/*                                                                      */
/************************************************************************/

if (eregi("block-flash_block.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}
///Flash Block Setup Variables
$flashname = "Title for your movie"; //This will show under the flash frame//
$flashline = "description of your flash"; //this will show under the above line.//
$link = "you can put  a link to a website or file here";//or leave blank// 
$bgcolor = "#000000"; //Blocks bg color//

$content = "<center><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"145\" height=\"130\" id=\"map\" align=\"middle\">
<param name=\"allowScriptAccess\" value=\"sameDomain\" />
<param name=\"movie\" value=\"images/your_file_name.swf\" />
<param name=\"quality\" value=\"high\" />
<param name=\"bgcolor\" value=\"$bgcolor\" />
<embed src=\"http://www.the_address_to_your_file.swf\" quality=\"high\" bgcolor=\"$bgcolor\" width=\"150\" height=\"130\" name=\"dods\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />
</object><br><br><b>$flashname</b>
<br><b>$flashline</b>
<a href=\"$link\"><b>name of the link to show in the block</b></a><hr>
/////////////////////////////////////////////////////////////////////////
<!--Change the below info with your own-->
/////////////////////////////////////////////////////////////////////////
<a href=\"http://www.infamouscallofduty.com\" target=\"_blank\">© <small>[InF@MoUs]Inc</a>
</center>";

?>


you can see it on my phpnuke here:

http://www.infamouscallofduty.com/infnuke/index.php

DA
Find all posts by Diablo2007View user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.620 Seconds - 255 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::