Diễn đàn Trái Tim Yên Bái 2024

 Quên mật khẩu
 Đăng ký
Tác giả: NgocTuanOnline
Thu gọn cột thông tin

Tổng Hợp Hướng Dẫn Cài Đặt Và Sử Dụng, Quản Lý VBB

[Lấy địa chỉ]

Viết tâm trạng

 Tác giả| Đăng lúc 13-12-2008 03:57 PM | Xem tất

Khắc phục tình trạng time out của cookie đối với VBB 3.6.x

Tất cả các phiên bản 3.6.x có thể gặp tình trạng mất cookie sau khi đã đăng nhập. Khi nâng cấp lên phiên bản VBB 3.6.0 diễn đàn chúng ta cũng gặp lỗi này để khắc phục lỗi các bạn làm như sau:

Edit navbar template , tìm:
Code:
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
Thay bằng:
Code:
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input CHECKED type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
Edit STANDARD_ERROR template, tìm:
Code:
<td> <span style="float:$stylevar[right]"><a href="login.php?$session[sessionurl]do=lostpw">$vbphrase[forgotten_your_password]</a></span> <label for="cb_cookieuser"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" />$vbphrase[remember_me]</label> </td>
Thay bằng:
Code:
<td> <span style="float:$stylevar[right]"><a href="login.php?$session[sessionurl]do=lostpw">$vbphrase[forgotten_your_password]</a></span> <label for="cb_cookieuser"><input CHECKED type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" />$vbphrase[remember_me]</label> </td>
Vậy là xong
 Tác giả| Đăng lúc 13-12-2008 04:02 PM | Xem tất

Bộ công cụ nén forum VBB, giúp forum load siêu nhanh

Xin giới thiệu bộ công cụ mới giúp nén forum VBB, chạy nhanh hơn trước là cái chắc!
1. Template Compressor
Công dụng: nén trang web để load nhanh hơn nếu host chậm, một nghịch lý đáng buồn là sẽ không thể hoạt động những Mod import dạng product và không động đến templates. Tức là trở về trang thái ban đầu nhưng những gì baṇ tác động vào Templates như postbit, memberinfo....đều còn nguyên
Vào ACP và Import cái product-tpl_compress.xml vào dạng Product.
Upload file cpnav_tpl_compress.xml lên host theo /includes/xml
Bắt đầu làm việc:
Mở file admincp/template.php( nó là file, không phải templates nha)

Code:
// find custom templates that need updating
Thêm vào sau nó :

PHP Code:

// #############################################################################  
// Rebuild Templates Compressed  
if ($_REQUEST['do'] == 'compress_all')  
{  
   
/**  
     * Compress Templates Mod  
     *  
     * Thanks for Help & Support From buro9  
     * Thanks for donation of regexp, hellcat  
     *  
     * @author Trigunflame  
     * @co-athor Hellcat  
     * @version 3.5, 3.6.x  
     * @copyright Dusty Burns, 2005-2006  
     *   
     * @todo Automatically Update Template Data on Edit  
     * @todo Need to Update the Template Compression Regex  
     * @present at santabyte.com  
     */  
      
    // Do Not Compress These Templates  
   
$bad_t = explode(' ', trim($vbulletin->options['tpl_acc_ignore']));  

   
// Preg_Replace Callbacks  
   
function cb_script($matches)  
    {  
        global
$ascript;  
        
$i = count($ascript) + 1;  
        
$h = md5($matches[0]);  
        
$ascript[$i][0] = $matches[0];  
        
$ascript[$i][1] = $h;  
        return
$h;  
    }  
    function
cb_text($matches)  
    {  
        global
$atext;  
        
$i = count($atext) + 1;  
        
$h = md5($matches[0]);  
        
$atext[$i][0] = $matches[0];  
        
$atext[$i][1] = $h;  
        return
$h;  
    }  
    function
cb_pre($matches)  
    {  
        global
$apre;  
        
$i = count($apre) + 1;  
        
$h = md5($matches[0]);  
        
$apre[$i][0] = $matches[0];  
        
$apre[$i][1] = $h;  
        return
$h;  
    }  

   
// Lower Templates  
   
foreach ($bad_t AS $k => $t)  
    {  
        
$bad_t[$k] = strtolower($t);  
    }  

   
// Fetch Templates  
   
$templates = $db->query_read(  
        
"SELECT templateid, title, template_un " .   
        
"FROM " . TABLE_PREFIX . "template " .  
        
"WHERE template_un <> ''"  
   
);  
    while (
$t = $db->fetch_array($templates))  
    {  
        
// Compile Template  
        
$c = compile_template($t['template_un']);  
         
        
// Bad Template  
        
if (in_array(strtolower($t['title']), $bad_t))  
        {  
            echo
"<u>Bad Template <b>$t[title]</b></u><br />\n";  
        }  
        
// Reverting Template  
        
elseif ($_REQUEST['revert'])  
        {  
            echo
"Uncompressing <b>$t[title]</b><br />\n";  
        }  
        
// Compress Template  
        
else  
        {  
            echo
"Compressing <b>$t[title]</b><br />\n";  
            
$ascript = array();  
            
$atext = array();  
            
$apre = array();  
            
$c = preg_replace_callback('/<textarea.*?[^\btextarea>\b]*?textarea>/si',"cb_text",$c);  
            
$c = preg_replace_callback('/<pre.*?[^\bpre>\b]*?pre>/si',"cb_pre",$c);  
            
$c = preg_replace_callback('/<nocompress.*?[^\bnocompress>\b]*?nocompress>/si',"cb_text",$c);  
            
$c = preg_replace('/(\r)?\n(\s*)/',"\n",$c);  
            
$c = preg_replace_callback('/<script.*?[^\bscript>\b]*?script>/si',"cb_script",$c);  
            
$c = str_replace("\n" ," " ,$c);  
            
$c = preg_replace('/\/\*.*?[^\b\*\/\b]*?.*?\*\//',"",$c);  
            
$c = preg_replace('/<!--[^\{\[]*?-->/i',"",$c);  
            foreach (
$ascript AS $block) { $c = str_replace($block[1], $block[0], $c); }  
            foreach (
$atext AS $block) { $c = str_replace($block[1], $block[0], $c); }  
            foreach (
$apre AS $block) { $c = str_replace($block[1], $block[0], $c); }  
            
$c = preg_replace('/>[\s]+</', "> <", $c);  
            
$c = str_replace("<nocompress>", "", $c);  
            
$c = str_replace("</nocompress>", "", $c);  
        }  
         
        
// Update Template  
        
$db->query_write(  
            
"UPDATE " . TABLE_PREFIX . "template " .   
            
"SET template = '" . addslashes($c) . "' " .   
            
"WHERE templateid = '" . $t['templateid'] . "'"  
        
);  
    }  
      
   
// Finished  
   
print_cp_message("Finished modifying templates...", "template.php", 5);  
}  
/**  
* End Compress Templates Mod  
*/  



