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
Doulos
Life Cycles Becoming CPU Cycles



Joined: Jun 06, 2005
Posts: 732

PostPosted: Wed Jan 25, 2006 2:47 pm Reply with quote

I am trying to make a block to display some game server data. Here is the HTML code given to me by the game monitor website:
Code:
<iframe src="http://www.game-monitor.com/server-stat.php?ip=8.9.4.220:27015&style=0&text=000000&link=0000FF&back=EEEEEE&border=D0D0D0&body=" width="200" height="210" frameborder="0" scrolling="no"></iframe>


Using PHP-Tools Block Creator I came up with this:
Code:
<?php

#### Generated by Block Creator by Disipal Site (www.disipal.net) ###
if (eregi("block-Game_monitor.php",$_SERVER[$PHP_SELF])) {
    Header("Location: index.php");
    die();
}
$content  =  "<iframe src=\"http://www.game-monitor.com/server-stat.php?ip=8.9.4.220:27015&style=0&text=000000&link=0000FF&back=EEEEEE&border=D0D0D0&body=\" width=\"200\" height=\"210\" frameborder=\"0\" scrolling=\"no\"></iframe>";
?>


The problem I am having is that I can't even test it to see if it is working because after I upload the file to my ftp site and go to admin.php/blocks - it does not even show up on the list as available to add. I have checked and rechecked to be sure it is in the correct folder and that it is correctly named.

Any idea why?
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Jan 25, 2006 4:33 pm Reply with quote

What did you call the file? Did you use the naming convention similar to the other block files?
 
View user's profile Send private message Send e-mail
Doulos







PostPosted: Wed Jan 25, 2006 7:15 pm Reply with quote

called it block-Game_monitor.php
 
Doulos







PostPosted: Thu Jan 26, 2006 2:17 pm Reply with quote

OK, I found out what the problems was. I was uploading it to the wrong place. But after I corrected it I could add it to the list. When I activated it, nothing happened.

I edited the Information block with the HTML code and activated it. All works now.

However, I don't understand why it wouldn't work as a php block.
 
bugsTHoR
Involved
Involved



Joined: Apr 05, 2006
Posts: 263

PostPosted: Tue Oct 03, 2006 12:13 am Reply with quote

well here mine to see if you can spot the mistakes in yours

Code:


<?php
#### Generated by Block Creator by Disipal Site (www.disipal.net) ###
if (eregi("block-Bugs_Community_2.php",$PHP_SELF)) {
   Header("Location: index.php");
   die();
}
$content  =  "<scr   ipt language=\"JavaScript\" type=\"text/JavaScript\" src=\"http://share1.serverspy.net/bin/smonV2loader.mpl?mid=214680\"></scr   ipt>";
?>

hope this helps anyone else too

_________________
LUV RAVEN DISTROBUTION BEBE

Clanthemes.com are great (free advertisements for now until i get to 20,000 posts LoL) 
View user's profile Send private message
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 ©