[ABD] Radio Mod for phpBB3

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

[ABD] Radio Mod for phpBB3

Post by stokerpiller »

Hello

I have been using this Radio MOD on my old phpBB2 forum and now on my phpBB3 forum.
It was originally created by Pelle van der Scheer
I have just modified it a little.
Firefox Users will need to enable the IE Tab for wmp visual effects

Description: Gives Your Forum a Radio streaming player where You can configure the stations.
Demo & Download: http://www.phpbb3bbcodes.com/radio-mod-t1273.html

Upper right corner, next to the FAQ link. Only installed on the Prosilver Style.

MOD Instructions:
Download the attached zip file, upload the radio folder to the root of Your forum.

Open styles/prosilver/overall_header.html
Find:

Code: Select all

<li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
Before add:

Code: Select all

<li class="icon-logout"><a href="radio/radio.php" onclick="window.open('radio/radio.php','','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=420, height=400, left=20, top=20'); return false;">Radio</a></li>
Save, upload, purge cache and refresh the template in ACP

Configuration of the Radio Stations:
Just open the radio.xml and add or remove to what ever You want.

Screenshoots:
The link looks like this (Next to FAQ)
Image

Popup Radio looks like this
Image
Last edited by stokerpiller on Wed Jun 03, 2009 2:11 pm, edited 2 times in total.
I am done with phpBB

jimcarrel
Registered User
Posts: 671
Joined: Fri Jul 27, 2007 10:49 pm
Location: Oklahoma City, Oklahoma

Re: [RC] Radio Mod for phpBB3

Post by jimcarrel »

very interesting. Another Radio mod.
I will probably hunt for other stations tho.
Electric disco dance is not my choice (at 57).
Nice mod tho.
Grace--Getting what I don't deserve
Mercy--Not getting what I do deserve

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Radio Mod for phpBB3

Post by stokerpiller »

Glad You liked it Jim.
I will probably hunt for other stations tho.
Electric disco dance is not my choice (at 57).
You have to be open minded, man :mrgreen:

Stations are only for demo.
There are some danish stations too. I guess most of You will replace them :D
I am done with phpBB

phxcityslick
Registered User
Posts: 183
Joined: Sat Dec 02, 2006 9:18 pm

Re: [RC] Radio Mod for phpBB3

Post by phxcityslick »

Can someone help me and either teach me to convert for subsilver or just give me the code?

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Radio Mod for phpBB3

Post by stokerpiller »

Hi phxcityslick

Please tell me where You want the link to appear in Subsilver and if only logged in users should be allowed to use it?
I am done with phpBB

phxcityslick
Registered User
Posts: 183
Joined: Sat Dec 02, 2006 9:18 pm

Re: [RC] Radio Mod for phpBB3

Post by phxcityslick »

yes only logged in users allowed to use it and be before the Faq. I know where to do it just not the how or what code

mine looks like

User Control Panel • 0 new messages • Blogs • My Blog • FAQ • Search • Members • Logout [ Major Payne ]

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Radio Mod for phpBB3

Post by stokerpiller »

Okay, then I need the code for Your overall_header.html
I am done with phpBB

phxcityslick
Registered User
Posts: 183
Joined: Sat Dec 02, 2006 9:18 pm

Re: [RC] Radio Mod for phpBB3

Post by phxcityslick »

i left my pathetic attempt in there

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<!-- INCLUDE ca_config.html -->
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2002-2006 phpBB Group" />
<meta name="keywords" content="Defenders of Freedom, Freedom, Defenders, Counterstrike, CS, Custom Maps, Steam, Gaming, Half-Life, Half-Life 2, HL2, HL, Counter-Strike, Day of Deafeat, Team Fortress, Opposing Force, Blue Shift, console, games, Downloads, News, Trailers, Screenshots, Previews, Reviews, Hacks, Aimbot, Cheat, Walling, Cheats, Wallhack, Counte strike, Cs map, Cs Cheats, Cs Hileleri, Cs Hack, Cs Skin, Cs bot, Cs Pod, Cs wallhack, Ogc Hack, Ogz, Cs map bot, Cs Waypoint, Cs Map, CS Speed hack, Cs 1.6 hack " />
<meta name="description" content="The Defenders of Freedom clan was founded by three individuals who have or continue to serve in our nations military. We are a non-profit, multi-game clan. It is an invite only clan and does accept applications. We are looking for responsible individuals who want to be apart of a democratic based clan that cares about its members and their opinion. Remember for the most part nothing is set in stone in this clan and most matters will be open to the majority vote rule by all clan members. As a clan member you will have a set amount of admin in which to grow upon, please use it responsibly. Last but not least, have fun guys and we will see you in the servers." />
{META}
<title>{SITENAME} - <!-- IF S_IN_MCP -->{L_MCP} - <!-- ELSEIF S_IN_UCP -->{L_UCP} - <!-- ENDIF -->{PAGE_TITLE}</title>

