Statistik |
Beiträge: 144.531 (Täglich: 19,19 )
Themen: 16.700
Mitglieder: 13.209
Neuestes Mitglied: zitronentee.
Ausl. d. letzten Minute: 395%
Ausl. d. letzten 5 Minuten: 277%
Ausl. d. letzten 15 Minuten: 254%
Aktulle Uhrzeit: 17:09
Freier Webspace: 4.04 TB
PHP-Version: 7.4.33
|
|
|
|
|
radio anzeige fürs wbb |
|
hallo
nein ich suche nicht ein hack dafür ich kenne das hack von maddin
aber das gefällt mir nicht so ganz wie ich es haben möchte
also hab ich mich rangemacht und meine alte anzeige die mir mal ein freund gecodet hatte
versucht fürs wbb zu machen
tolle wurst ist das geworden
nun eine frage kann mir da einer helfen bitte
stelle euch mal meine versuche hier ein
original code das funzt auch bestens
stream.php
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
|
<?php
//anzeige configuration
$title = ""; // Titel eures Streams
$scdef = ""; // Default station name to display when server or stream is down
$scip = ""; // ip or url of shoutcast server
$scport = ""; // port of shoutcast server
$scpass = ""; // password to shoutcast server
$djname = ""; // Dj Name
$listenlink1 = 'http://'.$scip.':'.$scport.'/listen.pls'; // winamp Stream link
$listenlink2 = 'http://'.$scip.':'.$scport.'/mediamlayer.m3u'; // Mediaplayer Stream link
$listenlink3 = 'http://'.$scip.':'.$scport.'/realplayer.ram'; // Realplayer Stream link
//End configuration
$scfp = @fsockopen("$scip", $scport, &$errno, &$errstr, 30);
if(!$scfp) {
$scsuccs=1;
}
if($scsuccs!=1){
fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
while(!feof($scfp)) {
$page .= fgets($scfp, 1000);
}
$loop = array(
"SERVERGENRE",
"STREAMSTATUS",
"BITRATE",
"SONGTITLE",
"SERVERTITLE",
);
$y=0;
while($loop[$y]!=''){
$pageed = ereg_replace(".*<$loop[$y]>", "", $page);
$scphp = strtolower($loop[$y]);
$$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE)
$$scphp = urldecode($$scphp);
$y++;
}
$pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
$pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);
$djhash = md5($servergenre);
if ($servergenre=="") $djpicture="/images/ronline.gif";
else $djpicture="/images/ronline.gif";
if ($servergenre=="") $djpictureoff="/images/roffline.gif";
else $djpictureoff="/images/roffline.gif";
$songatime = explode("<SONG>", $pageed);
$r=1;
while($songatime[$r]!=""){
$t=$r-1;
$playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);
$playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);
$song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);
$song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);
$string1= $maxlisteners-$currentlisteners;
$song[$t] = urldecode($song[$t]);
$r++;
}
fclose($scfp);
}
if($streamstatus == "1"){
echo'
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><center>
<META HTTP-EQUIV="Refresh"CONTENT="140; URL=">
<p><title>'.$title.'</title>
</head></p>
</center>
</head>
<table style="width: 98%;" class="tableinborder" border="0" cellpadding="4" cellspacing="1"> <tbody><tr class="tabletitle"> <td align="left"><span class="smallfont"><img src="'.$djpicture.'" align="top" border="0" />'.$scdef.'</span></td>
</tr> <tr> <td class="tableb" valign="top" align="center"><span class="smallfont"><b>'.$servertitle.'</b></span><br /><span class="Stil1">
<marquee>
<b>'.$songtitle.'</b>
</marquee>
</span></td> </tr>
<tr>
<td class="heads" colspan="3">es lief gerade</td>
</tr>
<tr>
<td width=986 bgcolor="'.$tblhdr.'"><br> 1. '.$song[0].'<br>
2. '.$song[1].'<br>
3. '.$song[2].'<br>
4. '.$song[3].'<br>
5. '.$song[4].'<br>
6. '.$song[5].'<br>
7. '.$song[6].'<br>
8. '.$song[7].'<br>
9. '.$song[8].'<br>
10. '.$song[9].'<br>
<a href="'.$listenlink1.'">
<img src=/images/winamp.gif border="0" alt="Tune In" width="31" height="32">Winamp</a><br />
<a href="'.$listenlink2.'">
<img src=/images/wmplayer.gif border="0" alt="Tune In" width="31" height="32">WmPlayer</a><br />
<a href="'.$listenlink3.'">
<img src=/images/realplayer.gif border="0" alt="Tune In" width="31" height="32">Realplayer</a><br />
</td>
</tr></tbody></table>
</body>
</html>';
}
else
echo'
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><center>
<p><title>'.$title.'</title>
</head></p>
</center>
<style>
<!--
body {
color: #FFFFff;
font-size: smaller;
background-color:#3B3939;
}
#display {
display: block;
width: 100%;
height: 22;
}
#dj {
}
#song {
}
-->
</style>
<center>
<table style="width: 98%;" class="tableinborder" border="0" cellpadding="4" cellspacing="1"> <tbody><tr class="tabletitle"> <td align="left"><span class="smallfont"><img src="'.$djpictureoff.'" align="top"> '.$scdef.' </span></td>
</tr> <tr> <td class="tableb" valign="top" align="center">
<p><br>
<b><u>Noch Sind wir Offline</u></b></p>
<p><strong><u>Wir Hoffen ihr habt geduld</u> </strong></p>
<br /></td> </tr> </tbody></table>
</center>
<center>
<p></p>
</center>
</body>
</html>';
?>
|
|
so nun mein wbb versuch der nicht funzen will heul
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
|
<?php
$filename="Radioanzeige.php";
require("global.php");
require("acp/lib/class_parse.php");
require("stream.php");
echo'eval("\$tpl->output(\"".$tpl->get("online")."\");");
?>
|
|
und das tpl dazu
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
|
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!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="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>online</title>
$headinclude
</head>
<body>
$header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tablea"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tablea_fc">
<td align="left"><span class="smallfont"><b><a href="index.php?sid=$session[hash]">$master_board_name</a> » {$lang->items['LANG_OWN_SITES_NAME']}</b></span></td>
<td align="right"><span class="smallfont"><b>$usercbar</b></span></td>
</tr>
</td>
</tr>
</table>
</table>
<br />
<table style="width: 98%;" class="tableinborder" border="0" cellpadding="4" cellspacing="1">
<tbody><tr class="tabletitle">
<td align="left"><span class="smallfont"><img src="'.$djpicture.'" align="top" border="0" />'.$master_board_name.'</span></td>
</tr>
<tr>
<td class="tableb" valign="top" align="center"><span class="smallfont"><b>'.$servertitle.'</b></span><br /><span class="Stil1">
<marquee>
<b>'.$songtitle.'</b>
</marquee>
</span></td> </tr>
<tr>
<td class="heads" colspan="3">es lief gerade</td>
</tr>
<tr>
<td width=986 bgcolor="'.$tblhdr.'"><br> 1. '.$song[0].'<br>
2. '.$song[1].'<br>
3. '.$song[2].'<br>
4. '.$song[3].'<br>
5. '.$song[4].'<br>
6. '.$song[5].'<br>
7. '.$song[6].'<br>
8. '.$song[7].'<br>
9. '.$song[8].'<br>
10. '.$song[9].'<br>
<a href="'.$listenlink1.'">
<img src=/images/winamp.gif border="0" alt="Tune In" width="31" height="32">Winamp</a><br />
<a href="'.$listenlink2.'">
<img src=/images/wmplayer.gif border="0" alt="Tune In" width="31" height="32">WmPlayer</a><br />
<a href="'.$listenlink3.'">
<img src=/images/realplayer.gif border="0" alt="Tune In" width="31" height="32">Realplayer</a><br />
</td>
</tr></tbody></table>
<br />
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tabletitle" align="left"><span class="normalfont"><b>Test</b></span></td>
</tr>
<tr>
<td class="tablea"><span class="smallfont">Inhalt.</span></td>
</tr>
</table>
}
else
echo'
<center>
<table style="width: 98%;" class="tableinborder" border="0" cellpadding="4" cellspacing="1"> <tbody><tr class="tabletitle"> <td align="left"><span class="smallfont"><img src="'.$djpictureoff.'" align="top"> '.$scdef.' </span></td>
</tr> <tr> <td class="tableb" valign="top" align="center">
<p><br>
<b><u>Noch Sind wir Offline</u></b></p>
<p><strong><u>Wir Hoffen ihr habt geduld</u> </strong></p>
<br /></td> </tr> </tbody></table>
</center>
$footer
</body>
</html>
|
|
was mache ich falsch oder weiss einer wie ich das richten kann
bitte helfen
__________________ Keine Tabacksteuern, zahlen, bis 90 leben, und dann auch noch auf die Raucher schimpfen, die ALLES bezahlen.
|
|
01.09.2009 18:27 |
|
|
Tommi
wBB2-User
Zeige Tommi auf Karte
Dabei seit: 22.08.2007
Beiträge: 465
1 Filebase-Einträge
Alter: 50 Jahre
Herkunft: Ahrensburg wBB-Version: wBB2.3 Wo bist du gehostet?: http://www.frdlweb.d
e/
Bewertung:
Level: 42 [?]
Erfahrungspunkte: 2.819.626
Nächster Level: 3.025.107
Themenstarter
|
|
soo hab einiges schon mal hinbekommen soweit ich sehen kann
nur ist die frage wie sage ich der php das sie die css einstellungen vom board übernemen soll
code: |
1:
2:
3:
4:
5:
|
<?php
include("global.php");
include("acp/lib/class_parse.php");
|
|
so schaut es bis jetzt aus
http://www.bt-radio.de/Radioanzeige-origi.php
__________________ Keine Tabacksteuern, zahlen, bis 90 leben, und dann auch noch auf die Raucher schimpfen, die ALLES bezahlen.
|
|
01.09.2009 20:08 |
|
|
Tommi
wBB2-User
Zeige Tommi auf Karte
Dabei seit: 22.08.2007
Beiträge: 465
1 Filebase-Einträge
Alter: 50 Jahre
Herkunft: Ahrensburg wBB-Version: wBB2.3 Wo bist du gehostet?: http://www.frdlweb.d
e/
Bewertung:
Level: 42 [?]
Erfahrungspunkte: 2.819.626
Nächster Level: 3.025.107
Themenstarter
|
|
nein leider nicht
__________________ Keine Tabacksteuern, zahlen, bis 90 leben, und dann auch noch auf die Raucher schimpfen, die ALLES bezahlen.
|
|
01.09.2009 20:12 |
|
|
Tommi
wBB2-User
Zeige Tommi auf Karte
Dabei seit: 22.08.2007
Beiträge: 465
1 Filebase-Einträge
Alter: 50 Jahre
Herkunft: Ahrensburg wBB-Version: wBB2.3 Wo bist du gehostet?: http://www.frdlweb.d
e/
Bewertung:
Level: 42 [?]
Erfahrungspunkte: 2.819.626
Nächster Level: 3.025.107
Themenstarter
|
|
Shoutcast Streamanzeige für das wBB2.3 |
|
Hallo
so das Erste hack ist ja schon Draussen
Danke an Viktor das er es ermöglicht hat
ich Hätte in 5 jahren noch daran gesessen
auch die erweiterungen die jetzt noch kommen werden klasse werden
und Noch mal DANKE dafür Viktor
nur Doof das ich kein Paypal habe aber da lasse ich mir noch was einfallen
freu mich auf den Rest der noch kommt
Gruss Tommi
__________________ Keine Tabacksteuern, zahlen, bis 90 leben, und dann auch noch auf die Raucher schimpfen, die ALLES bezahlen.
|
|
12.09.2009 10:07 |
|
|
|
|
|
|