Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
MarkyBear
Hangin' Around


Joined: Mar 27, 2005
Posts: 39

PostPosted: Mon Sep 19, 2005 9:16 pm Reply with quote

I'm trying to make an ESPN Scoreboard Block like you can see on the left hand side of this site here: Only registered users can see links on this board! Get registered or login!

I contaceted the webmaster and he was kind enough to send me the code that he used which is as follows:

Code:
<SCR~IPT language=javaSCR~IPT>

<!--
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin) {
  plugin = parseInt(plugin.deSCR~IPTion.substring(plugin.deSCR~IPTion.indexOf(".")-1)) >= 4;
} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 ||   navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows 2000")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
   document.write('<SCR~IPT LANGUAGE=VBSCR~IPT\> \n');
   document.write('on error resume next \n');
   document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
   document.write('</SCR~IPT\> \n');
}
if (plugin) {
  document.write('<table width=140 border=0 cellspacing=0 cellpadding=0><tr><td>');
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" width="140" height="215">');
  document.write('<param name=movie value="http://a12.g.akamaitech.net/f/12/621/5s/espn.go.com/scorepost/flash/scorepost_flash-vert.swf?sport=ALL&item2=MLB&item3=NFL&item4=&totalItems=4&delay=5&datafile=http://a12.g.akamaitech.net/f/12/621/5s/sports.espn.go.com/espn/scorepost.data">');
  document.write('<param name=quality value=high>');
  document.write('<embed src="http://a12.g.akamaitech.net/f/12/621/5s/espn.go.com/scorepost/flash/scorepost_flash-vert.swf?sport=ALL&item2=MLB&item3=NFL&item4=&totalItems=4&delay=5&datafile=http://a12.g.akamaitech.net/f/12/621/5s/sports.espn.go.com/espn/scorepost.data" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="140" height="215"></embed></object></td></tr>');
  document.write('<tr><td bgcolor=#000000 align=center></td></tr>');
  document.write('<tr><td bgcolor=#000000 width=1 height=10><spacer type=block width=1 height=10></td></tr>');
  document.write('</table>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
  document.write('<center><font size=2 face=arial color=#FFFFFF>');
  document.write('<br>You need Flash 4 to view our Enhanced ScorePost.<br>You can download Flash <a href="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" target=new><font color=#FFFFFF>here</font></a>.<br>');
  document.write('<br><a href="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" target=new><img src="http://www.macromedia.com/images/get_flashplayer.gif" border=0></a><br><br>');
  document.write('If you have a Java enabled browser, you can view our <a target = "_parent"  href="#" onClick="window.open(\'http://espn.go.com/scorepost/ncf.html\',\'popup_scorepost\',\'width=136,height=298,scrollbars=no,noresize\');"><font color="#FFFFFF">old ScorePost</font></a><br>');
  document.write('</font></center>');
}
//-->
</SCR~IPT>


I'm trying to covert this into a Nuke block but I'm having some difficulties doing so.

I copied the code to a text file and named it EPSN.html and uploaded it to my site, then I was able to display it in an IFrame block but it didn't look good at all.

How do I convert this so it looks like it does on his site?

Thanks for anyones time and help!
 
View user's profile Send private message
MarkyBear
PostPosted: Tue Sep 20, 2005 12:32 am Reply with quote

Ok, to update this here I did some playing around and DL'd a flash menu block, I opened it up and swapped some lines of code from my above post with the code in the Flash Menu and it works!

Belwo is what I have, was now wondering if someone could maybe clean it up for me as I'm sure there's some things in there that are not needed and maybe some other things that are needed, thanks again!

Code:
<?php

if (eregi("block-ESPNS.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}

$content = "<center><OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0\" WIDTH=\"140\" HEIGHT=\"215\" id=\"logo\" ALIGN=\"\"><PARAM NAME=movie VALUE=\"http://a12.g.akamaitech.net/f/12/621/5s/espn.go.com/scorepost/flash/scorepost_flash-vert.swf?sport=ALL&item2=MLB&item3=NFL&item4=&totalItems=4&delay=5&datafile=http://a12.g.akamaitech.net/f/12/621/5s/sports.espn.go.com/espn/scorepost.data\">

<PARAM NAME=quality VALUE=high><EMBED src=\"http://a12.g.akamaitech.net/f/12/621/5s/espn.go.com/scorepost/flash/scorepost_flash-vert.swf?sport=ALL&item2=MLB&item3=NFL&item4=&totalItems=4&delay=5&datafile=http://a12.g.akamaitech.net/f/12/621/5s/sports.espn.go.com/espn/scorepost.data?
category1=$category1
&category2=$category2
&category3=$category3
&linksfield1=$links1
&linksfield2=$links2
&linksfield3=$links3\" menu=false quality=best wmode=transparent bgcolor=#000000  WIDTH=\"140\" HEIGHT=\"215\" NAME=\"nav\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT></center>";
?>
 
magnum
Client


Joined: Jun 23, 2006
Posts: 83

PostPosted: Thu Aug 24, 2006 9:52 pm Reply with quote

i would like this block has anyone made it yet?

_________________
Nukes real friend is a big cup of Java with a valium stirred in. Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message
magnum
PostPosted: Thu Aug 24, 2006 9:53 pm Reply with quote

i dont know why but when i posted or tried to it said i was attacking the site ?
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Fri Aug 25, 2006 6:48 am Reply with quote

magnum, make it a text file and either make it a download from your site or just a link. It must have code in there that NukeSentinel does not like... most likely javascript.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©