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 - Radio and TV Player 3.8.x (https://vborg.vbsupport.ru/showthread.php?t=202415)

Dream 01-19-2009 10:00 PM

Radio and TV Player 3.8.x
 
1 Attachment(s)
Mark this thread as installed only if you want to receive important update notifications by email.

This will add a fully featured Radio and TV Streaming Player with stations library to your forum.

Features:
- Users can add / delete / edit own stations (controlled by usergroup permissions)
- Users can have a favorite stations list
- Report broken / duplicate stations links
- Totally coded in AJAX (no page reloads)
- Plays Windows Media Player, Real Player and Quicktime streams
- Shows user's favorites and last played station in profile page
- and much more...

Installation is easy. You need to upload some files, import a product, import the default stations (if you wish) and make only two manual navbar template edits, one for the popup link and another for the javascript that opens the popup. This is optional and the link can be put elsewhere, just remember to also add the javascript on the same page.

Nominate this mod for Mod of the Month!

If you like this script you can donate :) (note that won't make me work!)

Donations so far: U$ 137.65

This mod is "Re-usable Code", meaning you can modify and release your modified version.

You are responsible for the streams you add to your website. The mod author doesn't take responsibility for possible copyright infringements in some countries by using some stations.

Arabic and Chinese don't work with Ajax, so this mod won't work, sorry.


This mod took roughly two weeks to code, so it should be somewhat good and bug free :)

Dream 01-20-2009 03:21 AM

<font size="1">Version History

Version 1.0
- public release