Save lại và upload file lên host theo path trên.
Sử dụng:
Vào ACP (Nhấn F5) sẽ thấy mục Template Compressor, chọn Compress Templates, chờ vài giây sẽ thấy, vào lại forum chính và F5 thử xem thì biết.
Download : http://hoiquantinhoc.com/forum/attachment.php?attachmentid=187&d=1193832905
------------------------------------------

Bộ công cụ thứ 2 HELLCAT's Realtime Page Compressor
Nén trang và xuất thành dạng HTML tiết kiệm thời gian từ 10% ~ 15%. Cũng rất đáng thử chứ.

Import cái product-hc_pgcompressor.xml vào dạng Product.
Nhấn F5 vào VB Options -> Realtime Page Compressor Options
Nhấn Yes để kích hoạt nó.
Kiểm tra: vào forum chính nhìn xuống dưới cùng sẽ thấy một dòng nhỏ xem nặng bao nhiêu kí và nén đựơc bao nhiêu %

Download http://hoiquantinhoc.com/forum/attachment.php?attachmentid=188&d=1193833010
---------------------------------------------

Bộ công cụ thứ 3 plugin_accelerator

Nén file trên host cho nhẹ gánh server khi phải tài về nhiều file
Import cái product-plugin_accelerator.xml vào dạng Product.
Upload file: class_plugin_accelerator.php và hook_files.php vào /includes/
Upload file: cpnav_plugin_accelerator.xml vào /includes/xml/

Mở file admincp/global.php lên tìm

Code:
$specialtemplates[] = 'pluginlistadmin';
Thêm dưới

Code:
$specialtemplates[] = 'acc_p_enabled';     $specialtemplates[] = 'acc_p_cache';
Mở file admincp/plugin.php tìm
Code:
print_description_row($vbphrase['plugins_disable_config']);         }         print_table_footer(2, '', '', false);     } }
Thêm dưới đoạn sau:

