PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
trenchfoot
New Member
New Member


Joined: Feb 25, 2008
Posts: 4

PostPosted: Sat Mar 14, 2009 12:15 pm Reply with quote Back to top

Can anyone help rewrite this code at the moment it works but am getting no content for this block error below.


Quote:
<?php
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}

$WEBSITEURL="http://www.yourwebsite.com";
$WIDTH="570";
$HEIGHT="290";
OpenTable();
echo"<center><OBJECT CLASSID=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" WIDTH=\"$WIDTH\" HEIGHT=\"$HEIGHT\" CODEBASE=\"http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0\">"
. "<PARAM NAME=\"MOVIE\" VALUE=\"$WEBSITEURL/banner.swf\">"
. "<PARAM NAME=\"PLAY\" VALUE=\"true\">"
. "<PARAM NAME=\"LOOP\" VALUE=\"true\">"
. "<PARAM NAME=\"QUALITY\" VALUE=\"high\">"
. "<PARAM NAME=\"SCALE\" value=\"noborder\">"
. "<EMBED SRC=\"$WEBSITEURL/banner.swf\" WIDTH=\"$WIDTH\" HEIGHT=\"$HEIGHT\" PLAY=\"true\" LOOP=\"true\" QUALITY=\"high\" scale=\"noborder\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"> "
. "</EMBED>"
. "</OBJECT></center>"
."";
CloseTable();
?>


ps donation on its way Wink
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1435
Location: North Carolina

PostPosted: Sat Mar 14, 2009 12:20 pm Reply with quote Back to top

You could try and create the block using the flash upload in the WYSIWYG editor.
View user's profile Send private message Send e-mail Visit poster's website
eldorado
Involved
Involved


Joined: Sep 10, 2008
Posts: 366
Location: France

PostPosted: Sat Mar 14, 2009 12:53 pm Reply with quote Back to top

your forgot the $content = '';
Code:
$content=" echo   "<center><OBJECT CLASSID=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" WIDTH=\"$WIDTH\" HEIGHT=\"$HEIGHT\" CODEBASE=\"http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0\">"
. "<PARAM NAME=\"MOVIE\" VALUE=\"$WEBSITEURL/banner.swf\">"
. "<PARAM NAME=\"PLAY\" VALUE=\"true\">"
. "<PARAM NAME=\"LOOP\" VALUE=\"true\">"
. "<PARAM NAME=\"QUALITY\" VALUE=\"high\">"
. "<PARAM NAME=\"SCALE\" value=\"noborder\">"
. "<EMBED SRC=\"$WEBSITEURL/banner.swf\" WIDTH=\"$WIDTH\" HEIGHT=\"$HEIGHT\" PLAY=\"true\" LOOP=\"true\" QUALITY=\"high\" scale=\"noborder\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"> "
. "</EMBED>"
. "</OBJECT></center>"
.""; ";
View user's profile Send private message Visit poster's website MSN Messenger
trenchfoot
New Member
New Member


Joined: Feb 25, 2008
Posts: 4

PostPosted: Sat Mar 14, 2009 1:25 pm Reply with quote Back to top

Thanks for the replies,


Ok this is the code am using now and its nearly there, am just having a small issue with the block dividing into two blocks.



Quote:
<?php
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}

$WEBSITEURL="http://www.yourwebsite.com";
$WIDTH="400";
$HEIGHT="290";
OpenTable();
$content="<center><OBJECT CLASSID=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" WIDTH=\"$WIDTH\" HEIGHT=\"$HEIGHT\" CODEBASE=\"http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0\">"
. "<PARAM NAME=\"MOVIE\" VALUE=\"$WEBSITEURL/banner.swf\">"
. "<PARAM NAME=\"PLAY\" VALUE=\"true\">"
. "<PARAM NAME=\"LOOP\" VALUE=\"true\">"
. "<PARAM NAME=\"QUALITY\" VALUE=\"high\">"
. "<PARAM NAME=\"SCALE\" value=\"noborder\">"
. "<EMBED SRC=\"$WEBSITEURL/banner.swf\" WIDTH=\"$WIDTH\" HEIGHT=\"$HEIGHT\" PLAY=\"true\" LOOP=\"true\" QUALITY=\"high\" scale=\"noborder\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"> "
. "</EMBED>"
. "</OBJECT></center>"
."";
CloseTable();
?>



Image

u can see there is i tiny block attached to my main block.
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sat Mar 14, 2009 5:21 pm Reply with quote Back to top

Don't use OpenTable or CloseTable in a block
View user's profile Send private message Visit poster's website
trenchfoot
New Member
New Member


Joined: Feb 25, 2008
Posts: 4

PostPosted: Sat Mar 14, 2009 5:41 pm Reply with quote Back to top

Worked a treat, many thanks every1.
View user's profile Send private message
trenchfoot
New Member
New Member


Joined: Feb 25, 2008
Posts: 4

PostPosted: Sat Mar 14, 2009 5:48 pm Reply with quote Back to top

Donation made, thanks.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous 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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum