By ravid on
I am trying to design an audio streaming block on the front page that will play only if a user has certain roles. I searched for it and found a solution to it which pretty much does this. Now I hae couple of question regarding this one :
The streaming audio server authenticates the username and password for the audio stream. I can't quite post the entire code from the block as the forums disallows me to do so.
I have the followng link inside $output .= in the audio block
I am needing help on how to substitute the $user and $pass in the above link inside the $output .=
Any help on this one is greatly appreciated. Thanks in advance.
Comments
The link was stripped in the above post
Sorry looks like the link in the above has been stripped. The code inside the $output .= is
$output .= 'VALUE="http://$user:$pass@xx.xx.xx.xx/audio.mp3">'
I have the followng link inside $output .= in the audio block
VALUE="http://$user:$pass@xx.xxx.xxx.xx:xxxx/audio.mp3">
I am needing help on how to substitute the $user and $pass in the above link inside the $output .=
The above is not full code as the forums restrict me from posting.
use code tags
you need to enclose code in
<code>code tags</code>
wellsy
orchidsonline.com.au
Thanks Wellsy, here we go
Thanks Wellsy, here we go the code (hopefully it displays this time with code tags).
In the above code how do I substitute $user and $pass with Drupal login username and password?
In the preview still some of the code is not appearing and when tried to subimit it comes up with suspicious code.
Any help would be greatly appreciated
Bump.... Sorry to bump it
Bump.... Sorry to bump it but just wondering if anyone has any tips for this one?
Cheers
ah the code is there now
but I am sorry to say that I am not enough of a PHP guru to help with your question.
Be patient...someone will find the time to help soon I am sure
wellsy
orchidsonline.com.au
Thanks for that anyways.
Thanks for that anyways. Will wait and see if anyone can help me with this.
Cheers