TinyPortal

Development => Support => Topic started by: gto3113 on January 19, 2012, 05:52:13 PM

Title: Java/HTML block doesn't work.
Post by: gto3113 on January 19, 2012, 05:52:13 PM
I'm trying to put code to show Teamspeak in a left block, but it doesn't show. On my previous forum I had to put it in as an article in html to make it work, but it won't do it this time. I just want to be able to add the code to a block and run it.
Here is the code for TS. Give it a try and let me know if it work for you.
note: It works in the article mode still in my olf forum.

<div id="ts3viewer_926200" style="width:; background-color:;"> </div>

<script type="text/javascript" src="http://static.tsviewer.com/short_expire/js/ts3viewer_loader.js"></script>

<script type="text/javascript">
<!--
var ts3v_url_1 = "http://www.tsviewer.com/ts3viewer.php?ID=926200&text=FFFFFF&text_size=10&text_family=1&js=1&text_s_weight=bold&text_s_style=normal&text_s_variant=normal&text_s_decoration=none&text_s_color_h=525284&text_s_weight_h=bold&text_s_style_h=normal&text_s_variant_h=normal&text_s_decoration_h=underline&text_i_weight=normal&text_i_style=normal&text_i_variant=normal&text_i_decoration=none&text_i_color_h=525284&text_i_weight_h=normal&text_i_style_h=normal&text_i_variant_h=normal&text_i_decoration_h=underline&text_c_weight=normal&text_c_style=normal&text_c_variant=normal&text_c_decoration=none&text_c_color_h=525284&text_c_weight_h=normal&text_c_style_h=normal&text_c_variant_h=normal&text_c_decoration_h=underline&text_u_weight=bold&text_u_style=normal&text_u_variant=normal&text_u_decoration=none&text_u_color_h=525284&text_u_weight_h=bold&text_u_style_h=normal&text_u_variant_h=normal&text_u_decoration_h=none";
ts3v_display.init(ts3v_url_1, 926200, 100);
-->
</script>
Title: Re: Java/HTML block doesn't work.
Post by: ZarPrime on January 19, 2012, 06:27:20 PM
gto3113,

I've got it working on your FrontPage.  Is the placement right?  And while I'm in there, what do you want the block to be named?

ZarPrime
Title: Re: Java/HTML block doesn't work.
Post by: gto3113 on January 19, 2012, 07:34:28 PM
I can rename it and place it where I need to.
Thank you very much.
Title: Re: Java/HTML block doesn't work.
Post by: IchBin on January 19, 2012, 07:44:13 PM
gto3113,

When posting code, make sure you put the code inside the [code][/code] tags so that it doesn't get changed when you post it in your text. Thanks!
Title: Re: Java/HTML block doesn't work.
Post by: gto3113 on January 19, 2012, 07:51:45 PM
I made a change after he made it work and it disappeared.
then I came back and read this and added the tags and it worked.
Only problem is it shows the tags at the top and bottom.
How can I make that disappear.
Title: Re: Java/HTML block doesn't work.
Post by: ZarPrime on January 19, 2012, 08:51:48 PM
gto3113,

lol Ichbin meant to use the code tags when posting code in a post here, not in your block. ;) I'll fix that for you but it now looks like that RSS feed is acting up again.  I'm not so sure that feed is stable.  I'll look at that again as well.

ZP
Title: Re: Java/HTML block doesn't work.
Post by: gto3113 on January 19, 2012, 09:29:04 PM
If you look at my other site xxxtremegamers.ca/pcgamer the feed works perfect.
On the new site, not so much.

OK, I figured it out. It wont read the TS script unless I have something in front of it.
I put a line break in front of it and then it saw the code.

Thanks for all your help.
gto3113
Title: Re: Java/HTML block doesn't work.
Post by: ZarPrime on January 19, 2012, 09:44:54 PM
OK, let's call the TeamSpeak block solved O0 and go back to the RSS Feed topic.

ZarPrime