Adding a piece of script.

ukdenny
@ukdenny
6 years ago
304 posts
I don't understand why if I add a piece of script to my blog it works but adding to a page created only a place displays and not the item. What I am trying to do is add an Internet Radio Player to my site. (Flashback skin)
player.jpg
player.jpg  •  401KB


updated by @ukdenny: 05/24/18 11:26:52AM
paul
@paul
6 years ago
4,326 posts
It’s likrly that your script is being stripped out when the template is parsed. Try wrapping it in {literal}{/literal} smarty tags


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
304 posts
Hi Guys, I tried that but it's adding the p the code is attached in screenshot
sourcecode.jpg
sourcecode.jpg  •  37KB


updated by @ukdenny: 02/23/18 02:52:10AM
paul
@paul
6 years ago
4,326 posts
Where are you trying to add this script? In a template or via an HTML Editor?


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
304 posts
Sitebuilder>Tools>PageBrowser>Radio-Broadcast>Sitebuilder (yellow Button)>ModifyThis Widget>Widget Content>Source Code
paul
@paul
6 years ago
4,326 posts
Copy me the script you are trying to enter (put it inside [ c o d e ] [ / c o d e ] BBCode tags (without the spaces)) and I'll try it here.
Thanks


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
304 posts
The outcome of this is shown on the 3 screenshots
Paul2.jpg
Paul2.jpg  •  224KB

Paul3.jpg
Paul3.jpg  •  369KB

Paul1.jpg
Paul1.jpg  •  156KB

paul
@paul
6 years ago
4,326 posts
Can you put the script here, on this ticket thread, inside the code tags, so that I code paste it into a widget and try it?


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
304 posts
<script src="http://player.radiocdn.com/iframe.js?hash=285294b103c512fccc6edb66e9288785f0ef6ec5-450-135"></script>
paul
@paul
6 years ago
4,326 posts
Try this inside a Template Code widget -
{literal}
<script src="http://player.radiocdn.com/iframe.js?hash=285294b103c512fccc6edb66e9288785f0ef6ec5-450-135"></script>
{/literal}

It works for me - http://pauldevcom.jamroomhosting.com/Radio-Broadcast


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
304 posts
It's quite annoying when you can do it and I can't. My outcome screenshots
Paul5.jpg
Paul5.jpg  •  225KB

Paul6.jpg
Paul6.jpg  •  404KB

Paul4.jpg
Paul4.jpg  •  153KB

paul
@paul
6 years ago
4,326 posts
Try it inside a template code widget and not the HTML Editor


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
304 posts
I could get that to work either. Why does it work for you? what exactly did you do Paul to get it working on thw above link?
paul
@paul
6 years ago
4,326 posts
What's your admin login? I'll take a look.


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
304 posts
how to I get the admin details to you without them displaying here please
updated by @ukdenny: 02/23/18 05:21:31AM
paul
@paul
6 years ago
4,326 posts
Sorry - forgot this was the forum. Send them to support[at]jamroom[dot]net


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
304 posts
It appears that I need to have a Priority Support Subsciption to get more help?
paul
@paul
6 years ago
4,326 posts
Sorry - use our contact form then - https://www.jamroom.net/form/contact_us


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
304 posts
Thank you
sent
updated by @ukdenny: 02/23/18 06:31:53AM
paul
@paul
6 years ago
4,326 posts
Try it now. Your site is 'https' and your script url was 'http'. You can't mix those when the original site is https.
Have made the script url https and it works.


--
Paul Asher - JR Developer and System Import Specialist
ukdenny
@ukdenny
6 years ago
304 posts
Thanks Paul, I have found over the years the slightest mistake with code causes so much grief. I never thought of that. Most greatfull

Tags