Hey
I was wondering is there a plugin which would allow users to purchase a paid subscription to my forum? When they purchase they get a choice of usergroups to join?
A bit like the Vb thing where you pick a usergroup set by admin then pay then are in that usergroup
also is there anything that will allow me to integrate a SHOUTcast radio with my MyBB forum
also a bit like Vb
Thanks alot in advance
Joe
I am working on a paypal subscription but it's not ready yet nor do I have a date for release.
I am not familiar with any shoutcast integration plugins.
wow great i really need that plugin and i'm sure many others could benefit from it aswell
thanks for reply
Joe
thanks 4 helping us out labrocca
paypal will give you code to add off there own site?
I look forward to the paypal add on as I like many truly need such a feature.
Well I just did slots and lottery. 1.4 shouldn't be too far off and I really want to wait for it to do the paypal integration. There is suppose to be some serious admincp changes and the paypal mod will certainly require a lot of admin stuff.
I could do with a Shoutcast thing
I have a own Internet radio so it would help
I have a Code but i dont know if it would work here i found it on a Nuke site !!
Block:
Code:
<?php
[quote]
/************************************************************************/
/* MrFluffy's SUN fm Modi Block */
/* */
/* (c) 2005 by MrFluffy */
/* http://nuke-platinum.de */
/* */
/* MrFluffy aka aconrads */
/* webmaster@nuke-platinum.de - http://nuke-platinum.de [DE] */
/* axel@conrads-berlin.de - http://www.conrads-berlin.de [DE/EN/FR] */
/************************************************************************/
if ( !defined('NUKE_FILE') ) {
Header("Location: ../index.php");
die();
}
include ('includes/sc_config.php');
$shoutcast = new ShoutCast();
$shoutcast->host = $sc_host;
$shoutcast->port = $sc_port;
$shoutcast->passwd = $sc_pwd;
if ($shoutcast->openstats()) {
if ($shoutcast->GetStreamStatus()) {
$offline = FALSE;
$modi = $shoutcast->GetAIM();
} else {
$offline = TRUE;
}
} else {
$offline = TRUE;
}
switch ($modi)
{
case "Hauptstudio Berlin":
$mimg = "http://sun.sitepimpers.de/suncam.jpg";
$mname = "Michael Mihm";
$mstudio = "Hauptstudio Berlin";
break;
case "MrFluffy":
$mimg = "http://sun.sitepimpers.de/suncam_2.jpg";
$mname = "Axel Conrads";
$mstudio = "Studio Berlin I";
break;
default:
}
$content ="\n\n<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
$content .="<tr><td><img src=\"images/blocks/block_moderator_01.gif\" border=\"0\" width=\"152\" height=\"31\" alt=\"\" /></td></tr>\n";
$content .="</table>\n";
$content .="<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td colspan=\"2\">\n";
$content .="<center><a href=\"mailto:studio@sun-fm.de?subject=Mein%20Musikwunsch%20und%20Gruß\"><img src=\"" . $mimg . "\" border=\"0\" width=\"140\" alt=\"" . $mstudio . "\" /></a></center></td></tr>\n";
$content .="<tr><td width=\"109\"> " . $mname . "</td><td width=\"43\" height=\"69\" valign=\"top\"><img src=\"images/blocks/block_moderator2_04.gif\" border=\"0\" alt=\"\" />\n";
$content .="</td></tr></table>\n\n";
?>
Config-Datei:
Code:
<?php
/*
Shoutcast class include file
07/03/30 MrFluffy
*/
$sc_host = "[Server-IP]";
$sc_port = "[Server-Port]";
$sc_pwd = "[Admin-PW]";
?>
...this is where the Details for the Shoutcast server goes im .
In the secound block there are the Titleinfo and the Player Icons...
Playerblock:
Code:
<?php
/************************************************************************/
/* MrFluffy's SUN fm Radio Block */
/* */
/* (c) 2005 by MrFluffy */
/* http://nuke-platinum.de */
/* */
/* MrFluffy aka aconrads */
/* webmaster@nuke-platinum.de - http://nuke-platinum.de [DE] */
/* axel@conrads-berlin.de - http://www.conrads-berlin.de [DE/EN/FR] */
/************************************************************************/
if ( !defined('NUKE_FILE') ) {
Header("Location: ../index.php");
die();
}
require_once('includes/shoutcast.class.php');
include ('includes/sc_config.php');
$shoutcast = new ShoutCast();
$shoutcast->host = $sc_host;
$shoutcast->port = $sc_port;
$shoutcast->passwd = $sc_pwd;
if ($shoutcast->openstats()) {
if ($shoutcast->GetStreamStatus()) {
$offline = FALSE;
$modi = $shoutcast->GetAIM();
$lastplayed = $shoutcast->GetSongHistory();
$currentsong = utf8_decode($shoutcast->GetCurrentSongTitle());
} else {
$offline = TRUE;
}
} else {
$offline = TRUE;
}
if ($currentsong == "http://www.mikexmedia.de/SUN_Aktuell/SUN_News.mp3") $currentsong = "SUN·fm News";
if ($currentsong == "http://www.mikexmedia.de/SUN_Aktuell/SUN_Wetter.mp3") $currentsong = "SUN·fm Wetter";
// history
$i=0;
$a=0;
if (is_array($lastplayed)) {
while ($a<3)
{
if ( !eregi("SUN_", $lastplayed[$i]['title']) ) {
if ($lastplayed[$i]['title'] == "http://www.mikexmedia.de/SUN_Aktuell/SUN_News.mp3") $lastplayed[$i]['title'] = "SUN·fm News";
if ($lastplayed[$i]['title'] == "http://www.mikexmedia.de/SUN_Aktuell/SUN_Wetter.mp3") $lastplayed[$i]['title'] = "SUN·fm Wetter";
$displayhistory .= "<strong><big>·</big></strong> " . utf8_decode($lastplayed[$i]['title']) . "<br />";
$i++;
$a++;
} else {
$i++;
}
}
} else {
$displayhistory = "History nicht verfügbar...";
}
$content ="\n\n<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
$content .="<tr><td><img src=\"images/blocks/block_radio_01.gif\" border=\"0\" width=\"152\" height=\"37\" alt=\"\" /></td></tr>\n";
$content .="</table>\n";
$content .="\n\n<table width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\"><tr><td>\n";
$content .="\n\n<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>\n";
$content .="<span style=\"font-size: 9pt; color: #990018; font-weight: bold\">Aktueller Titel:</span></td></tr>\n";
if ($currentsong == "") $currentsong = "Nicht verfügbar";
if (eregi("SUN_", $currentsong)) $currentsong = "Programm";
$content .="<tr><td><a href=\"http://www.sun-fm-stream.de:10224/listen.pls\">" . $currentsong . "</a><br /><br /></td></tr>\n";
$content .="<tr><td><span style=\"font-size: 9pt; color: #990018; font-weight: bold\">Die letzten drei Titel:</span></td></tr>\n";
$content .="<tr><td>" . $displayhistory . "<br /><br /></td></tr>\n";
$content .="<tr><td><span style=\"font-size: 9pt; color: #990018; font-weight: bold\">SUN·fm hören!</span></td></tr>\n";
$content .="<tr><td><center><a href=\"http://listen.sun-fm.de/listen.pls\"><img src=\"images/blocks/stream_winamp.gif\" border=\"0\" alt=\"Winamp\" /></a> ";
$content .="<a href=\"http://www.sun-fm.de/reallisten.ram\"><img src=\"images/blocks/stream_real.gif\" border=\"0\" alt=\"Realplayer\" /></a> ";
$content .="<a href=\"http://www.sun-fm.de/listen.asx\"><img src=\"images/blocks/stream_wmv.gif\" border=\"0\" alt=\"Windows Media\" /></a> ";
$content .="<a href=\"http://listen.sun-fm.de/listen.pls\"><img src=\"images/blocks/stream_macos.gif\" border=\"0\" alt=\"iTunes\" /></a></center>";
$content .="</td></tr></table></td></tr></table>\n\n";
?>
The listen.pls (Winamp) is provided by Shoutcast For the Realplayer and Mediaplayer look like this...
reallisten.ram:
Code:
http://85.214.45.122:10224
listen.asx:
Code:
<ASX version = "3.0">
<Entry>
<Ref href = "http://85.214.45.122:10224" />
<Banner href="http://www.sun-fm.de/images/blocks/g_Sonne_80x100.gif">
<Abstract>Radio SUN-fm - EINFACH MEHR RADIO!</Abstract>
</Banner>
</Entry>
</ASX>
...[/quote]
Hope you can work with this

!