<!-- IF T_STYLESHEET_LINK -->
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
<!-- ELSE -->
<style type="text/css">
{T_THEME_DATA}
</style>
<!-- ENDIF -->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="{T_THEME_PATH}/ie7.css" />
<![endif]-->

<script type="text/javascript">
<!--

<!-- IF S_USER_PM_POPUP -->
	if ({S_NEW_PM})
	{
		window.open('{UA_POPUP_PM}', '_phpbbprivmsg', 'height=225,resizable=yes,width=400');
	}
<!-- ENDIF -->

function popup(url, width, height)
{
	window.open(url.replace(/&/g, '&'), '_popup', 'HEIGHT=' + height + ',resizable=yes,scrollbars=yes, WIDTH=' + width);
	return false;
}

function jumpto()
{
	var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
	var perpage = '{PER_PAGE}';
	var base_url = '{BASE_URL}';

	if (page !== null && !isNaN(page) && page > 0)
	{
		document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * perpage);
	}
}

/**
* Find a member
*/
function find_username()
{
	<!-- IF UA_FIND_USERNAME -->
	window.open('{UA_FIND_USERNAME}', '_usersearch', 'height=500, resizable=yes, scrollbars=yes, width=740');
	<!-- ENDIF -->
	return false;
}

/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
	var parent = document.getElementById(id);
	if (!parent)
	{
		eval('parent = document.' + id);
	}

	if (!parent)
	{
		return;
	}

	var rb = parent.getElementsByTagName('input');
	
	for (var r = 0; r < rb.length; r++)
	{
		if (rb[r].name.substr(0, name.length) == name)
		{
			rb[r].checked = state;
		}
	}
}

<!-- IF ._file -->

	/**
	* Play quicktime file by determining it's width/height
	* from the displayed rectangle area
	*
	* Only defined if there is a file block present.
	*/
	function play_qt_file(obj)
	{
		var rectangle = obj.GetRectangle();

		if (rectangle)
		{
			rectangle = rectangle.split(',')
			var x1 = parseInt(rectangle[0]);
			var x2 = parseInt(rectangle[2]);
			var y1 = parseInt(rectangle[1]);
			var y2 = parseInt(rectangle[3]);

			var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
			var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
		}
		else
		{
			var width = 200;
			var height = 0;
		}

		obj.width = width;
		obj.height = height + 16;

		obj.SetControllerVisible(true);

		obj.Play();
	}
<!-- ENDIF -->

if(navigator.userAgent && navigator.userAgent.indexOf('Mac OS X') > 0)
{
	document.write('<link rel="stylesheet" href="{T_THEME_PATH}/mac.css" type="text/css" />');
}

//-->
</script>
</head>
<body class="{S_CONTENT_DIRECTION}">

<a name="top"></a>

<table border="0" cellspacing="0" cellpadding="0" width="{$CA_WIDTH}" id="maintable" align="center">
<tr>
	<td id="logorow" align="center"><div id="logo-left"><div id="logo-right">
		<a href="{U_INDEX}">{SITE_LOGO_IMG}</a>
	</div></div></td>
</tr>
<tr>
	<td class="navrow">
		<!-- IF not S_IS_BOT -->
			<!-- IF S_USER_LOGGED_IN --><a href="{U_PROFILE}">{L_PROFILE}</a> &#8226; <!-- ENDIF -->
			<!-- IF S_USER_LOGGED_IN -->
				<!-- IF S_DISPLAY_PM --><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a> &#8226; <!-- ENDIF -->
			<!-- ELSE --><a href="{U_REGISTER}">{L_REGISTER}</a> &#8226; <!-- ENDIF -->
		<!-- ENDIF -->
		<!-- IF U_RESTORE_PERMISSIONS --><a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a> &#8226; <!-- ENDIF -->
		<!-- BEGIN blog_links --> <a href="{blog_links.URL}">{blog_links.TEXT}</a> &#8226; <!-- END blog_links -->
		<!-- Begin Radio Link --> <a href="{radio_links.URL}">{radio_links.TEXT}</a> <!-- End Radio -->
		<a href="{U_FAQ}">{L_FAQ}</a>
		<!-- IF S_DISPLAY_SEARCH --> &#8226; <a href="{U_SEARCH}">{L_SEARCH}</a><!-- ENDIF -->
		<!-- IF not S_IS_BOT -->
			<!-- IF S_DISPLAY_MEMBERLIST --> &#8226; <a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a><!-- ENDIF -->
		<!-- ENDIF -->
		<!-- IF not S_IS_BOT --> &#8226; <a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- ENDIF -->
	</td>
