1
mopperman
Cannot view Blocks
  • 2007/8/5 12:55

  • mopperman

  • Just popping in

  • Posts: 5

  • Since: 2006/6/10


Hi all,

on my new website i cannot view the costom build blocks i made, in the blocks administration i dont see blocks.

Someone knows how to solve this?

-- above problem solved.
--- Was my own fault, corrupt php script i guess..

other question..

can someone tell me how i can use a php script in a block, and it needs to be working,,

script im trying:

<?php
$ip 
"xx.xx.xx.xx";    // Geef hier het ip in
$port "51234";        // Geef hier de poort in
$maint "0";        // Is de server in Maintenance mode? 1=ja, 0=nee

//HIERONDER NIETS MEER VERANDEREN
$_GET['ip']="$ip:$port";
$array=explode(':',$_GET['ip']);
$fp = @fsockopen($array[0], $array[1], $errno$errstr,1);
if(
$maint == 1) {
$status "<font color="red">Maint.</font>";
}
else if(
$fp){             
  
$status "<font face="arial"> Onze TS2 Server is</font><font color="green">online</font><br /><font face="arial">Check <a href="http://www.n1-gaming.nl/TS/ts2.php">HIER</a> voor meer info</font>";
  
fclose($fp); // hier sluiten omdat in het andere geval geen verbinding is opgebouwd
}
else{              
  
$status "<font color="red">Helaas... de TS2 server is offline</font>";
}
echo 
$status;
?>

2
christian
Re: Cannot view Blocks
  • 2007/8/5 15:24

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


Welcome,

Just remove <?php and ?>

3
mopperman
Re: Cannot view Blocks
  • 2007/8/5 15:54

  • mopperman

  • Just popping in

  • Posts: 5

  • Since: 2006/6/10


Quote:

christian wrote:
Welcome,

Just remove <?php and ?>


doesnt work.. see an empty block then in preview and it doesnt come up on the mainpage.

setted up on php mode...

edit:

solved.

removed my scripting commands

Login

Who's Online

308 user(s) are online (191 user(s) are browsing Support Forums)


Members: 0


Guests: 308


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits