Update : 8:35 AM 11/28/2009
Demo: http://nhac38.info/m/74240.html
Bắt tay làm thui.
Lần trước mình hướng dẫn cách bạn trên code khuchat của mình có lẽ ko khả dụng. Nay mình hướng dẫn các bạn HackMod này trên code Xtre1.2 nguyên bản của Red. Fix luôn cái ko cho. Cai Grab của mình bị NCT nó Ban Ip nên đành dùng tạm sang của anh AnhTrang nhé
Vào admin/admin_functions.php tìm dòng
và thêm vào bên dưới nó đoạnPHP Code:
$is_googleVideo = (preg_match("#http://video.google.com/videoplay\?docid=(.*?)#s",$url));
Tìm tiếp đoạnPHP Code:
/*http://nhac38.info*/
$is_nct = (preg_match("#http://www.nhaccuatui.com/nghe\?M=(.*?)#s",$url));
, thêm vào dưới nó đoạn sau:PHP Code:
elseif (in_array($ext,$movie_arr)) $type = 3;
Tìm tiếp đoạnPHP Code:
elseif ($is_nct) $type = 4;
, thêm vào bên dưới nó đoạn:PHP Code:
return $type;
}
Vào includes/functions.php tìm đoạnPHP Code:
function grab($url) {
$is_nct = (preg_match("#http://www.nhaccuatui.com/nghe\?M=(.*?)#s",$url));
if ($is_nct) $u = gets_link_nct($url);
else $u = $url;
return $u;
}
và thêm vào trên nó đoạn:PHP Code:
function m_emotions_array() {
Tìm tiếp dòngPHP Code:
function gets_link_nct($url) {
if (preg_match('#nhaccuatui.com/nghe\?M=(.*)#', $url, $id_sr)){
$id = $id_sr[1];
$url = "http://namdinh.org/media/nct/".$id.".mp3";
}
return $url;
}
Thay dòng :PHP Code:
function m_player($arr) {
bằng dòngPHP Code:
global $tpl;
Tìm tiếp đoạnPHP Code:
global $tpl,$tb_prefix,$mysql;
Thêm vào bên trên nó đoạnPHP Code:
if (!$url) $url = 'asx.php?type='.$type.'&id='.$id;
Tìm tiếp đoạn:PHP Code:
$q = $mysql->query("SELECT m_url FROM ".$tb_prefix."data WHERE m_id = '".$id."'");
$rs = $mysql->fetch_array($q);
if ($m_type==4) $url = gets_link_nct($rs['m_url']);
và thêm vào dứoi nó đoạn:PHP Code:
elseif ($m_type == 3) {
$player = $tpl->get_tpl('players/wmv');
}
PHP Code:
elseif ($m_type == 4) {
$player = $tpl->get_tpl('players/mp3');
}
Thử play phát nào: http://nhac38.info/m/74240.html
Bạn nào thấy hay thì nhớ THANK đó nha
Viết bài hướng dẫn chi tiết nên mình ko quen lắm- có gì sai sót các bạn cứ nói !
Nói chung khi hack mod Xtremedia các bạn phải linh động vì Xtremedia ở các bản share đều bị thay đổi rất nhiều so với bản gốc.
Lưu ý ai copy bài nhớ ghi rõ nguồn từ Itvnn.net nhé
Update : 8:35 AM 11/28/2009
Bookmarks