View Single Post
  #7 (permalink)  
Old 01-19-2003, 04:19 AM
SchmoobeeDrew SchmoobeeDrew is offline
Junior Member
 
Join Date: Dec 2002
Posts: 8
adding a working php script into nuke modules
I was hoping someone could help with this script?
I have this script working:
http://schmoobeedrew.servemp3.com/nu...castdetail.php
But I would like to have it inside my nuke site.

I have used this other thread to help me with inserting html or text to include a html page inside a php nuke module and that worked great for text!
http://www.nukeforums.com/forums/vie...13100&forum=42

now I'm trying to do the same with this php script "scastdetail.php"
I have made a module called Now_Playing and put all nessasary files inside to make the scastdetail.php work ok. but when I activate the module it just hangs up... browser takes forever to do anything just slowly creeps along for over 5 minutes but goies no where.

I name the file index.php and made these modifications to it
<?php
// so ppl dont access it directly. optional
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
// end optional

require_once("mainfile.php");
$index = 1; //0 : do not show right blocks - 1:show right blocks
include("header.php");

///scastdetail.php script

include ("config.php");
include ("scastxml.php");
echo"
<html>

<head>
<title>$title</title>
</head>
<META content=$refresh http-equiv=REFRESH>
<body text=$text bgcolor=$bgrnd link=$link vlink=$vlink alink=$alink>
<font size=$hdrtext face=arial>[b]<center></center></font>
<table border=0 cellpadding=0 cellspacing=0 bgcolor=$tblhdr width=100%>
<tr>

</tr></font>
</table>
<table border=0 cellpadding=0 cellspacing=0 bgcolor=$tblhdr width=100%>
<tr>
<td width=100% bgcolor=$cell><font size=$hdrtext face=arial>[b]Currently Playing</td>
</tr>
<tr>
<td width=100% bgcolor=$tblhdr><font size=$bdytext face=arial>$song[0]</td>
</tr>";
// Note if you do not want the last 20 songs showing just comment out this echo statement with /*c-style*/ comments
echo"<tr>
<td width=100% bgcolor=$cell><font size=$hdrtext face=arial>[b]Past 10 Mix or Trax</td>
</tr>
<tr>
<td width=100% bgcolor=$tblhdr><font size=$bdytext face=arial>1.$song[1]
2.$song[2]
3.$song[3]
4.$song[4]
5.$song[5]
6.$song[6]
7.$song[7]
8.$song[8]
9.$song[9]
10.$song[10]</td>
</tr></font>
</table>";
// Detailed Stats
echo"




<tr>
</tr>
<tr>
</tr>
</table>

<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>

</tr>
<tr>
</tr> </font>
</table></a>";
//// end of scastdetail.php
include("footer.php");
?>

So I'm not sure what to do next as the script works outside nuke site but when I attemp to run it inside nuke, it doesn't open the new page.
http://schmoobeedrew.servemp3.com/nu...me=Now_Playing
thnx for any direction

Drew
Reply With Quote