• Welcome to Simple Machines Community Forum. Please login or sign up.

Requirement of a Music and Picture view bloc.

Started by $ilv3r-cr0w, April 25, 2013, 03:54:32 PM

Previous topic - Next topic


Ola Bros.
I own a website configured by smf.
I use simple portal to edit the blocs at the homepage.
Need some help to know how to get a bloc which views audio visual pictures and also a music bloc which playes some desired music.
I would have provided a website configured by smf which already has such features but I am not allowed to post any external links here.
An help is appreciable.



For portal related support regarding the blocks please go to the mods support topic or www.simpleportal.net


April 25, 2013, 05:21:47 PM #2 Last Edit: April 25, 2013, 05:23:30 PM by Old Fossil
Have written a php script and did placed this in Simple Portal (Own Php Block),when members click on the image, a radio stream player opens. It's a little extra for our members,and actually it's a trial if members do appreciate this.
Php script will show random (2 Dutch stream radio players...........(Associated images uploaded with imgur image sharer)

[1]['link'] = "http://www.radioveronica.nl/player/veronica-rockradio";
$banner[1]['img'] = "http://i.imgur.com/GTZ4xNT.png";

$banner[2]['link'] = "http://www.soulradio.nl/player/SRwebplayer.html";
$banner[2]['img'] = "http://i.imgur.com/Rl5ajFL.png";

//number of banners
$random rand(1,$banners);     
"<a href=\"".$banner[$random]['link']."\" target=\"_blank\"><img src=\"".$banner[$random]['img']."\" border=\"0\"></a>";

Maybe you can use this.



Please use the # bbcode when typing code into a post it makes it easier to read.



sorry forgot the code tags, thank you for changing it