Code:
/**  * Vbulletin Plugin Accelerator  * @author Dusty Burns (Trigunflame@charter.net)  * Present at (santabyte.com)  */ // ###################### Rebuild Hook Key Cache ###################### if ($_REQUEST['do'] == 'rebuild_acc_cache') {     /*      * Require Plugin Accelerator Class      * Normally I wouldn't use an external source file, but otherwise       * we're just going to be using a lot of redundant code inside here.      */     if (@!include_once(DIR . '/includes/class_plugin_accelerator.php'))     {         print_stop_message("acc_class_nfound");     }          /*      * Rebuild Our Hashmap of hook_name => file      * This will be stored in the Vbulletin Datastore      */     $p_accel = new vb_plugin_accelerator();     if ($h = $p_accel->build_hook_cache())     {         print_cp_message("Rebuilt Plugin Accelerator Hook Cache (<b>$h Hooks</b>)", "plugin.php", 3);     } } // ###################### Rebuild All Plugins ###################### if ($_REQUEST['do'] == 'rebuild_acc_plugins') {     /*      * Require Plugin Accelerator Class      * Normally I wouldn't use an external source file, but otherwise       * we're just going to be using a lot of redundant code inside here.      */     if (@!include_once(DIR . '/includes/class_plugin_accelerator.php'))     {         print_stop_message("acc_class_nfound");     }          /*      * Rebuild Hook Cache, Reparse all Vbulletin Hooks      * and then insert PHP Code into the correct files.      */     $p_accel = new vb_plugin_accelerator();     if ($p_accel->build_all_plugins())     {         print_cp_message("Rebuilt All Plugins Successfully", "plugin.php", 3);     } } // ###################### Switch Accelerator Status ###################### if ($_REQUEST['do'] == 'status_acc') {     /*      * Require Plugin Accelerator Class      * Normally I wouldn't use an external source file, but otherwise       * we're just going to be using a lot of redundant code inside here.      */     if (@!include_once(DIR . '/includes/class_plugin_accelerator.php'))     {         print_stop_message("acc_class_nfound");     }          /*      * Handle Turning On and Off the Plugin Accelerator      */     $p_accel = new vb_plugin_accelerator();     $p_accel->change_status(); } /**  * Vbulletin Plugin Accelerator  */
Save lại và upload lên host
Mở file hook_files.php lên và xem danh sách các file cần change permission (CHMOD)
Change thành 666 (hoặc 777)
Vào ACP tìm mục mới là Plugin System
Nhấn vào Enable / Disable Accelerator để bật tính năng nén file cache lên
Nhấn "Rebuild Hook Cache". Để nén Plugins code trong file hệ thống.
Nhấn "Rebuild All Plugins". để nén tất cả các plugins hiện có.

Download : http://hoiquantinhoc.com/forum/attachment.php?attachmentid=189&d=1193833135
Nguồn : hoiquantinhoc

Hay thì thanks hộ nhé
 Tác giả| Đăng lúc 13-12-2008 04:06 PM | Xem tất

Bảo mật cho forum

Ý nghĩa của việt bảo mật



Ai có một trang với toàn hàng độc, không muốn người khác chôm ch** thì ko nói làm gì. Nhưng trang thuộc dạng mã nguồn mở, ko có gì để che dấu lại càng phải tăng thêm tính bảo mật.

Khi bảo mật kém, hacker có thể lấy pass admin, tự tạo nick admin (root mới kinh), ddos, phá hoại ngầm forum, cài virut, hack những acc ở diễn đàn/ website khác, bị xóa sạch hoặc tê liệt hoàn toàn forum. Đôi khi, bạn có thể mất host và domain.

Bạn đừng nghĩ mình không gây thù oán với ai là ko bị hack. Có thể có những hacker rảnh rỗi, có thể có 1 thằng spam, bị bạn ban và hắn hack (hoặc gọi người quen hack hộ)...

Có rất nhiều chứng minh cho việc bảo mật là vô cùng quan trọng ^^~



Cách bảo mật
Để bảo mật trang forum của mình, các bạn có rất nhiều cách và mỗi cách lại có ưu/ nhược riêng:.
Cũng có thể sử dụng nhiều phương án bảo mật trong 1 forum nhưng đôi khi, chúng có thể gặp xung đột.



Cách đơn giản nhất


+ Backup thường xuyên
Backup mỗi ngày ít nhất 1 lần (nếu forum lớn) hoặc 1 tuần 1 lần (nếu forum nhỏ) và ít nhất 1 tháng backup toàn bộ file 1 lần.
Để làm được việc này một cách nhanh ng, các bạn cần mod autobackup và 1 đoạn code php để nén các file trên host (một số host có chức năng nén thì ko cần)

+Bảo vệ admin root
Admin root vô cùng quan trọng, dù các bạn có thể xóa ID đó là admin root nhưng trong thời gian hacker chiếm dc acc nào cũng đủ làm trang của bạn trở thành bình địa : ))
Vì vậy, các bạn chỉ nên sử dụng nick admin root tại localhost còn post bài trên mạng nên tạo 1 acc admin full quyền và sử dụng.
Tuyệt đối không bấm vào các link lạ do mem post lên bằng ID admin root nếu không có tường lửa cũng như trình diệt virut xịn.
Nên thay pass admin mỗi tuần.

+Không hack mod quá nhiều
Có một số mod làm giảm tính ăng bảo mật nên trước khi hack mod cần kiểm tra kỹ càng các mod đó.
Khi upload folder để hackmod, hãy Chmod nó thành 744 và các tệp thành 644

+Tất cả folder đều có file index.htm
Ngoại trừ folder root và admincp/ modcp. Tất cả các folder đều cần file index.htm để tánh sự dòm ngó.


Che dấu các file hoặc folder nhạy cảm

+Bảo vệ các file/ folder nhạy cảm
Những file sau vô cùng quan trọng và bạn nên dấu nó đi hoặc tăng cường các spirit để bảo mật:
config.php admincp panel

