TinyPortal

Development => Feedback => Topic started by: JustClem on April 03, 2005, 01:15:05 AM

Title: Blocks on right-hand side
Post by: JustClem on April 03, 2005, 01:15:05 AM
I have two PHP blocks on the right hand side.  One has a script that gets info about a TeamSpeak server and the other has a script that gets info about a game server.  Occasionally, these boxes will show up twice, with one set displaying a bunch of errors and the other set displaying correctly.

Normally, this is the configuration:

Left-blocks -- Forum Announcements -- Right PHPboxes

When I get errors, this is the configuration:

Left-blocks -- Forum Announcements -- Error displaying PHPboxes -- Right PHPboxes

Any thoughts?
Title: Re: Blocks on right-hand side
Post by: Bjørn on April 03, 2005, 01:43:09 AM
How is it put into the blocks? code?
Title: Re: Blocks on right-hand side
Post by: JustClem on April 03, 2005, 03:10:31 AM
I added two phpboxes via the TPadmin page, Edit Blocks section.

One has the following code:echo '<style type="text/css"> <!--
.cells {font-family: Verdana, arial, helvetica, serif; font-size:7px;cellpadding:0; color: #000000;}
.tinycells {font-family: Verdana, arial, helvetica, serif; font-size:6px;cellpadding:0; color: #000000;}
.headertext {font-family: Verdana, arial, helvetica, serif; font-size:8px;cellpadding:0; color: #000000}
.tinytext {font-family: Verdana, arial, helvetica, serif; font-size:6px;cellpadding:0; color: #000000;}
.statusbg {background: #EEEEEE;}
.statusheader {background: #BBBBBB;}
--> </style>';

$server_id="6994dcf4f3282b07be4fdd3b7e580c4b";
@readfile("http://www.osgrocks.com/voicestatus/remote.php?server=$server_id");
and the other has the following code:include("http://www.rfhq.com/hqq/etwq_inc.php?ip=206.123.68.77&port=27961");
Title: Re: Blocks on right-hand side
Post by: Bjørn on April 03, 2005, 08:51:53 AM
Initally I can't see anything wrong..have you tried using them one-by-one ? To see which one creates errors?

It might be the second one...
Title: Re: Blocks on right-hand side
Post by: JustClem on April 03, 2005, 09:01:25 AM
Bloc, I just tested and it does seem to be the second block causing the problems, so I have changed that to just be a link that can be clicked when server info is needed.

Thanks for the help.
Title: Re: Blocks on right-hand side
Post by: penny on July 07, 2006, 10:23:47 PM
Anyone knows how to set the squery game server monitor block on Tinyportal. Like they also have on http://www.squery.com? I really don't get it  ??? :( :)
Title: Re: Blocks on right-hand side
Post by: IchBin on July 08, 2006, 12:29:03 AM
Please do not hijack someone elses thread, and a search wouldn't hurt you either. :) In the block-codes board there is a snippet for the squery.