TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,947
  • Latest: sgm09
Stats
  • Total Posts: 195,725
  • Total Topics: 21,278
  • Online today: 253
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 71
  • Total: 71

Java/HTML block doesn't work.

Started by gto3113, January 19, 2012, 05:52:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gto3113

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>

ZarPrime

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

gto3113

I can rename it and place it where I need to.
Thank you very much.

IchBin

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!

gto3113

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.

ZarPrime

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

gto3113

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

ZarPrime

OK, let's call the TeamSpeak block solved O0 and go back to the RSS Feed topic.

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.