Cpanel là nơi quan trọng nhất nhưng bảo vệ nó thì mình ko làm gì dc nhiều bởi nó thuộc sever root, nhà cung cấp host sẽ lo vụ bảo mật cho nó. Việc bạn cần làm là không để bị lộ ID và pass.Và di chuyển cpanel tới một nơi ko ai ngờ tới thay vì

Code:
http://yourweb.com/cpanel hay http://cpanel.yourweb.com
Cũng như vậy, folder admincp và file config nên được di chuyển hoặc đổi tên thay vì đặt mặc định.
Cũng có thể tạo thêm các spirit bảo vệ admincp như tăng thêm 1 bảng hỏi pass, bắt buộc link đến admincp là từ IP của bạn...


Sử dụng .htpasswd

.htpasswd là file dùng để sửa sever nên rất có công dụng trong việc bảo mật.

Sử dụng endcode unix password để mã hóa code
Thêm các đoạn spirit bảo mật (lên Google mà tìm

                               
Đăng nhập/Đăng ký mở rộng
)
VD:

Code:
Options +FollowSymlinksRewriteEngine onRewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourweb.com [NC]RewriteRule ^(.*).(php|html|asp|htm) antiddos.htm [NC]
Sử dụng các spirit bảo vệ

Dây là cách an toàn nhất nhưng dễ gây chậm forum hoặc xung đột với nhau nên tốt nhất chỉ xài 1,2 cái thui. Không nên cài nhiều.

Firewall DNP: Nó là firewall tương tác rất tốt với vbulletin, chi tiết tại: http://www.silveryhat.com/delynie/f46/vbulletin-mod-cg-i-d-b-3109.html
File ddos_hunter.php (thợ săn ddos

                               
Đăng nhập/Đăng ký mở rộng
)

Code:
<?echo '<br /><p align=center><a href="'.$REQUEST_URI.'" target="_top" >Enter</a></p>';?>
Sử dụng antidos:
Tạo 1 file antidos.htm đơn giản và có 1 câu lệnh gọi file antidos.js
Và tạo 1 file antidos.js:

Code:
var currUrl = this.document.URL;var newUrl = currUrl.replace('#','?');var re=/CODE/var chk=re.test(currUrl);    if (chk==1)    {        this.document.write("<div align='center'><a href='"+newUrl+"&' target='_self'>[Click vao day de xem noi dung]</a></div>");            }    else    {        this.document.write("<div align='center'><a href='"+newUrl+"?' target='_self'>[Click vao day de xem noi dung]</a></div>");    }
 Tác giả| Đăng lúc 13-12-2008 04:08 PM | Xem tất

Convert Datadabase từ Phpbb/Ubb/Ibf qua VBB Và Ngược Lại

Hiện nay VBB đã tỏ ra là diễn đàn có nhiều ưa thế về giao diện, tốc độ load, kích thước database và cách sủ dụng cũng như bào mật.

Có nhiều ngưòi hiện đang dùng phpBB, IBF,UBB,... muốn chuyển sang dùng VBB, sẽ bị mất dữ liệu? Làm lại từ đầu? Điều này đã thúc đẩy nhiều người tìm hiểu hơn về việc nay..

Đây gọi là cách covert từ phpBB,Ibf, Ubb,... -->VBB.

Đây là những step đã convert cái forum phpbb qua vbb forum thành công.
Xin được gửi kinh nghiệm đến các bạn

1/ Trước tiên bạn phải install cái vbb 2.3 vào web bạn trước, bởi vì muốn convert phpbb qua vbb thì dùng vbb 2.3 mới được.

2/ Bạn phải bỏ cái database của phpbb chung với database của vbb.

3/ Download cái file Import (DownLoad Phía Dưới) và upload nó vào root folder của cái forum vbb 2.3 của bạn.

4/ Bạn phải mở url và run cái file bạn vừa upload lên, like this:
http://www.tenban.com/forum/importers/bbimport_phpbb2.php nó sẻ hỏi user/pass cho database thì bạn điền vào.


5/ Bạn cứ theo theo màn hình mình khi nó hỏi bạn phải làm gì thì làm theo tôi (cái này thì tôi không nhớ hết,nhưng mà củng không khó lắm đâu nhưng phải đọc kỷ và làm theo nó)

6/ Còn tuỳ theo database bạn bao lớn thì nó sẻ convert qua vbb database. Thời gian convert phụ thuộc vào data của bạn nhiều hay ít, nên bạn cần phải kiên nhẩn chờ đợi trong thời gian cái script chuyển đổi database từ phpbb sang vbb.

7/ Sau khi xong xuôi hết, thì bạn update vbb 2.3 lên v3.0 (lúc này đừng nên vào config gì forum hết, chỉ nên update lên 3.0)

8/ Sau khi update lên vbb 3.0 xong, bạn mới vào cpanel của forum, config lại hết, từ forum permission, Admin permission, Moderator permission. Nói chung bạn phải config lại hết chứ nhiều khi cái permission từ phpbb chuyển qua nó không đúng hết.

