Back to vBulletin 3.8 Add-ons

Wabuf Sonic Shoutcast Player
Mod Version: 1.00, by Wabuf

vB Version: 3.8.x Rating: (4 votes - 5.00 average) Installs: 16
Released: 20 Jul 2009 Last Update: Never Downloads: 139
Not Supported Template Edits Additional Files  

Wabuf Sonic v1.0


Description:
Adds a flash player that tunes into your WHMSonic radio station on a popup page for your users to listen to while they browse your forums.

Credits / Thanks:
Thanks to Gary King for the page tutorial: How to create your own vBulletin-powered page! (uses vB templates)
WHMSonic for the Flashplayer /javascript / embedding tutorial (found in cPanel) http://www.whmsonic.com

Things I'm looking to do in next release:
- add an adminCP menu
- fix the date (product refused to export with template so it was coded manually I put in all 9s lol if someone knows how to get it to export properly, do drop me a PM as I read vbulletin's manual and I must of missed something)
- Add two phrases IP and radio name
- make a better popup window

Install Guide:

Files to Upload:
scast.php
player.swf
swfobject.js

File to import:
product-wbfsonic.xml

Upload the three files in /upload to your forum root folder.

Go to plugins / products - Manage Products
Click on Add/Import product and browse for product-wbfsonic.xml click Import.

Now the template editing work:

Open up Header template and find:
Code:
</style>
Under that add:
Code:
<script type="text/javascript" >
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=780,height=250');");
}
// End -->
</script>
Save the template.

Open up Navbar template and find:
Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
Under it add this:
Code:
<td class="vbmenu_control"><a href="javascript:popUp('scast.php')">Radio</a></td>
Save the template.

Open up scast template and find:
Code:
<td class="tcat">Radio Name Here</td>
Replace it with your radio name

Find:
Code:
s1.addParam("flashvars","file=http://IP:port/;stream.nsv&type=mp3&volume=50&autostart=true");
Replace http://IP:port with your radio IP and port number. (You can also set whether autostart is true or false here too)

Save the template.

That should do it! If you like this mod click install.

Live Demo:
http://www.wabuf.com/forums/index.php
Click Radio it'll popup in a new window and autoplay whatever I'm streaming

Download

File Type: %1$s wbfSonic.zip (46.8 KB, 147 downloads)

Similar Mods

New Posting Features Wabuf BB Code Pack! vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024