TinyPortal

Development => Block Codes => Topic started by: Tron420 on December 03, 2006, 03:48:27 PM

Title: html not working in html block
Post by: Tron420 on December 03, 2006, 03:48:27 PM
why doesnt the html work in a bbc-html block?
all that shows up is the code
Title: Re: html not working in html block
Post by: G6Cad on December 03, 2006, 03:55:51 PM
what code are you trying to use?
Title: Re: html not working in html block
Post by: Tron420 on December 03, 2006, 03:57:53 PM
this is 1 code i cant get to work in my html blocks .its for a gameserver monitor.
it should work ive seen it many times in side blocks


<TABLE align="center" cellpadding="10">
<TR><TD valign="top">

<!-- Server Monitor (The main monitor) | START ------------------------------->
<!-- NOTE:
This first segment of code is only for the server monitor itself.
If you want to include the server usage graphs, then scroll down to
the marked code.
-->

<SCRIPT LANGUAGE="JavaScript"
SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=141252">
</SCRIPT>
<!-- SERVERSPY GAME CODE END -->
Title: Re: html not working in html block
Post by: G6Cad on December 03, 2006, 03:59:08 PM
You have to use a scriptblock for that code as it is in java code to. Try and use a script block instead and it will show up
Title: Re: html not working in html block
Post by: Dazed on December 03, 2006, 04:00:45 PM
Tron just so you know... their code is often buggy. I use the same for my servers. Takes a bit of tweaking sometimes too...
Title: Re: html not working in html block
Post by: Tron420 on December 03, 2006, 04:06:38 PM
i cant seem to get it to work at all.
Title: Re: html not working in html block
Post by: Dazed on December 03, 2006, 04:09:22 PM
Well this may seem stupid but.... Your game server is running? Make sure you are using the right query ports if it asked for them. Your code seems different... What game?
Title: Re: html not working in html block
Post by: Tron420 on December 03, 2006, 04:11:39 PM
well it works but it screws up my page. is ther any way to get it to saty inside the block? auto size itself?
sry for the noob questions.

for cz
Title: Re: html not working in html block
Post by: Dazed on December 03, 2006, 04:16:12 PM
Lookin this part of the code...

Quote// Float Banner
document.write ('<STYLE TYPE="TEXT/CSS">');
document.write ('#navBarAd {   position: absolute;   top: -400px; left: 5px; width: 125px; height: 135px; }');
document.write ('#navBarAdClose { left: 0px; font-family: Arial;   height: 10px; background-color: #ccc; font-size: 10px; padding-top: 0px; padding-right: 4px; text-align: right; cursor: pointer; }');
document.write ('</STYLE>');
google_ad_client = "pub-8587574707050442";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";

Alter the settings to see if that will help. You have a link to where your using it?
Title: Re: html not working in html block
Post by: Tron420 on December 03, 2006, 04:35:56 PM
im sry i dont see that code anywhere.
im using it on my new forum here - http://hittemupgaming.com/smf/index.php. when i put the monitor code in a side block its way too large and messes up the whole layout.

is there any quick code add to make it smaller?
Title: Re: html not working in html block
Post by: Dazed on December 03, 2006, 04:43:07 PM
That is from your link...

QuoteSRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=141252">

When you open that link it has most of the java script. It may not let you adjust everything as it is called directly from server spy. I havn't tried to modify the code. I have been using a mod to call in info for my AA server and use gamemonitor to keep track of the other info. Try it and see though.
Title: Re: html not working in html block
Post by: Tron420 on December 03, 2006, 05:05:34 PM
what do i do ? sry im a noob
Title: Re: html not working in html block
Post by: copter on December 03, 2006, 05:07:36 PM
<!-- Server Monitor (The main monitor) | START------------------------------->
<SCRIPT LANGUAGE="JavaScript" SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=141252"></SCRIPT>
<!-- SERVERSPY GAME CODE END -->


