Demo
Probiere ClanSphere aus und teste daran herum.
Demo
Spenden
ClanSphere ist freie OpenSource Software.
Bitte unterstützt uns.
Spenden
Codepaste - Details |
Weitere Infos zum Codepaste |
Name |
AbCode-Addon |
Autor |
Tom08
|
CMS-Version |
ClanSphere 2007 |
Datei |
system/core/abcode.php
|
Datum |
25.01.2008 um 15:36 Uhr |
Beschreibung |
Bindet einen MP3-Player ein... Dieser Code-Paste basiert auf dem Modul "Abcode Video Erweiterung" von Sickboy. Falls es Probleme gibt, hier Bitte Kommentar und mir eine Nachricht, Danke!!! |
Alter Code |
Alter 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.
| 1. / 2. / ...
### Info ###
Alles was in den ### Steht müsst und dürft Ihr nicht kopieren.
So, nun aber los:
### Player besorgen ###
Den Player könnt Ihr euch hier kostenlos Downloaden:
http://www.jeroenwijering.com/?item=JW_FLV_Media_Player
Der Player muss ins Verzeichnis /system/tools/.
Die Datei heißt "mediaplayer.swf" und nur diese müsst Ihr kopieren. Den Ordner tools müsst Ihr erstellen ...
### Sprach-Datei (/lang/[SPRACHE]/system/abcodes.php ###
-
### Abcode-Datei (/system/core/abcode.php) ###
### Suche 1 ###
$var .= cs_html_option($cs_lang['gametrailers'],'gt');
### Suche 2 ###
$name = '<embed src="http://www.gametrailers.com/remote_wrap.php?mid='.$matches[1].'" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'.$op_videoabcode['width'].'" height="'.$op_videoabcode['height'].'"></embed>';
$return = cs_html_div(1,0,1).$name.cs_html_br(1);
}
return $return;
}
### Suche 3 ###
$replace = preg_replace_callback("=\[gt\](.*?)\[/gt\]=si","cs_abcode_gt",$replace); |
|
Neuer Code |
Neuer 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.
| 1. / 2. / ...
### Sprach-Datei (/lang/[SPRACHE]/system/abcodes.php ###
### Einfügen ###
$cs_lang['mp3'] = 'MP3-Dateien';
### Abcode-Datei (/system/core/abcode.php) ###
### Einfügen 1 ###
$var .= cs_html_option($cs_lang['mp3'],'mp3');
### Einfügen 2 ###
//MP3 Forumeinbindung by Tom, based on the Modul "Abcode Video Erweiterung" by Sickboy
function cs_abcode_mp3($matches) {
$op_videoabcode = cs_sql_option(__FILE__,'videoabcode');
if ($matches[0] == '[/mp3]') {
$return = cs_html_div(0);
}
elseif(empty($matches[1])) {
$return = cs_html_div(1,0,1);
}
else {
$name = '<embed
src="system/tools/mediaplayer.swf"
width="470"
height="20"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="height=20&width=470&file='.$matches[1].'"
/>';
$return = cs_html_div(1,0,1).$name.cs_html_br(1);
}
return $return;
}
### Einfügen 3 ###
$replace = preg_replace_callback("=\[mp3\](.*?)\[/mp3\]=si","cs_abcode_mp3",$replace); |
|
Zurück -
Übersicht
|
Bitte Login benutzen, um Kommentare zu schreiben. |