Sam Broadcaster

risingfree

New Member
Hi,
Does anyone use the Sam Broadcaster here.
I thought I'd try this out today but I can't even get it to connect.
Just wondering if anyone has this working here so I can maybe get advice.

Cheers
Mike
Rising Free Radio
 

Support

Level 1 Support
Staff member
We do have many users using SAM broadcaster. Let us know what issues you are having and we will try and help.
 

risingfree

New Member
Hi Thanks,
Sorry, this works now. I was stupidly putting intrnet.radio instead of internet-radio
I've got it connected now :rofl:

Cheers
Mike
 

Support

Level 1 Support
Staff member
Good stuff mike. If you fancy writing a guide for other users using SAM broadcaster we can make it available in our guides section and will sort you out with some free bandwidth. ;)
 

risingfree

New Member
Hi,
Ta! I'll see what I can come up with over the weekend.
I'm busy working on some php pages that link to the Sam database - the stuff that ships with it ain't great. I should be able to free up some of that for others to use too if they want
Rising Free Radio
the website and buy links don't all work yet but you can see what I'm looking at

Anyone be interested in that?
 

risingfree

New Member
Do you use a local or remote database fringradio?
I can fully recommend using a remote Db and then some php to pull up the info you want.

I worked with Sam and html a couple of years ago but gave up in the end. I tried the Sam Php as well but I really don't like the way it is written and there were some common files issues and script exploits going on so I gave up on that as well.

I'm DIYing it this time and it seems to be ok. The only thing I've not looked at are the remote requests but I think if I work with the javascript one here I can add them manually to Sam.

This is what I've been working on today and I think it looks much better than the one that Sam provides.
Rising Free Radio
 

fringradio

New Member
Do you think you could send me the code for that and the remote request system? I tried to use a remote database but it wouldn't work!

Cheers,

Fring
 

risingfree

New Member
Hi,
Trouble is, once Sam is set up there is no easy way to change to a remote db.
If you are using MySql then you could try this;
Take a dump of your local database in phpMyAdmin and then recreate it on your remote server.
I'm assuming that you are able to do this. You'll need to check with your hosts that you are able to access this remotely as well because some won't allow it.

After that is done, open the SAMBC.core xml file and change the Db settings (backup first!)
Code:
<Database>
        <Driver>MYSQL</Driver>
        <Host>localhost</Host>
        <Port>3306</Port>
        <Database>samdb</Database>
        <Username>username</Username>
        <Password>password</Password>
        <ServerMode>EMBEDDED</ServerMode></Database>
localhost will need to be changed to the remote server IP where your Db is

Save and reload Sam and it should work

I'm not absolutely certain that is all you would need to do but I think that would work.
You should also check with your hosts first. I know Servage says you can choose to access Db's remotely so you might have to enable this first.

If you get that set up let me know and I'll send you some basic pages to pull the info
 

fringradio

New Member
Mines is all complicated. I have no front end to MySQL! When i installed for the first time I tryed to use a remote database but my host doesnt have port for the database!
 

raefor

New Member
Hi,
Ta! I'll see what I can come up with over the weekend.
I'm busy working on some php pages that link to the Sam database - the stuff that ships with it ain't great. I should be able to free up some of that for others to use too if they want
Rising Free Radio
the website and buy links don't all work yet but you can see what I'm looking at

Anyone be interested in that?
was looking at your work I love it you think you can help me out have a radio on my site but the looks of it isn't to good my site
undergroundmania.co.uk

this is the code so you can look at it if you like to help me out thanks
myradio.php

PHP:
<?
error_reporting(0);
require_once("backend/functions.php");
dbconn(false);
$showradioinfo="page";
include("radio-info.php");
stdhead();
begin_frame("UGM FM Radio"); 
?>
<p align="center"><b><br>
<br>
<a href="JavaScript:radio_player()">Click here to tune in and listen now.</a></b></p>
<div align="center">
 <center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
 <tr>
   <td width="50%">
   <div align="center">
     <center>
     <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
       <tr>
         <td width="50%" align="center"><a href="JavaScript:radio_player()">
         <img border="0" src="images/win.gif" width="64" height="64"></a></td>
         <td width="50%" align="center"><a href="JavaScript:radio_player()">
         <img border="0" src="images/real.gif" width="80" height="70"></a></td>
       </tr>
       <tr>
         <td width="50%" align="center">
         <img border="0" src="images/shoutcast.gif" width="160" height="44"></td>
         <td width="50%" align="center">
         <img border="0" src="images/winamp.gif" width="75" height="76"></td>
       </tr>
     </table>
     </center>
   </div>
   </td>
   <td width="50%">
   <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
   <tr>
     <td align="left"><b>Status :</b> </td>
     <td><img border="0" src="<? echo $radioimg; ?>"></td>
   </tr>
   <tr>
     <td align="left"><b>Currently Playing :&nbsp; </b></td>
     <td><? echo $song[0]; ?></td>
   </tr>
   <tr>
     <td align="left"><b>Members Listening Now :&nbsp; </b></td>
     <td><? echo $currentlisteners; ?></td>
   </tr>
   <tr>
     <td align="left" valign="top"><b>Last 5 Tracks Played..&nbsp; </b></td>
     <td><? echo $song[1]."<BR>"; ?><? echo $song[2]."<BR>"; ?><? echo $song[3]."<BR>"; ?><? echo $song[4]."<BR>"; ?><? echo $song[5]."<BR>"; ?></td>
   </tr>
 </table>
   <p>&nbsp;</td>
 </tr>