Version 1.1
- changed order on setting usergroup permissions, requirements are now checked in this order: Half User > Full User > Admin > Banned User, checks for primary and secondary usergroups and userids for banned users
- fixed style issue with the station pages
- fixed duplicate station not being reported ("reporttype" gpc var wasn't being cleaned)
- fixed member number not showing on "reported by" url (was using $user[userid] instead $report[userid])
- fixed station not being editable/deletable by user who added it ($vbulletin var wasn't on global in function rs_construct_station_options() and rs_check_ownership() )

Version 1.2
- fixed bug with deleted stations reports showing (reports are now removed when the station is removed)
- added template group (added plugin "Radio Stations - Add Template Group")
- changed text input classes from smallfont to bginput, with style="font-size: 11px"
- added Real Player support
- added expand/collapse arrows to tables

Version 1.3
- made hardcoded option "Statistics Entries" into option in acp
- user name markups now consider displaygroupid
- station list breadcrumbs now shows "Category: All" instead "All Categories"
- mod name changed to "Radio and TV Add-on" (changed a bunch of phrases, changed radiostations.php to radioandtv.php, edited plugins, changed navbar code, edited javascript code, won't change phrases names though nor product ID nor db table names, it's a little wierd but it's ok)
- made hardcoded option "Stations Per Page" into option in acp
- changed look of "currently playing" station info and options
- created a popup window to view TV stations in bigger player windows

Version 1.4
- moved group permissions to vb's permission system
- added "can view add-on" permission
- added window popup that shows who rated each station

Version 1.5
- added Category column to station lists

Version 1.6
- added clean up script to admin options, to clean bad ratings and stations
- added "Options" link in the acp menu

Version 1.7
- added Quicktime support

Version 1.8 beta
- changed all ajax code for compatibility to vB 3.7

Version 1.9
- added option to show favorites and last station played in the users profiles

Version 2.0
- changed the profile info slightly

Version 2.1
- security update, bug fixes and station ID number now shows in front of station name

Version 2.1.2
- minor bugs

======================================

Uninstall Instructions

1. check your products section on the admincp to see which version you are running

2. if you want to backup your stations, use the export function in the admincp

3. delete files

v1.4, v1.5
admincp/radioandtv_admin.php
includes/xml/bitfield_radioandtv.php
includes/xml/cpnav_radioandtv.php
radioandtv.php

v1.6, v1.7, v1.8 beta, v1.9, v2.0, v2.1, v2.1.1, v2.1.2
admincp/radioandtv_admin.php
admincp/radioandtv_cleanup.php
includes/xml/bitfield_radioandtv.php
includes/xml/cpnav_radioandtv.php
radioandtv.php

4. uninstall product from admincp

5. you are done

</font>

Dream 01-20-2009 03:22 AM

Station XMLs

Share your radio and TV stations in this thread. The XMLs you post will end here.

by Dream
- Some Brazilian Radio Stations 07/13/2007
- Los Angeles and San Francisco radio stations 07/13/2007
- Mixed radio stations (.977 The Hitz Channel, 3FM Current/Classic Hits, Cyprus Mix FM, Idobi) 01/17/2008
- Two dance/House stations 01/17/2008

by MorrisMcD
- Cincinnati Radio Stations 09/03/2007

by Scavenger
- Some TV Stations 09/16/2007

by yoyoyoyo
- 370 TV Stations 10/07/2007

by Big-K
- 292 UK Radio Stations 11/11/2007

by KURTZ
- RMC - Radio Montecarlo (Italian Radio) 01/13/2008
- 23 Italian Stations 02/05/2008

by NAZIA
- 25 hindi and urdu radio stations

=======================================

Where to get Radio Stations

http://www.radio-locator.com/
http://www.mikesradioworld.com/

=======================================

Where to get TV Stations

http://wwitv.com/portal.htm
http://www.medinalia.com/
http://www.channelchooser.com/
http://www.teleaire.tv/
http://www.tv-links.co.uk/

=======================================

HINTS and Troubleshooting and FAQ and Extra Info

How to add header and footer to the add-on page

How to enable visualization on Firefox

How to get streaming URLs from websites

=======================================

Translations

Post your translations on this thread and they will be listed here. Don't export your whole language, just the Radio and TV product phrases obviously.

German Translation for version 2.0 - by redlabour

=======================================

to-do List

Post ideas for improvements and they may be added here.

Planned features for vB 4 (note that the features are my wish list, and may not be feasible so they are not final)

- on/off switch for each station info
- [s]check if Radio and TV text on navbar is hardcoded, and make it not[/s] it's not hardcoded, it's the phrase "rs_radiostations"
- make a system where admins can add they own players (don't forget support for flash, embed and object, just let them add the whole code with replacement variables)
- hide profile info if no radio has been listened or no favorites
- put javascript in a .js
- deleting station in favorites creates a ghost favorite entry

Dream 01-20-2009 03:22 AM

reserved3

Dream 01-20-2009 03:25 AM

Right now this is just a re-post of the current version of the mod found in the 3.7.x forum, version 2.0 so you don't need to upgrade.

Sunka 01-20-2009 06:51 AM

First... :p

3.8 section...thanks

anooooos 01-20-2009 08:02 AM

good sank

7lanet 01-20-2009 09:07 AM

i love this mod put

Quote:

Arabic and Chinese don't work with Ajax, so this mod won't work, sorry.
sorry my forum Arabic

NGUYENDUCTRUONG 01-20-2009 09:23 AM

thanks for share :D

adhmwagde 01-20-2009 11:22 AM

wooow it's great project .. i will try to translate in arabic :) to share with more members i will be tired to search for arabic channels i like it :).

Arabic and Chinese don't work with Ajax, so this mod won't work, sorry. :) i didn't see befor but this mean i can't install in my VB ? my version is 3.8

soundbarrierpro 01-20-2009 12:27 PM

Sooooo, then there's nothing new? It's just posted here now? That's all?

Dream 01-20-2009 03:35 PM

Quote:

Originally Posted by adhmwagde (Post 1718889)
wooow it's great project .. i will try to translate in arabic :) to share with more members i will be tired to search for arabic channels i like it :).

Arabic and Chinese don't work with Ajax, so this mod won't work, sorry. :) i didn't see befor but this mean i can't install in my VB ? my version is 3.8

Yes sorry.
Quote:

Originally Posted by soundbarrierpro (Post 1718927)
Sooooo, then there's nothing new? It's just posted here now? That's all?

Yes it was asked in the other post that I reposted this here.

slcsr 01-20-2009 06:19 PM

maybe im blind but i cant find where to change permissions for usergroups to allow access to radio and tv?

Ted Clore 01-20-2009 07:15 PM

Every time I try to install with Import Product I get the following error. I bet I have tried at least a dozen times to get this to load.

Any ideas?

-------------------------------------------------------------------------------------

Database error in vBulletin 3.8.0:

Invalid SQL:
ALTER TABLE usergroup ADD radiotvpermissions INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL;

MySQL Error : Duplicate column name 'radiotvpermissions'
Error Number : 1060
Request Date : Tuesday, January 20th 2009 @ 09:11:00 PM
Error Date : Tuesday, January 20th 2009 @ 09:11:00 PM
Script : http://************/forums/admincp/p...=productimport
Referrer : http://***********/forums/admincp/pl...?do=productadd
IP Address : 76.251.210.89
Username : *********
Classname : vB_Database
MySQL Version : 5.0.51a-community


------------------------------------------------------------------------------------

Thank you for your help. BTW, I have tried to delete all of the database files that start with radio. This does not help. I have deleted all of the files and re-uploaded them to proper dierectories. This does not help either. I'm scratching my head.

Signed: Frustrated in Michigan.

Dream 01-20-2009 08:23 PM

Try removing the radioandtvpermissions column from the table usergroup and try again.

Did you have this mod before, but didn't uninstall?

Nadeemjp 01-20-2009 10:25 PM

i have it from 3.7 version and it is running fine in 3.8.
should i still upgrade it to 3.8?

Nadeemjp 01-20-2009 10:29 PM

thankx for bringing it here bro:)
when do u plan to release a new version?

Dream 01-21-2009 12:01 AM

Right now I'm really busy working on another project that takes most of my time, but I'm considering doing this not sure when.

Ted Clore 01-21-2009 02:28 PM

Quote:

Originally Posted by Dream (Post 1719420)
Try removing the radioandtvpermissions column from the table usergroup and try again.

Did you have this mod before, but didn't uninstall?

I had the mod several versions of vB ago. Like at 3.2.0. When I did an upgrade it didn't work so I uninstalled and tried a newer version of the Radio/TV Add-on. It wouldn't ever install to the newer version. I have tried with each new updated version of both vB and the Radio/TV player.

I liked the Add-on very much when it worked.

I will try removing the radioandtv permissions column from the table usergroup. I'll be back.

Ted Clore 01-21-2009 02:36 PM

Quote:

Originally Posted by Ted Clore (Post 1720165)
I had the mod several versions of vB ago. Like at 3.2.0. When I did an upgrade it didn't work so I uninstalled and tried a newer version of the Radio/TV Add-on. It wouldn't ever install to the newer version. I have tried with each new updated version of both vB and the Radio/TV player.

I liked the Add-on very much when it worked.

I will try removing the radioandtv permissions column from the table usergroup. I'll be back.

OK, that worked. Thank you very much. Click Installed.

Dollah 01-21-2009 07:27 PM

Looks nice cant wait 2 install thanks

positiverep 01-21-2009 09:31 PM

Great mod! just wondering is it legal to have tv stations
on your site, is there copyright issues?

SuperTaz 01-24-2009 09:36 PM

When I click on the Options link in the drop down menu in the AdminCP it does not display anything. Any thoughts why?

Rene Kriest 01-24-2009 10:29 PM

r00lez! Absolutely awesome addon and almost 100% my taste in music style - I luv techno since 1990. ;)