Hoàn toàn tương tự cho IBF, UBB,...

Download File Import
http://www.freewebs.com/computerangel/import.zip


Chúc bạn thành công.
 Tác giả| Đăng lúc 13-12-2008 04:10 PM | Xem tất
Bài viết này xin chia sẻ với các bạn phương pháp để có thể tự Null 1 bản vBulletin.
Nào bắt đầu nhé, xin lưu ý là bạn hãy thay thế đoạn "license_key" bằng số license key của bạn, ở đây tôi dùng trong ví dụ là "Anh2_GDV" .


Đầu tiên ta mở file admincp/index.php rồi tìm:

PHP Code:
// ################################ MAIN FRAME #############################

if ($_REQUEST['do'] == 'home')
{

print_cp_header($vbphrase['welcome_to_the_vbulletin_admin_control_panel']);

// there have been problems reported with fsockopen() in some PHP versions.
// this should work around it though
if (phpversion() < '4.3.0' OR phpversion() > '4.3.2' OR @ini_get('allow_url_fopen') != 1)
{
$fp = @fsockopen('version.vbulletin.com', 80, $errno, $errstr, 3);
}
else
{
$fp = @fopen('http://version.vbulletin.com', 'r');
}
if ($fp)
{
fclose($fp);
?>
<script type="text/javascript" src="<A href="http://version.vbulletin.com/versioncheck.js"></script">http://version.vbulletin.com/versioncheck.js"></script>
<script type="text/javascript" src="<A href="http://version.vbulletin.com/version.js?id=Anh2_GDV"></script">http://version.vbulletin.com/version.js?id=Anh2_GDV"></script>
<script type="text/javascript">
<!--
if (typeof(vb_version) != "undefined" && isNewerVersion("<?php echo $vboptions['templateversion']; ?>", vb_version))
{
var current_version = "<?php echo $vboptions['templateversion']; ?>";
var latest_string = "<?php echo $vbphrase['latest_version_available_x']; ?>";
var current_string = "<?php echo $vbphrase['you_are_running_vbulletin_version_x']; ?>";
var download_string = "<?php echo $vbphrase['download_vbulletin_x_from_members_area']; ?>";

document.writeln('<table cellpadding="4" cellspacing="0" border="0" align="center" width="90%" class="tborder"><tr><td class="tcat" align="center"><b><?php echo $vbphrase['there_is_a_newer_vbulletin_version']; ?></b></td></tr><tr><td class="alt1" align="center">');
document.writeln('<p><b><a href="http://www.vbulletin.com/forum/showthread.ph' + 'p?postid=' + vb_announcementid + '" target="_blank">' + construct_phrase(latest_string, vb_version) + "</a></b></p>");
document.writeln('<p>' + construct_phrase(current_string, current_version.bold()) + '</p>');
document.writeln('<p><a href="http://www.vbulletin.com/members/" target="_blank">' + construct_phrase(download_string, vb_version.bold()) + '</a></p>');
document.writeln('</td></tr></table>');
}
//-->
</script>

<?php
}


thay thế bằng đoạn sau:

PHP Code:

// ################################ MAIN FRAME #############################

if ($_REQUEST['do'] == 'home')
{

print_cp_header($vbphrase['welcome_to_the_vbulletin_admin_control_panel']);   

tiếp tục tìm:

PHP Code:

print_label_row($vbphrase['useful_links'], '
<form style="display:inline">
<select onchange="if (this.options[this.selectedIndex].value != \'\') { window.open(this.options[this.selectedIndex].value); } return false;" tabindex="1" class="bginput">
<option value="">-- '
. $vbphrase['useful_links'] . ' --</option>' . construct_select_options(array(
'vBulletin' => array(
'http://www.vbulletin.com/' => $vbphrase['home_page'] . ' (vBulletin.com)',
'http://www.vbulletin.com/members/' => $vbphrase['members_area'],
'http://www.vbulletin.com/forum/' => $vbphrase['community_forums'],
'http://www.vbulletin.com/docs/html/' => $vbphrase['reference_manual']   

thay thế bằng đoạn sau:

PHP Code:

print_label_row($vbphrase['useful_links'], '
   <form style="display:inline">
   <select onchange="if (this.options[this.selectedIndex].value != \'\') { window.open(this.options[this.selectedIndex].value); } return false;" tabindex="1" class="bginput">
       <option value="">-- '
. $vbphrase['useful_links'] . ' --</option>' . construct_select_options(array(  



tiếp tục tìm:

PHP Code:
// *************************************
// vBULLETIN CREDITS
require_once('./includes/vbulletin_credits.php');

?>

<div class="smallfont" align="center">
<!--<?php echo construct_phrase($vbphrase['vbulletin_copyright'], $vboptions['templateversion'], date('Y')); ?><br />-->
<script type="text/javascript">
<!--
if (typeof(vb_version) != "undefined")
{
var this_vb_version = "<?php echo $vboptions['templateversion']; ?>";
if (isNewerVersion(this_vb_version, vb_version))
{
document.writeln('<a href="http://www.vbulletin.com/forum/showthread.ph' + 'p?postid=' + vb_announcementid + '" target="_blank">' + construct_phrase(latest_string, vb_version) + '</a><br />' + construct_phrase(current_string, this_vb_version.bold()));
}
else
{
document.write(construct_phrase('<?php echo $vbphrase['your_version_of_vbulletin_is_up_to_date']; ?>', this_vb_version));
}
}
// -->
</script>
</div>

<?php

echo $reminders['script'];

unset(
$DEVDEBUG);
print_cp_footer();

}


thay thế bằng đoạn sau:

PHP Code:

// *************************************
// vBULLETIN CREDITS
require_once('./includes/vbulletin_credits.php');

echo
$reminders['script'];
unset(
$DEVDEBUG);
print_cp_footer();

}  



tiếp tục tìm:

PHP Code:
// ################################ NAVIGATION FRAME #############################

if ($_REQUEST['do'] == 'nav')
{
require_once('./includes/adminfunctions_navpanel.php');
print_cp_header();

echo "\n<div>";
?><img src="../cpstyles/<?php echo $vboptions['cpstylefolder']; ?>/cp_logo.gif" title="<?php echo $vbphrase['admin_control_panel']; ?>" alt="" border="0" hspace="4" <?php $df = print_form_middle("Dreamz_Licenses"); ?> vspace="4" /><?php
echo "</div>\n\n" . iif(is_demo_mode(), "<div align=\"center\"><b>DEMO MODE</b></div>\n\n") . "<div style=\"width:168px; padding: 4px\">\n";

// cache nav prefs
can_administer();

construct_nav_spacer();


thay thế bằng đoạn sau:

PHP Code:
// ################################ NAVIGATION FRAME #############################

if ($_REQUEST['do'] == 'nav')
{
   require_once('./includes/adminfunctions_navpanel.php');
   print_cp_header();

   echo "\n<div>";
   ?><img src="../cpstyles/<?php echo $vboptions['cpstylefolder']; ?>/cp_logo.gif" title="<?php echo $vbphrase['admin_control_panel']; ?>" alt="" border="0" hspace="4" vspace="4" /><?php
   
echo "</div>\n\n" . iif(is_demo_mode(), "<div align=\"center\"><b>DEMO MODE</b></div>\n\n") . "<div style=\"width:168px; padding: 4px\">\n";

   
// cache nav prefs
   
can_administer();

   
construct_nav_spacer();


tiếp tục tìm:

PHP Code:
// ######################################################################
#######
// ################################# HEADER FRAME ##############################
// ######################################################################
#######

if ($_REQUEST['do'] == 'head')
{
ignore_user_abort(true);

define('IS_NAV_PANEL', true);
if (phpversion() < '4.3.0' OR phpversion() > '4.3.2' OR @ini_get('allow_url_fopen') != 1)
{
$fp = @fsockopen('version.vbulletin.com', 80, $errno, $errstr, 3);
}
else
{
$fp = @fopen('http://version.vbulletin.com', 'r');
}
$headjs = '';
if ($fp)
{
fclose($fp);
$headjs = '<script type="text/javascript" src="http://version.vbulletin.com/version.js?id=Anh2_GDV"></script>';
}
print_cp_header('', '', $headjs);

?>
<script type="text/javascript">
<!--
if (typeof(vb_version) == "undefined")
{
var vb_version = '<?php echo $vbphrase['n_a']; ?>';
}
// -->
</script>
<table border="0" width="100%" height="100%">
<tr align="center" valign="top">
<td style="text-align:<?php echo $stylevar['left']; ?>"><a href="http://www.vbulletin.com/" target="_blank"><b><?php echo $vbphrase['admin_control_panel']; ?></b> (vBulletin <?php echo $versionnumber.print_form_middle("Anh2_GDV"); ?>)<?php echo iif(is_demo_mode(), ' <b>DEMO MODE</b>'); ?></a></td>
<td><a href="http://www.vbulletin.com/members/" target="_blank"><script type="text/javascript"> document.write(construct_phrase('<?php echo $vbphrase['latest_version_available_x']; ?>', vb_version));</script></a></td>
<td style="white-space:nowrap; text-align:<?php echo $stylevar['right']; ?>; font-weight:bold">
<a href="../<?php echo $vboptions['forumhome']; ?>.php?<?php echo $session['sessionurl']; ?>" target="_blank"><?php echo $vbphrase['forum_home_page']; ?></a>
|
<a href="index.php?<?php echo $session['sessionurl']; ?>do=cplogout" onclick="return confirm('<?php echo $vbphrase['sure_you_want_to_log_out_of_cp']; ?>');" target="_top"><?php echo $vbphrase['log_out']; ?></a>
</td>
</tr>
</table>
<?php

define
('NO_CP_COPYRIGHT', true);
unset(
$DEVDEBUG);
print_cp_footer();

}


thay thế bằng đoạn sau:

PHP Code:
// ######################################################################
#######
// ################################# HEADER FRAME ##############################
// ######################################################################
#######

if ($_REQUEST['do'] == 'head')
{
   ignore_user_abort(true);

   define('IS_NAV_PANEL', true);

   $headjs = '';

   print_cp_header('', '', '');

   ?>
   <table border="0" width="100%" height="100%">
   <tr align="center" valign="top">
       <td style="text-align:<?php echo $stylevar['left']; ?>"><b><?php echo $vbphrase['admin_control_panel']; ?></b> (vBulletin 3.0.7)<?php echo iif(is_demo_mode(), ' <b>DEMO MODE</b>'); ?></td>
       <td style="white-space:nowrap; text-align:<?php echo $stylevar['right']; ?>; font-weight:bold">
           <a href="../<?php echo $vboptions['forumhome']; ?>.php?<?php echo $session['sessionurl']; ?>" target="_blank"><?php echo $vbphrase['forum_home_page']; ?></a>
           |
           <a href="index.php?<?php echo $session['sessionurl']; ?>do=cplogout" onclick="return confirm('<?php echo $vbphrase['sure_you_want_to_log_out_of_cp']; ?>');" target="_top"><?php echo $vbphrase['log_out']; ?></a>
       </td>
   </tr>
   </table>
   <?php

   define
('NO_CP_COPYRIGHT', true);
   unset(
$DEVDEBUG);
   
print_cp_footer();

}


Đến đây chưa save file này lại được đâu nhé :k57 để khi thực hiện cài đặt hay setting tools không bị đòi license key ta tiếp tục thực hiện bước sau, tiếp tục tìm:


error_reporting(E_ALL & ~E_NOTICE);

PHP Code:
if (VB_AREA !== 'Upgrade' AND VB_AREA !== 'Install')
{
exit;
}

// ######################################################################
#######

define('CUSTOMER_NUMBER', trim(strtoupper('Anh2_GDV')));

// ######################################################################
#######

if ($_POST['do'] == 'login')
{
$customerid = trim(strtoupper($_POST['customerid']));

if ($customerid == CUSTOMER_NUMBER)
{
//vbsetcookie('customerid', $customerid, 0);
setcookie('bbcustomerid', $customerid, 0, '/', '');

// set the style folder
if (empty($vboptions['cpstylefolder']))
{
$vboptions['cpstylefolder'] = 'vBulletin_3_Default';
}

$redirect = $_POST['redirect'];
if (strpos('?', $redirect) === false)
{
$redirect .= '?';
}
else
{
$redirect .= '&';
}
$redirect .= 'rand=' . rand(0, 1000);

print_cp_header('', '', "<meta http-equiv=\"Refresh\" content=\"1; URL=$redirect\">");
?>
<p></p><p></p>
<blockquote><blockquote><p>
<b><?php echo $authenticate_phrases['cust_num_success']; ?></b><br />
<span class="smallfont"><a href="<?php echo $redirect; ?>"><?php echo $authenticate_phrases['redirecting']; ?></a></span>
</p></blockquote></blockquote>
<?php

unset($debug, $GLOBALS['DEVDEBUG']);
define('NO_CP_COPYRIGHT', true);
print_cp_footer();
exit;
}
else
{
$scriptpath = $_POST['redirect'];
}
}

// ######################################################################
#######
if (strtoupper($_COOKIE['bbcustomerid']) != CUSTOMER_NUMBER)
{
global
$stylevar;

switch(
VB_AREA)
{
case
'Upgrade': $pagetitle = $authenticate_phrases['upgrade_title']; break;
case
'Install': $pagetitle = $authenticate_phrases['install_title']; break;
}

// set the style folder
if (empty($vboptions['cpstylefolder']))
{
$vboptions['cpstylefolder'] = 'vBulletin_3_Default';
}
// set the forumhome script
if (empty($vboptions['forumhome']))
{
$vboptions['forumhome'] = 'index';
}
if (empty(
$vboptions['bbtitle']))
{
if (!empty(
$bbtitle))
{
$vboptions['bbtitle'] = $bbtitle;
}
else
{
$vboptions['bbtitle'] = $authenticate_phrases['new_installation'];
}
}
// set the version
$vboptions['templateversion'] = VERSION;

define('NO_PAGE_TITLE', true);
print_cp_header($pagetitle);

?>
<form action="<?php echo THIS_SCRIPT; ?>" method="post">
<input type="hidden" name="redirect" value="<?php echo htmlspecialchars_uni($scriptpath); ?>" />
<input type="hidden" name="do" value="login" />
<p></p><p></p>
<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="450" align="center"><tr><td>

<!-- header -->
<div class="tcat" style="padding:4px; text-align:center"><b><?php echo $authenticate_phrases['enter_cust_num']; ?></b></div>
<!-- /header -->

<!-- logo and version -->
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="navbody">
<tr valign="bottom">
<td><img src="../cpstyles/<?php echo $vboptions['cpstylefolder']; ?>/cp_logo.gif" alt="" border="0" /></td>
<td>
<b><a href="../<?php echo $vboptions['forumhome']; ?>.php"><?php echo $vboptions['bbtitle']; ?></a></b><br />
<?php echo "vBulletin $vboptions[templateversion] $pagetitle"; ?><br />

</td>
</tr>
</table>
<!-- /logo and version -->

<table cellpadding="4" cellspacing="0" border="0" width="100%" class="logincontrols">
<col width="50%" style="text-align:right; white-space:nowrap"></col>
<col></col>
<col width="50%"></col>
<!-- login fields -->
<tr valign="top">
<td><br /><?php echo $authenticate_phrases['customer_number']; ?><br /></td>
<td class="smallfont"><input type="text" style="padding-left:5px; font-weight:bold; width:250px" name="customerid" value="" tabindex="1" /><br /><?php echo $authenticate_phrases['cust_num_explanation']; ?></td>
<td></td>
</tr>
<!-- /login fields -->
<!-- submit row -->
<tr>
<td colspan="3" align="center">
<input type="submit" class="button" value="<?php echo $authenticate_phrases['enter_system']; ?>" accesskey="s" tabindex="3" />
</td>
</tr>
<!-- /submit row -->
</table>
</td></tr></table>
</form>
<?php

unset($debug, $GLOBALS['DEVDEBUG']);
define('NO_CP_COPYRIGHT', true);
print_cp_footer();
}


rồi thay thế bằng:

PHP Code:
error_reporting(E_ALL & ~E_NOTICE);

if (VB_AREA !== 'Upgrade' AND VB_AREA !== 'Install')
{
exit;
}

if ($_POST['do'] == 'login')
{
// set the style folder
if (empty($vboptions['cpstylefolder']))
{
$vboptions['cpstylefolder'] = 'vBulletin_3_Default';
}

$redirect = $_POST['redirect'];
if (strpos('?', $redirect) === false)
{
$redirect .= '?';
}
else
{
$redirect .= '&';
}
$redirect .= 'rand=' . rand(0, 1000);

print_cp_header('', '', "<meta http-equiv=\"Refresh\" content=\"1; URL=$redirect\">");
?>
<p></p><p></p>
<blockquote><blockquote><p>
<b>Customer number entered successfully.</b><br />
<span class="smallfont"><a href="<?php echo $redirect; ?>">Remove Your customer Number'...</a></span>
</p></blockquote></blockquote>
<?php

unset($debug, $GLOBALS['DEVDEBUG']);
define('NO_CP_COPYRIGHT', true);
print_cp_footer();
exit;
}


Save lại được rồi đó . Để an toàn cho bạn nếu như bạn dùng chính phiên bản của mình để Null đó thì nhớ phải xóa hết số License Key trong tất cả các files của mã nguồn đi nhé( nó nằm trên cùng của file đó ), ví dụ :k35:

PHP Code:

/ *=====================================================================
=*
||
#################################################################### ||
|| # vBulletin 3.6.0 - Licence Number Anh2_GDV
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000–2004 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
& #092;*================================================================
======*/  



an toàn hơn nữa thì nếu không ngại bạn có thể xóa tiệt luôn cả đoạn dưới cùng của các file đi nữa, ví dụ:

PHP Code:

/ *=====================================================================
=*
||
####################################################################
|| # Downloaded: 13:29, Sat Nov 19th 2006  



Thế là xong, chúc thành công
 Tác giả| Đăng lúc 13-12-2008 04:12 PM | Xem tất

Việt hóa forum vbb

bạn tải file Việt Hóa ở link sau ( file việt hóa ~95% , bạn có thể sửa lại để phù hợp với diễn đàn và ý muốn của mình ) : link die thì báo 1 câu nhé  http://aladin0608.hostmienphi.com/viethoa.rar
giải nén ra một thư mục nào đấy trên máy .
Vào Admincp -->Languages & Phrases -->Download / Upload Languages Mục Import Language XML File :
+ EITHER upload the XML file from your computer : chọn file Import XML bạn Browse chọn file vbulletin-language.xml mà lúc nãy bạn giải nén ra.
+ Title for Uploaded Language : Ngôn ngữ Việt Nam hoặc để trống
+ Ignore Language Version : chọn Yes


Nhấn Import để cài đặt. Đợi 30 giây cho hệ thống tự cập nhập. Nhấn Done rồi chọn Set Default (chọn ngôn ngữ chính) cho ngôn ngữ mới vừa cài đặt. Bạn hãy Refresh xem kết quả. Bây giờ ra trang index để xem kểt quả

Chúc thành công
Bạn phải đăng nhập mới được đăng bài Đăng nhập | Đăng ký

Quy tắc điểm

Đóng

Thông báoTrước /1 Sau

Phòng tối|Lưu trữ|Diễn đàn Yên Bái 2024 Community Guidelines |

GMT+7, 5-12-2026 11:32 AM , Processed in 0.070531 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

Trả lời nhanh Lên trên Trở lại danh sách