Mở file: \templates\default\header.htm <meta name="keywords" content="{$metakeywords}$seokeywords" /> <meta name="description" content="$metadescription $bbname $seodescription - Discuz! Board" /> <meta name="generator" content="Discuz! $version" /> <meta name="author" content="Discuz! Team and Comsenz UI Team" /> <meta name="copyright" content="2001-2007 Comsenz Inc." /> <meta name="MSSmartTagsPreventParsing" content="True" /> <meta http-equiv="MSThemeCompatible" content="Yes" /> Sẽ thấy <meta name="generator" content="Discuz! $version" /> <meta name="author" content="Discuz! Team … Đọc tiếp SEO Tips cho Discuz!
Thẻ: MOD
Tổng hợp MOD
[Dz 7.0] Tự Play file MP3 nhạc gửi kèm
Với mod này, file nhạc tiếng có định dạng wma,mp3 gửi kèm trong bài viết sẽ tự động play được luôn.========================File to edit : templates/default/discuzcode.htm01. Mở file templates/default/discuzcode.htm1.1,Tìm <dl class="t_attachlist"> 1.2,Thêm trên đó <!--{if fileext($attach['filename']) == 'mp3'||fileext($attach['filename']) == 'wma'}--> <p><object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="400" height="64"><param name="autostart" value="0" /><param name="url" value="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp" /><param name="PlayCount" value="100" /><embed src="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp" autostart="0" type="audio/x-ms-wma" … Đọc tiếp [Dz 7.0] Tự Play file MP3 nhạc gửi kèm
[Dz 7.0] Hiển thị postrank trong bài viết
File cần sửa: 02 (viewthread.php ; templates/default/viewthread_note.htm)#01: mở file viewthread.phptìm if($_DCACHE['usergroups'][$post['groupid']]['userstatusby'] == 1) { $post['authortitle'] = $_DCACHE['usergroups'][$post['groupid']]['grouptitle']; $post['stars'] = $_DCACHE['usergroups'][$post['groupid']]['stars']; } elseif($_DCACHE['usergroups'][$post['groupid']]['userstatusby'] == 2) { foreach($_DCACHE['ranks'] as $rank) { if($post['posts'] > $rank['postshigher']) { $post['authortitle'] = $rank['ranktitle']; $post['stars'] = $rank['stars']; break; } } } Thay bằng //Start display Post-rank $post['authortitle'] = $_DCACHE['usergroups'][$post['groupid']]['grouptitle']; $post['stars'] = $_DCACHE['usergroups'][$post['groupid']]['stars']; foreach($_DCACHE['ranks'] … Đọc tiếp [Dz 7.0] Hiển thị postrank trong bài viết
Việt hóa Upload avatar
Có thể nói,tất cả các phần chữ Hán trong templates/default/ đều có thể Việt Hóa / Anh Hóa /..Nhưng có một phần nhỏ đó là upload avatar.Hồi đầu,mình ngỡ là nằm trong file camera.swf. Xong không phải Phần chữ hán đã được mã hóa trong files: ucenter/images/local.xml <?xml version="1.0" encoding="utf-8" ?> <strings> <language type="zh_CN" using="true"> … Đọc tiếp Việt hóa Upload avatar
Nút Tweet + Nút Thích trên Facebook cho discuz! x2 (Mẹo SEO rất hay)
Mở : /template/forum/viewthread.htmTìm : </span> <!--{hook/viewthread_title_extra}--> </h1> 3. Chèn bên dưới nó: <!-- Facebook Share and Like button!--> <div style="margin-bottom:5px"><script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="{$_G[siteurl]}forum.php?mod=viewthread&tid=$_G[tid]$fromuid" show_faces="true" width="280" font="tahoma"></fb:like></div> <!--- Facebook Share and Like button (c) Vic.0 @Netdepviet.org ---> <!--Tweet Share button (c) Vic.0 @Netdepviet.org!--> <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="netdepviet">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> <!--End Tweet button!--> 4. Lưu và tận … Đọc tiếp Nút Tweet + Nút Thích trên Facebook cho discuz! x2 (Mẹo SEO rất hay)
Nhúng bình luận Facebook vào Discuz X3
Facebook là cộng đồng lớn nhất hiện nay. Nhân viên quản trị trang web của chúng tôi phải tích hợp luồng facebook vào trang web. Nếu bạn đang sử dụng discuz, đây là cách phù hợp để bạn thay đổi:Tệp cần chỉnh sửa: template/default/forum/viewthread_node_body.htm Tìm: <!--{if !empty($lastmod['modaction'])}--><div class="modact"><a href="forum.php?mod=misc&action=viewthreadmod&tid=$_G[tid]" title="{lang thread_mod}"><!--{if $lastmod['modactiontype'] == 'REB'}-->{lang thread_mod_recommend_by}<!--{else}-->{lang … Đọc tiếp Nhúng bình luận Facebook vào Discuz X3
Tối ưu SEO URL bằng Discuz! X 1.5 và htaccess
Mod: SEO URL cho Discuz! X 1.5Các tệp đã chỉnh sửa: 02 tệp /source/function/function_core.php ( download the attached file ).htaccess <Files ~ "^\.(htaccess|htpasswd)[ DISCUZ_CODE_0 ]quot;> deny from all </Files> # RewriteEngine RewriteEngine On RewriteBase / ##your forum folder. If your forum: http://www.netdepviet.org/discuz/ . ## the RewriteBase is: RewriteBase /discuz # Rewrite RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule … Đọc tiếp Tối ưu SEO URL bằng Discuz! X 1.5 và htaccess
MOD trực tuyến và giới tính cạnh avatar
Mod này dành cho: Discuz! X Version:X3 X2.5 Để hiển thị giới tính của thành viên và tình hình trực tuyến hoặc ngoại tuyến như trên hình ảnh: Tải về giải nén: https://www.4shared.com/s/f-7hf5Mjqea Mở template/default/forum/viewthread_node.htm Tìm: <a href="home.php?mod=space&uid=$post['authorid']" target="_blank" class="xw1">$post[author]</a>$authorverifys</div> và dán đoạn này lên trên: <span class="y"> <!--{if ($_G['setting']['vtonlinestatus'] == 2 && $_G[forum_onlineauthors][$post[authorid]]) || ($_G['setting']['vtonlinestatus'] … Đọc tiếp MOD trực tuyến và giới tính cạnh avatar
Boot Web và mã hóa
Chỉ với một file duy nhất để tăng tốc website với file boot.php Bạn tạo một file .php với tên bất kỳ nhưng bạn nên đặt tên là boot.php mở ra và chèn vào nội dung: <?php $GLOBALS['compressor']['compress'] = true; //////////////////// DO NOT EDIT BELOW THIS /////////////////////////////////////////////// $ { "G\x4cOBA\x4c\x53" } ["\x6c\x61\x65\x62s\x65\x6c\x75\x78yh"]="\x73t\x61\x72t\x5fbu\x66\x66e\x72"; $ { "\x47\x4c\x4fBALS" … Đọc tiếp Boot Web và mã hóa
Hiển thị diễn đàn phụ với 2 cột cho DZ7
Tác giả yugiohhhPhiên bản Discuz đã thử nghiệm 7.0Thông tin tác giả Bước 1: Mở tệp discuz.htm trong tệp mẫu / mặc định / (hoặc trong thư mục mẫu của bạn) Tìm thấy: <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}--><br /> Thay thế bằng: Kiểu 1: Giữ văn bản "Diễn đàn phụ" <br /><!-- Start - SubForum Column by … Đọc tiếp Hiển thị diễn đàn phụ với 2 cột cho DZ7