MyBB Community Forums

Full Version: Embed an internet radio into forum style?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to embed an internet radio into a forum style, so that it'll display on top of each page?

Or at least in a post?

Here's the embed code I have

<script>(function (win, doc, script, source, objectName) { (win.RadionomyPlayerObject = win.RadionomyPlayerObject || []).push(objectName); win[objectName] = win[objectName] || function (k, v) { (win[objectName].parameters = win[objectName].parameters || { src: source, version: '1.1' })[k] = v; }; var js, rjs = doc.getElementsByTagName(script)[0]; js = doc.createElement(script); js.async = 1; js.src = source; rjs.parentNode.insertBefore(js, rjs); }(window, document, 'script', 'https://www.radionomy.com/js/radionomy.player.js', 'radplayer'));
radplayer('url', 'galnet');
radplayer('type', 'horizontal');
radplayer('autoplay', '0');
radplayer('volume', '50');
radplayer('color1', '#ffce08');
radplayer('color2', '#3399ff');
</script>
<div class="radionomy-player"></div>
If you want it on every page then try using the following templates:
header
index
footer

For thread try the following:
showthread

For every post try the following:
postbit
postbit_classic
Thanks for your advice. Will that code work in CSS? Sorry, this is all fairly new to me...
(2015-11-11, 10:10 PM)rootsrat Wrote: [ -> ]Thanks for your advice. Will that code work in CSS? Sorry, this is all fairly new to me...

It should
That has worked perfectly fine, thank you all! Smile