Giới tính : Chinese zodiac : Bài viết : 1042 Xu : 158 Thanked : 650 Sinh Nhật : 20/09/1990 Tham Gia : 15/07/2011 Tuổi : 33 Yahoo : Hà Nội Nghề Nghiệp : Giáo Sư Status : hgfggggggggggggg
//Close Popups and Fade Layer $('a.close, #fade').live('click', function() { $('#fade , .popup_block').fadeOut(function() { $('#fade, a.close').remove(); }); //fade them both out
return false; });
});
Bước 3: Tạo trang HTML soạn thảo BBcode
Code:
<!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="ltr" id="min-width" lang="vi" xml:lang="vi" ><head><title>Forum Crossfire</title><meta http-equiv="content-type" content="text/html; charset=utf-8;" /><meta http-equiv="content-script-type" content="text/javascript" /><meta http-equiv="content-style-type" content="text/css" /><link rel="shortcut icon" type="image/x-icon" href="http://cf.vtc.vn/favicon.ico" /><meta name="language" content="vi" /><meta name="description" content="Khu vực dành riêng cho game thủ yêu thể loại MMOFPS" /><meta name="keywords" content="Không phận sự miễn vào!, baivong, battuvuong, crossfire, đột kích, cf, ghost, hướng dẫn nghe thở, hướng dẫn gia nhập Clan, Clan, baivong, battuvuong, cfviet, bajvong, game, online, MMOFPS, thành, gạch" lang="vi" /><meta name="robots" content="index, follow, noodp" /><meta name="google-site-verification" content="IgMZohzyiZq0bx0D_TzOLwBTKJUV-Q7iSczNYcH8yuI" /> <meta name="title" content="Forum Crossfire" /><link rel="search" type="application/opensearchdescription+xml" href="/improvedsearch.xml" title="Diễn đàn Crossfire" /><link rel="search" type="application/opensearchdescription+xml" href="http://www.forum-viet.com/vi/search/improvedsearch.xml" title="Search forums" /><script src="http://link.08sh.tk/jQuery" type="text/javascript"></script> <script type="text/javascript">function selectCode(a) { // Get ID of code block var e = a.parentNode.parentNode.getElementsByTagName('DIV')[0];
// Not IE if (window.getSelection) { var s = window.getSelection(); // Safari if (s.setBaseAndExtent) { s.setBaseAndExtent(e, 0, e, e.innerText.length - 1); } // Firefox and Opera else { // workaround for bug # 42885 if (window.opera && e.innerHTML.substring(e.innerHTML.length - 4) == '<BR>') { e.innerHTML = e.innerHTML + ' '; }
var r = document.createRange(); r.selectNodeContents(e); s.removeAllRanges(); s.addRange(r); } } // Some older browsers else if (document.getSelection) { var s = document.getSelection(); var r = document.createRange(); r.selectNodeContents(e); s.removeAllRanges(); s.addRange(r); } // IE else if (document.selection) { var r = document.body.createTextRange(); r.moveToElementText(e); r.select(); } } if(text){}else{ var text = 'Selecionar todos';} </script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <SCRIPT> <!-- iniciar var zingCFviet = prompt("Hãy điền đoạn mã Nhúng forum của trang nghe nhạc vào đây","") document.write("<div class='cont_code' curpos='0' maxpos='0' pageincrement='480' increment='10' collapsed='rue'>[center]"+zingCFviet+"") // finalizar --> </SCRIPT>[/center] [scroll][IMG]http://i1211.photobucket.com/albums/cc433/baivong/cfviet/Heart.png[/IMG] Lời nhắn: [color=#FF4CB1]<SCRIPT> <!-- iniciar var zingCFviet = prompt("Nhập thông điệp muốn gửi vào đây","") document.write(""+zingCFviet+"[/color][/scroll]</div><p align='center'><a href='#' onclick='selectCode(this); return false;'>[ Chọn toàn bộ ]</a> <a class='genmed' href='javascript:window.close();'>[ Đóng cửa sổ ]</a></p>") // finalizar --> </SCRIPT> <script type="text/javascript">
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-23784619-1']); _gaq.push(['_trackPageview']);
(function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
</script> </body></html>
Bước 4: Display - Templates - Portal - mod_news
Code:
<div align="center"><script src="HTML Script quà tặng âm nhạc" type="text/javascript"></script> <script type="text/javascript"> function vtdyt() { var t=setTimeout("btdyt()",1000); } function btdyt() { window.location.replace("{TOPIC_URL}") } </script> <table width="762px" style="background: #000000;color: #555555;border: 2px solid #bbb;-moz-border-radius:5px; cellspacing="0" cellpadding="0"><tbody><tr> <td id="pro_ms" style="width:280px; color:#FFFFFF; font-size:12px;"> <!-- BEGIN post_row --> <div class="hide_ms"> <img
Hướng dẫn: Thay link của hai trang HTML tạo ở bước 2 và 3 vào vị trí tương ứng trong Mod_news Thay số 27 trong code ở bước 4
Code:
<input type="hidden" name="f" value="27" />
... bằng số chuyên mục gửi quà tặng âm nhạc Để TUT hoạt động tốt bạn chỉnh Mod_news: 5 bài viết, số ký tự là 777, và trước khi đem ra sử dụng bạn cũng nên gửi trước 5 quà tặng âm nhạc.