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

Recent

Welcome to TinyPortal. Please login or sign up.

July 21, 2024, 07:29:48 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,333
  • Total Topics: 21,233
  • Online today: 103
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 58
  • Total: 58

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