Đây là viên đạn ma thuật, thêm qua functions.php hoặc plugin: // block proxy visits function shapeSpace_block_proxy_visits() { if (!is_user_logged_in()) { if (@fsockopen($_SERVER['REMOTE_ADDR'], 80, $errstr, $errno, 1)) { die('Proxy access not allowed'); } } } add_action('after_setup_theme', 'shapeSpace_block_proxy_visits'); Như đã giải thích trong bài viết gốc, đoạn mã này không đủ để chặn tất cả các … Đọc tiếp Chặn lượt truy cập proxy với WordPress
Chuyên mục: DiscuzVN
Tổng hợp mã nguồn DiscuzX
Chặn PROXY Sever trong htaccess cho Web
Tôi đang sử dụng mã này (được một số diễn đàn trên mạng khuyến nghị) để chặn Proxy vào các tệp trang web của mình, bằng cách sử dụng tệp htaccess: RewriteEngine on RewriteCond %{HTTP:XROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:X-FORWARDED-FOR} !^$ [OR] RewriteCond %{HTTP:FORWARDED-FOR} !^$ [OR] RewriteCond %{HTTP:X-FORWARDED} !^$ [OR] RewriteCond %{HTTP:VIA} !^$ [OR] RewriteCond %{HTTP:FORWARDED} … Đọc tiếp Chặn PROXY Sever trong htaccess cho Web
Music World v1.4 – Theme for phpFox 3.x
Download!
SEO hiệu quả với Discuz!
Tối ưu hóa công cụ tìm kiếm, hay SEO (viết tắt của search engine optimization), là một tập hợp các phương pháp nhằm nâng cao thứ hạng của một website trong các trang kết quả của các công cụ tìm kiếm và có thể được coi là một tiểu lĩnh vực của tiếp thị qua … Đọc tiếp SEO hiệu quả với Discuz!
SEO Tips cho Discuz!
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!
[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