Wabuf
07-19-2009, 10:00 PM
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: https://vborg.vbsupport.ru/showthread.php?t=62164
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:
</style>
Under that add:
<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,men ubar=0,resizable=0,width=780,height=250');");
}
// End -->
</script>
Save the template.
Open up Navbar template and find:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
Under it add this:
<td class="vbmenu_control"><a href="javascript:popUp('scast.php')">Radio</a></td>
Save the template.
Open up scast template and find:
<td class="tcat">Radio Name Here</td>
Replace it with your radio name
Find:
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 ;)
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: https://vborg.vbsupport.ru/showthread.php?t=62164
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:
</style>
Under that add:
<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,men ubar=0,resizable=0,width=780,height=250');");
}
// End -->
</script>
Save the template.
Open up Navbar template and find:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
Under it add this:
<td class="vbmenu_control"><a href="javascript:popUp('scast.php')">Radio</a></td>
Save the template.
Open up scast template and find:
<td class="tcat">Radio Name Here</td>
Replace it with your radio name
Find:
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 ;)