بابهت: [زیاد کراو]زیادکردنى تاگى MP3 لە پەیامەکاندا.

لەم بابەتەدا باسى چۆنیەتى زیادکردنى تاگى MP3 دەکەم
ئەمە داگرە بەرزیبکەوە سەر root ـى مەکۆکەت
-------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------
ئەم پەڕگەیە بکەرەوە
include/parser.phpبگەڕێ بە دوایی
// Add paragraph tag around post, but make sure there are no empty paragraphs
$text = str_replace('<p></p>', '', '<p>'.$text.'</p>');ئەمەى لە دوا زیاد بکە
// Mod: Flash MP3 Player (8 new lines follow)
$player_url = 'dewplayer-multi.swf';
$player_bgcolor = 'ffffff';
$player_width = 240;
$player_height = 20;
$player_param = '?bgcolor='.$player_bgcolor.'&mp3=$2'; // For more options: http://www.alsacreations.fr/?dewplayer
$player_alternative = '<strong>Flash not detected</strong>';
$player_code = "\n\t\t\t\t\t<object type=\"application/x-shockwave-flash\" data=\"".$player_url.$player_param."\" width=\"".$player_width."\" height=\"".$player_height."\">\n\t\t\t\t\t <param name=\"movie\" value=\"".$player_url.$player_param."\" />\n\t\t\t\t\t <param name=\"bgcolor\" value=\"#".$player_bgcolor."\" />\n\t\t\t\t\t ".$player_alternative."\n\t\t\t\t\t</object>\n\t\t\t\t\t";
$text = preg_replace("/\[mp3 url=("|\"|'|)(.*?)\\1\]/", $player_code, $text);-------------------------------------------------------------------------------------------------------------
ئەم پەڕگەیە بکەرەوە
post.phpبگەڕێ بە دوایی
list($q_poster, $q_message) = $db->fetch_row($result);ئەمەى لە دوا زیاد بکە
// Mod: Flash MP3 Player (1 new line follow)
$q_message = preg_replace("/\[mp3 url=("|\"|'|)(.*?)\\1\]/", "[url]$2[/url]", $q_message);--------------------------------------------------------------------------------------------------------------
چۆنیەتى کار پێکردنى :-
بۆ دانانى دەنگێک لە پەیامەکاندا ئەم کۆدە بنووسە
[mp3 url="path/file.mp3"]path/file.mp3 بگۆڕە بۆ لینکى دەنگەکە
-----------------------------------------------------------------------------------------------------------------