help with sam

Help with listening and requesting. Frequently Asked Questions, How to contribute.
Post Reply
strawbs89
Posts: 4
Joined: Thu Apr 26, 2018 10:03 pm

help with sam

Post by strawbs89 »

hi there is anyone avalible to help me with my request.php page
i would love to see peoples names next to the song in the now playing when they dedicate
a song to someone
Tjoe
Posts: 23
Joined: Wed Mar 21, 2018 12:36 pm

Re: help with sam

Post by Tjoe »

strawbs89 wrote: Thu Apr 26, 2018 10:21 pm hi there is anyone avalible to help me with my request.php page
i would love to see peoples names next to the song in the now playing when they dedicate
a song to someone
Hello Strawbs,

Your username looks familiar - do I know you from somewhere else?

First, some basics.
Can I assume that you have SAM up and running and that you can see the queue (now playing, up coming, and previously played) from your web server?
Can people make requests (do they work)? Are they typing in a name and a message?

Typically, the dedications are automatically displayed if someone types something into the dedication box. The default code does not require that people type something. I modified my code to show a ">>" in the dedication even if they don't type anything. This way I can see if a song was requested or played by SAM.
Do your SAM files exist on your web server in a folder called "php" or in "samPHPweb"? I'm having to use a hybrid of both folders. When my web host forced me to update the php level of my server, some things stopped working - like making requests. My files, in "php", are from a very old version of SAM and not compatible with php versions higher than 5.3. So I loaded the samPHPweb version of the files, but the queue files still didn't work (under any version of php). I eventually decided to use the newer playlist.php files for requesting/dedicating and stay on the older queue files.
The reason I ask about the version of sam web files is under the "php" version is a file ( /php/reqlist.php ) that lets you see all requested songs, and the dedications. If you have that file, can you see the dedications there?

Tjoe
strawbs89
Posts: 4
Joined: Thu Apr 26, 2018 10:03 pm

Re: help with sam

Post by strawbs89 »

yes my requests works as you can see here http://urban8radio.co.uk/urbanrequests/web/index.php

and is there any chance you could help me modify mine please? and i don't think you know me from anywhere lol
strawbs89
Posts: 4
Joined: Thu Apr 26, 2018 10:03 pm

Re: help with sam

Post by strawbs89 »

could you please help me do something like you're now playing and coming up please
Post Reply