</table>
 </center>
</div>
<p>&nbsp;</p>
<div align="center">
 <center>
 
 <p></p>
 
 </center>
</div>

<p align="center">You will need Windows Media Player 10+ or Real Player to to
listen to the radio stream! </p>
<p align="center">Radio Powered by  host-reg.co.uk</p>


<?
end_frame();

?>
radio.php

PHP:
<?
error_reporting(0);
require_once("backend/functions.php");
dbconn(false);
$showradioinfo="page";
include("radio-info.php");
stdhead();
begin_frame("UGM FM Radio"); 
?>
<p align="center"><b><br>
<br>
<a href="JavaScript:radio_player()">Click here to tune in and listen now.</a></b></p>
<div align="center">
 <center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
 <tr>
   <td width="50%">
   <div align="center">
     <center>
     <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
       <tr>
         <td width="50%" align="center"><a href="JavaScript:radio_player()">
         <img border="0" src="images/win.gif" width="64" height="64"></a></td>
         <td width="50%" align="center"><a href="JavaScript:radio_player()">
         <img border="0" src="images/real.gif" width="80" height="70"></a></td>
       </tr>
       <tr>
         <td width="50%" align="center">
         <img border="0" src="images/shoutcast.gif" width="160" height="44"></td>
         <td width="50%" align="center">
         <img border="0" src="images/winamp.gif" width="75" height="76"></td>
       </tr>
     </table>
     </center>
   </div>
   </td>
   <td width="50%">
   <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
   <tr>
     <td align="left"><b>Status :</b> </td>
     <td><img border="0" src="<? echo $radioimg; ?>"></td>
   </tr>
   <tr>
     <td align="left"><b>Currently Playing :&nbsp; </b></td>
     <td><? echo $song[0]; ?></td>
   </tr>
   <tr>
     <td align="left"><b>Members Listening Now :&nbsp; </b></td>
     <td><? echo $currentlisteners; ?></td>
   </tr>
   <tr>
     <td align="left" valign="top"><b>Last 5 Tracks Played..&nbsp; </b></td>
     <td><? echo $song[1]."<BR>"; ?><? echo $song[2]."<BR>"; ?><? echo $song[3]."<BR>"; ?><? echo $song[4]."<BR>"; ?><? echo $song[5]."<BR>"; ?></td>
   </tr>
 </table>
   <p>&nbsp;</td>
 </tr>
</table>
 </center>
</div>
<p>&nbsp;</p>
<div align="center">
 <center>
 
 <p></p>
 
 </center>
</div>

<p align="center">You will need Windows Media Player 10+ or Real Player to to
listen to the radio stream! </p>
<p align="center">Radio Powered by  host-reg.co.uk</p>


<?
end_frame();

?>
thanks;)
 

risingfree

New Member
Hi Reafor,
It's difficult to know what you want really. I registered and had a look at your page but I don't know what you have in mind.
I can help probably but you'll need to let me know what your vision is.

First thing I'd say is take it out of the forum template. ;)
My front page just uses the the stuff from here and a small flash player it doesn't use Sam.
In fact the info you currently have could all come from here
The other pages just pull info from the Sam Db which is on the server rather than local.


I can send you a copy of those pages to play with if you want but they would need to access a Db on the server or be able to access the Db on your local machine. To do that I think you would need to install a wamp server locally. This is a good one:
SourceForge.net: Web.Developer Server Suite
You would probably have to install that and then reinstall Sam though.

Let me know what you are thinking Reafor

cheers
mike
 
Last edited:

raefor

New Member
Hi Reafor,
It's difficult to know what you want really. I registered and had a look at your page but I don't know what you have in mind.
I can help probably but you'll need to let me know what your vision is.

First thing I'd say is take it out of the forum template. ;)
My front page just uses the the stuff from here and a small flash player it doesn't use Sam.
In fact the info you currently have could all come from here
The other pages just pull info from the Sam Db which is on the server rather than local.


I can send you a copy of those pages to play with if you want but they would need to access a Db on the server or be able to access the Db on your local machine. To do that I think you would need to install a wamp server locally. This is a good one:
SourceForge.net: Web.Developer Server Suite
You would probably have to install that and then reinstall Sam though.

Let me know what you are thinking Reafor

cheers
mike
thanks for your help will look in to it and as fer as not being on my server just saves a bit of room :yes:
soryy forgot email raefor@hotmail.com for the files to look at
 
Last edited:

scorpio4646

New Member
Hi I'm new to IR but have been using SAM for several years. I use PHPNUKE check out my site.I am testing IR on my home PC today before going live with it tomorrow, Had no probs setting it up with SAM

www.cool-fm.net
 
Top