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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 420
  • Total: 420

Shoutcast Block

Started by ontap, September 03, 2005, 04:20:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Muziek4um

#20
Correction!!!! It's already working!!! YEAH!!!

It was the site with the shoutcast that wasn't working :D

There's just one problem: the code changes the outlinement of the blocks under it.

mpark

this block works awesome

timtimtim codes works fine but you have to change the server address:
http://www.tinyportal.net/smf/index.php?topic=701.msg12014#msg12014

thanks  :)

Muziek4um

It works excellent for the stream but still changes the alignment of all the tables that come under it.

Check my board at de the right side bar.

http://www.muziek4um.nl/index.php

Everything should be outlined to the left.

Muziek4um

But it's ok now.

It was just a matter of removing the center tag in de part of the script shown below:


// **ON BY DEFAULT - COMMENT OUT (put to forwards slashes in front of it) TO HIDE

echo "
<center>Playing On $streamtitle
<br>
<marquee>
<a href=\"$streamurl\">$song</a>
</marquee>
Birate @ $bit kbps <br> Listeners: $current / $max <br>
";
} else {
echo "
<b>$streamtitle Offline</b><br>Last Song Played Was:<br>
<marquee>$song</marquee>";
} }

WarBirD

Somehow possible to make it autorefresh ?

akulion

auto refresh would require u to use an iframe with a "auto refresh" script which can be found on dynamicdrive.com

WarBirD

#26
Ok, found that, and that code (Javascript) from the auto-refresh i put in the same box where I put the code from the Shoutcast stuff above ?

Because the stuff above is a PHP script and this is Java Script, which means I canÂÃ,´t put them both in a PHP box, right ? Sry, i am not good with those things, thats why i ask.

akulion

oh no if u did that then it would refresh your whole page

u will have to use Iframes for this

basically what u will have to do is create a new file called shoutcast.php or something and then call that into an iframe in the moddle of ur page

i havent seen this scrpt in detail - but im just giving some pointers - best to ask the author for full support :up:

WarBirD

Ok, I did that, made a php file and uploaded it and then called it with IFRAME. Problem is, its displaying the contents of the Shoutbox query IFRAMEÂÃ,´d in the Box, not what it is supposed to do.  :laugh:

WarBirD

Oh lol, never mind, works now.  ;) Thx.

This website is proudly hosted on Crocweb Cloud Website Hosting.