Home > PHP Fusion Modları, Php Fusion Temaları, resim çalışmaları > Flash Mp3 Player (JW) for PHP Fusion

Flash Mp3 Player (JW) for PHP Fusion

September 4th, 2007 Leave a comment Go to comments

Turkish And English Details Are Included if you read more:
Türkçe ve ingilizce açıklama dökümanın devamındadır. Read More’a basın

English Documentation

within this modification, you can embed Flash Mp3 Player into PHP Fusion, there will be a button in the forum for adding mp3 files
Open maincore.php
find:
function parseubb($text) {
below add:
$text = preg_replace('#\[music\]([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\";\+]*?)([\r\n]*)\[/music\]#si', '<embed src=\'http://www.jeroenwijering.com/embed/mediaplayer.swf\' width=\'300\' height=\'20\' type=\'application/x-shockwave-flash\' pluginspage=\'http://www.macromedia.com/go/getflashplayer\' flashvars=\'file=\2\3&lightcolor=0×324B5A&backcolor=0xFFFFFF&frontcolor=0×000000\'/>', $text);

then go to forum/ folder, open viewthread.php, postedit.php, postreply.php, postnewthread.php, find this line:

<input type='button' value='music' class='button' style='width:45px;' onClick=\"addText('message', '[quote]', '[/quote]');\">

add below:
<input type='button' value='music' class='button' style='width:45px;' onClick=\"addText('message', '[music]', '[/music]');\">
have fun ;)


Türkçe Açıklama

Arkadaşlar Şimdi Size vereceğim bu modifikasyon ile forumda flash mp3 player ile mp3 dinletebilirsiniz
[music]şarkılinki [/music] şeklinde eklemeniz yeterlidir, zaten foruma buton ekliyor ;)
maincore.php yi açıyoruz:
şu kodu bulun:
function parseubb($text) {

altına ekleyin:
$text = preg_replace('#\[music\]([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\";\+]*?)([\r\n]*)\[/music\]#si', '<embed src=\'http://www.jeroenwijering.com/embed/mediaplayer.swf\' width=\'300\' height=\'20\' type=\'application/x-shockwave-flash\' pluginspage=\'http://www.macromedia.com/go/getflashplayer\' flashvars=\'file=\2\3&lightcolor=0×324B5A&backcolor=0xFFFFFF&frontcolor=0×000000\'/>', $text);

şimdi forum klasöründeki viewthread.php, postedit.php, postreply.php, postnewthread.php yi açıyoruz, şu kodu buluyoruz (yanındaki </td> kodunu seçime dahil etmeyin)

<input type='button' value='music' class='button' style='width:45px;' onClick=\"addText('message', '[quote]', '[/quote]');\">

Altına Ekleyin:
<input type='button' value='music' class='button' style='width:45px;' onClick=\"addText('message', '[music]', '[/music]');\">
hepsi bu kadar;)

flash mp3 player swfsini kendi sitesinden çağırtıyorum, böylece otomatik güncelleyecek.

flash mp3 playerın renklerini maincore’a eklenen koddaki

lightcolor=0×324B5A&backcolor=0xFFFFFF&frontcolor=0×000000
yukarda yazdığım bölüm düzenlenerek yapılabilir.
onun hakkında detaylı bilgi flash mp3 player dökümanı içerisinde mevcuttur.

afiyet olsun ;)

Share and Enjoy:
  • Twitter
  • Print this article!
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • StumbleUpon
  • MySpace
  1. February 7th, 2009 at 09:37 | #1

    Great infusion ;)

  1. No trackbacks yet.