SuperTaz 01-24-2009 11:07 PM

Dream, you said to do this to get the streams:

Quote:

Hmm a little HTML knowledge helps, as you will be looking at website's source code (right-click + show source) to get URLs. They are usually inside <object> or <embed> tags in the format url="http://www.domain.com/stream.asx", which would be pretty much an example of URL to add to the mod. Hope this helps.
When I right click it does not have the option to Show Source. What am I doing wrong?

Dream 01-25-2009 01:01 AM

Depends on the browser, "Show Source" is on Firefox I think, on other browsers is another menu item, you gottta check what is the one that shows the page code for your browser.

An user had a problem with the options menu because the cpnav.xml file had &amp; in it, not sure what caused it for him (a mod perhaps) so to get to the options go to vBulletin Options > Radio Options instead.

SuperTaz 01-25-2009 02:19 AM

Quote:

Originally Posted by Dream (Post 1723833)
Depends on the browser, "Show Source" is on Firefox I think, on other browsers is another menu item, you gottta check what is the one that shows the page code for your browser.

An user had a problem with the options menu because the cpnav.xml file had &amp; in it, not sure what caused it for him (a mod perhaps) so to get to the options go to vBulletin Options > Radio Options instead.

Well, I found the source code for the sites. But, the code for the feeds are not on the main site codes nor is it on the "Listen Now" feeds. How do you get the feed code from the radio station sites? Do I look for it through the main site source code or go somewhere else to find it?

