Страница 1 из 1

Сделать радио на форуме.

Добавлено: 21.02.2008 15:59
dron
Подскажите хороший мод что бы организовать свое радио (плеер mp3) на форуме. Буду очень признателен за помощь.

Добавлено: 21.02.2008 19:07
PavlegSS
http://www.phpbbhacks.com/download/3520

Скачал, посмотрел описание и вложенные файлы не устанавливая - вроде то, как работает и рабочее ли вообще не знаю. Если будешь проверять - отпишись сюда плиз

Добавлено: 21.02.2008 20:23
dron
PavlegSS
Спасибо вроде штука хорошая.

Вот только у меня с инглишем проблемы :lol:

Код: Выделить всё

<?php 

/* this file was made by khaleel mughal and is copyright to him and death-eater.net 2004
* if you want to distribute this please show a link me for credit http://fan.death-eater.net will do
* enjoy it and see the bits and bobs file including in the mod zip
* this is version myphpBBRadio Version 1.0.0 not a beta the next version will have an auto mp3 compressor and is 
* going to be relased next month check phpbb for more info!
*/

define('IN_PHPBB',true); 

$phpbb_root_path = "./"; // set path to phpBB files leave it blank like this if its root
include($phpbb_root_path . 'extension.inc'); //   Leave this
include($phpbb_root_path . 'common.'.$phpEx); // leave this

// 
// Start session management 
// 
$userdata = session_pagestart($user_ip, PAGE_LOGIN); // initiate session 
init_userprefs($userdata); // load user prefs 
// 
// End session management 
// 
$page_title = "Death-Eater.NET :: Radio! You say we play";  // change this to your page title


$userid = $userdata['user_id']; 
$sql = "SELECT * FROM " . USER_GROUP_TABLE . " WHERE user_id = '$userid'"; // selects mysql
$result = $db->sql_query($sql); 
$isauth = 0; 
while ($row = $db->sql_fetchrow($result)) 
{ 
if ($row['group_id'] == '70' || $row['group_id'] == '70')  // if you want a usergroup only to have access change 70 to your usergroups ID
{ 
$isauth = 1; // double checks if it is accessble for the permission
} 
} 


if($userdata['session_logged_in']) 
{ // user is logged in 

include($phpbb_root_path . 'includes/page_header.'.$phpEx); 
if ($isauth == '1') 
{ // the contents of your blog, this is the html include change the address to your sites link to 
echo "<p align=\"center\">
<iframe width=\"222\" height=\"300\" frameborder=\"0\" name=\"radioiframe\" src=\"http://your.com/radio.blog/index.php\" scrolling=\"no\"></iframe><br /><p align=\"center\"><a href=\"radio.php?\">--=~Refresh~=--</a></P></p>";
}  //  the refresh is there to session id it leave and the echo is phpHTML see google.com for more tutorials on how src=/"here/" to get better idea
else 
{ //  if they are logged in and dont have access message...
message_die(GENERAL_ERROR, "You do not have permission to access this page"); 
} 
} 
else 
{ // not logged in and it will take them to login page which redirects them back here...
header('Location: ' . append_sid($phpbb_root_path.'login.'.$phpEx.'?redirect='.$PHP_SELF, true)); 
} 

include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 

?>
Может кто поможет расшифровать, что куда тут вбивать и если можно со своим примером :roll:

Добавлено: 21.02.2008 21:14
PavlegSS
запусти http://твой_сайт/forum/radio.blog

там уже поймешь, что к чему (предварительно скопируй конечно)

Но там надо предварительно mp3 в rbs перекодировать. А так пашет вроде. Но пока рано судить, надо разбираца. А вообще когда запустишь ссылку, что я тебе написал вверху этого поста, там будет линк на офсайт этой проги

Добавлено спустя 2 минуты 12 секунд:

А вообще порыскал по инету - инфы на этот счет мало, только как вещать с домашнего компа. Если кто напишет толковый мод (самому лень, честно:)) плачу немерянные деньги (рублей 150, не больше)

Добавлено: 22.02.2008 1:15
dron
Проблема в том, что вообще не хочет музыка загружаться, вроде все верно делаю, а фиг плеер грузит, а музыку нет. . .

Добавлено: 22.02.2008 1:40
PavlegSS
хостер должен поддерживать rbs

Добавлено спустя 44 секунды:

юзай тогда flash_mp3_player

Добавлено: 22.02.2008 2:40
Iftin
PavlegSS
а где мп3 плеера?

Добавлено: 22.02.2008 3:16
PavlegSS
Iftin писал(а):PavlegSS
а где мп3 плеера?

Добавлено: 22.02.2008 5:11
dron
А может кто-то ставил radio.blog 3 на phpBB 2.0.хх
Он имеет поддержку Mp3, буду признателен за инфу о том, как его поставить на phpBB 2.0.хх. (стиль Сабсильвер)

flash_mp3_player мне что-то не очень понравился.

Re: Сделать радио на форуме.

Добавлено: 06.04.2009 13:58
Temasmart
Люди а как сделать что бы песни ставил админ а не сами пользователи?