Thats the main code i think for the bloc but it still doesnt fit in a bloc
Title: Re: html not working in html block
Post by: Dazed on December 03, 2006, 05:17:52 PM
You may try the forums there. They may have better Ideas. What always made the blocks big for me was the advertisement, which you cannot remove, unless you move to paid subscription. I would try that section I quoted before and adjust the 125 pix to say 50. Depending what info your trying to pull you may be able to use the mod that I am using. I am not sure though. I wanted to pull server info for my front page that includes all player stats. There isn't one program that does it all, free anyway. I will research a bit and see if I can get you a better answer. Your looking for hl stats, etc?
Title: Re: html not working in html block
Post by: Tron420 on December 03, 2006, 05:48:18 PM
i just wanted the live server monitor in 1 of my blocks.i click that link and its a dl. not a site
Title: Re: html not working in html block
Post by: Dazed on December 03, 2006, 05:52:07 PM
I will work on it a bit. Getting the whole thing into a block is going to be hard though...
Title: Re: html not working in html block
Post by: Tron420 on December 03, 2006, 07:01:34 PM
thx man.
if u can get to work ill be forever gratefull
Title: Re: html not working in html block
Post by: Dazed on December 03, 2006, 09:02:57 PM
I will have it working. I am most familiar with AA but since I want to track my other servers I will have a use for this also.
Title: Re: html not working in html block
Post by: Tron420 on December 03, 2006, 09:47:35 PM
around 150 pxls max width will fit i think since my blocks are 170 ( side blocks )
Title: Re: html not working in html block
Post by: Dazed on December 03, 2006, 10:39:25 PM
All I get is a squished version and that is the way it shows even on the front page. I can get the thumbnail to show but their sizing only allows the firefox button to show, not the entire thing...

First shown is viewing from main page.

Second shows when inside the css edit page under admin controls. TP must be resizing or something.  This is very odd.

I must admit I am a bit stumped...
Title: Re: html not working in html block
Post by: Tron420 on December 04, 2006, 12:08:08 AM
grrrr
get mad it
lol
Title: Re: html not working in html block
Post by: Tron420 on December 04, 2006, 12:13:57 AM
does this help?

i got it from there site
Title: Re: html not working in html block
Post by: Tron420 on December 05, 2006, 12:09:29 AM
any luck?
Title: Re: html not working in html block
Post by: Dazed on December 05, 2006, 12:23:07 AM
Tron I cannot make that work in TP. It pulls directly from their javascript so I can't find a simple way to have it show correctly. When I am in the css edit menu I see it properly. The only other way I can see is if you were a paying customer. Then you can get rss and xml. I use a php mod called webspec in mine right now It may be possible to alter the code/server info. It doesn't look the same but it works nice in TP with whichever theme you use. I will test it with my other servers and see...
Title: Re: html not working in html block
Post by: Tron420 on December 05, 2006, 07:29:16 AM
could you post info on how i can use that on my site as well? my server is condition zero. i have stats if it reads form there.
i just want a "livew server view" and maybe misc/ stats if possible and maybe a link to launch cz and connect to the server. i have the launch code somewhere. but the launch link isnt a must at all. i would be so happy with a nice looking " live server view" showing connected players / current map / next map / server name / etc.
can u plz post info on the mod your using so i can try it??
Title: Re: html not working in html block
Post by: Tron420 on December 06, 2006, 04:26:16 PM
any one have the html coding to add a live server view to an article in smf 1.1 ?
ill just link to an article from a block.
Title: Re: html not working in html block
Post by: Tron420 on December 06, 2006, 05:36:05 PM
nm i am gonna just try to make my own code for a server page
Title: Re: html not working in html block
Post by: Dazed on December 06, 2006, 11:15:31 PM
Sorry, had to find the file... You will have to change the images to match your game and rename them to suit the maps...
Title: Re: html not working in html block
Post by: Tron420 on December 07, 2006, 07:00:40 AM
hey
i have something u may be interested in .. look here ... http://205.234.191.38:27015/

maybe u can help me w/ this thread about making that page fit in a article ...http://www.tinyportal.net/index.php?topic=11122.msg91848#msg91848
check out the attached files..

Title: Re: html not working in html block
Post by: Tron420 on December 07, 2006, 07:13:12 AM
i cant use that script ur using , i tried... i think my webhost doesnt allow queries.the only way i can do it is the way i described. that package i attached is installed on my gameserver so it just pulls from the root dir no querying a seperate site. think u can edit those files to make it all fit 500 wide 600 high article page?
ive tried but dont even know how to move the tables.. i only know some html and almost no php . so if u could help me it would be really awesome....