</tr>
<tr>
	<td id="contentrow">

<!-- IF not S_IS_BOT && not $CA_SKIP_PM_NOTIFY && S_USER_LOGGED_IN && S_DISPLAY_PM -->
	<!-- IF S_USER_NEW_PRIVMSG -->
		<div class="pm-notify-new"><div class="pm-notify-header">{L_PRIVATE_MESSAGES}</div><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a></div>
	<!-- ELSEIF S_USER_UNREAD_PRIVMSG -->
		<div class="pm-notify-unread"><div class="pm-notify-header">{L_PRIVATE_MESSAGES}</div><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a></div>
	<!-- ENDIF -->
<!-- ENDIF -->  
<center><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="item-name" value="Dues and Donations">
<input type="hidden" name="business" value="pjlaw1@embarqmail.com">
<input type="hidden" name="Dues & Donations" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="image" src="http://dofcs.com/forum/images/donate.gif" border="0" name="submit" alt="YOUR DESCRIPTION OF WHY TO DONATE">
</form>
</center>


<!-- INCLUDE announcement_centre.html --> 
<table width="100%" cellspacing="0">
<tr>
	<td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
	<td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
</tr>
</table>

	<!-- IF S_DISPLAY_SEARCH -->
	<p class="searchbar">
		<span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
		<!-- IF S_USER_LOGGED_IN -->
		<span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
		<!-- ENDIF -->
	</p>
	<!-- ENDIF -->

	<br style="clear: both;" />

	<!-- INCLUDE breadcrumbs.html -->

	<br />



stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Radio Mod for phpBB3

Post by stokerpiller »

He he :)

If this is Your attempt:

Code: Select all

<!-- Begin Radio Link --> <a href="{radio_links.URL}">{radio_links.TEXT}</a> <!-- End Radio -->
you should replace it with:

Code: Select all

<!-- IF not S_IS_BOT and S_USER_LOGGED_IN --><a href="radio/radio.php" onclick="window.open('radio/radio.php','','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=420, height=400, left=20, top=20'); return false;">Radio</a> &#8226; <!-- ENDIF -->
If it is not Your attempt but something else, You should add it after.
I am done with phpBB

phxcityslick
Registered User
Posts: 183
Joined: Sat Dec 02, 2006 9:18 pm

Re: [RC] Radio Mod for phpBB3

Post by phxcityslick »

works great

where do you get your streams from?

User avatar
Jaymie1989
Registered User
Posts: 1991
Joined: Thu Aug 02, 2007 5:21 pm
Name: Jaymie

Re: [RC] Radio Mod for phpBB3

Post by Jaymie1989 »

You can use google and search for stream radio and most places will give you a link
Dear creators of Sesame Street,
Kids are still fat. Can I come back now?
Sincerely, Cookie Monster.

View my MODs - Need phpBB help with MODs and Styles? Take a look at my phpBB3 services

phxcityslick
Registered User
Posts: 183
Joined: Sat Dec 02, 2006 9:18 pm

Re: [RC] Radio Mod for phpBB3

Post by phxcityslick »

I have and gotten many. Now trying to get radio stations (real places)

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Radio Mod for phpBB3

Post by stokerpiller »

You can find some here: http://www.live-radio.net/info.shtml
I am done with phpBB

phxcityslick
Registered User
Posts: 183
Joined: Sat Dec 02, 2006 9:18 pm

Re: [RC] Radio Mod for phpBB3

Post by phxcityslick »

thanks for the mod.. I have run into a small issue where some radio stations use Flash instead of WM or RP. what do i need to do to pull that info instead


here is two examples
http://www.rock1053.com/cc-common/strea ... index.html
and
http://cbsplayer.streamtheworld.com/?CALLSIGN=WXRKFM

mustkara
Registered User
Posts: 1
Joined: Fri Mar 28, 2008 2:03 am

Re: [RC] Radio Mod for phpBB3

Post by mustkara »

Hello,

Will the mod consume my server resources or just use client side computer resources? I just worry whether this will affect the server performance if many clients concurrently using this mod.

Thanks.

Regards,

Mustkara
Cocomartini Discount Textbooks Online Bookstore
http://www.cocomartini.com/

Locked

Return to “[3.0.x] Abandoned MODs”