Dream 01-25-2009 02:57 AM

Listen Now opens a window? You need to get the url from the window that plays the station.

Some sites uses tricks to hide the urls.

SuperTaz 01-25-2009 04:38 AM

Now you tell me. lol I see the tricks. They use javascript to hide the URL's.

nerofix 01-25-2009 08:22 PM

More translations needed ;-)

Da22Da 01-27-2009 01:11 AM

Thanks for the nice work Dream
installed and working with translation code to insert into ajax so it will show correct charcters so far 15 % done no promises for full translated version yet
thanks again

SuperTaz 01-27-2009 01:46 AM

1 Attachment(s)
Here you go Dream. I made this XML of 5 stations around the NY, NJ, PA and CT area.

cavebox 01-27-2009 06:23 PM

Hi all,

First of all, I enjoyed this mod in my 3.7.4 version of VB.

I upgrade to 3.8 and now i'm getting this error:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 19

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 42

Warning: Invalid argument supplied for foreach() in [path]/includes/init.php(298) : eval()'d code on line 70

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_top.php on line 621

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/includes/vba_cmps_include_top.php on line 621

Anybody who can help?

I already did a new install, but keeping the same

Thanks in advance.

mstu 01-28-2009 12:28 AM

First off. Awesome Mod! Installed clicked :)

I am sure this has been brought up before somewhere. Could the random station played when the page loads be pulled from the users favorites list? If they don't have a favorite saved then pull a random station from the main list?

talkncaasports 01-29-2009 09:29 AM

VERY NICE MOD!!!

Love it!

Any suggestions on where to find more stations though?

DanTHEGREAT 01-29-2009 10:33 AM

How do you get the streaming URL?

talkncaasports 01-30-2009 05:56 AM

Quote:

Originally Posted by DanTHEGREAT (Post 1728036)
How do you get the streaming URL?

This is how I am doing it...
Code:

open windows media player on your desktop.

go to the radio tuner

click on internet radio

choose your genre (show all)

Find a station to listen to. and click on play

After it starts to play, click on you library. Then double click on "now playing" icon, not the tab. It should show you the radio station. Right click and choose properties. Copy the URL and then add it as a new station.

000Audio.com has over 80 station to choose from. And there are other places that you can add too.

Anyway, that is the way I did it.

cavebox 01-30-2009 06:59 AM

Quote:

Originally Posted by cavebox (Post 1726381)
Hi all,

First of all, I enjoyed this mod in my 3.7.4 version of VB.

I upgrade to 3.8 and now i'm getting this error:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 19

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 42

Warning: Invalid argument supplied for foreach() in [path]/includes/init.php(298) : eval()'d code on line 70

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_top.php on line 621

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/includes/vba_cmps_include_top.php on line 621


Anybody who can help?

I already did a new install, but keeping the same


Thanks in advance.

Nobody???

talkncaasports 01-30-2009 07:39 AM

Quote:

Originally Posted by cavebox (Post 1726381)
Hi all,

First of all, I enjoyed this mod in my 3.7.4 version of VB.

I upgrade to 3.8 and now i'm getting this error:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 19

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 42

Warning: Invalid argument supplied for foreach() in [path]/includes/init.php(298) : eval()'d code on line 70

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_top.php on line 621

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/includes/vba_cmps_include_top.php on line 621


Anybody who can help?

I already did a new install, but keeping the same


Thanks in advance.

Did you try disabling vbadvanced to see if that cures your problem?

cavebox 01-30-2009 08:16 AM

Quote:

Originally Posted by talkncaasports (Post 1728885)
Did you try disabling vbadvanced to see if that cures your problem?

When i disable vbadvanced its working, but with vb 3.7.4 it was working with vbadvanced and i tried (i think) about everything.

So if this means i have to choose between those 2, i'm dissapointed and have to remove the radio:(


All times are GMT. The time now is 05:22 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.01849 seconds
  • Memory Usage 1,854KB
  • 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
  • (1)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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