vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Wabuf Sonic Shoutcast Player (https://vborg.vbsupport.ru/showthread.php?t=218982)

Wabuf 07-19-2009 09:00 PM

Wabuf Sonic Shoutcast Player
 
1 Attachment(s)
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:
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 ;)

Shaheen 07-20-2009 01:14 AM

Thanks , nice hack . Will try it

thedudleys 07-20-2009 06:52 AM

oh i have got to get this and install it for my radio!

ubcforums 07-20-2009 08:43 AM

Cool !

gwerzal 07-20-2009 09:14 PM

Thnaks for sharing

Wabuf 07-20-2009 09:30 PM

Quote:

Originally Posted by Shaheen (Post 1851962)
Thanks , nice hack . Will try it

Your welcome, hope you like it!

Quote:

Originally Posted by thedudleys (Post 1852051)
oh i have got to get this and install it for my radio!

when you do be sure to click install ;)

Quote:

Originally Posted by ubcforums (Post 1852092)
Cool !

Glad you like it :)

Quote:

Originally Posted by gwerzal (Post 1852482)
Thnaks for sharing

Your welcome thanks for installing :)

Hornstar 07-21-2009 05:17 AM

When I clicked Radio on your site no music played in the popup.

Wabuf 07-23-2009 01:01 AM

Quote:

Originally Posted by hornstar1337 (Post 1852685)
When I clicked Radio on your site no music played in the popup.

That is because I don't stream 24/7.

Joseph C 11-04-2009 09:33 PM

None of my styles have a </style> in their headers???

Wabuf 11-05-2009 12:02 AM

Quote:

Originally Posted by Joseph C (Post 1910321)
None of my styles have a </style> in their headers???

What you can do is add the code then before the </head> or similar closing tag.


All times are GMT. The time now is 05:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01607 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete