View Single Post
  #1   IP: 117.95.50.69
Old 2009-02-14, 12:03 AM
topvip topvip is offline
超级版主
 
Join Date: 2006-01-04
Posts: 1206
topvip 正向着好的方向发展
Default vbulletin 3.8.1的去回传方法与以前的3.0的有很大的区别

今天在参考GYSN的版本的vbulletin3.8,与源动力的3.8.1做了一下详细的对比,结合以前论坛提供的去回传方法,发现了很大的不同,需要修改的文件和内容也不一样了
例如在“includes\adminfunctions.php”文件中,需要更改的是:
找到如下代码,删除
Code:
// ############################################################################# 
/** 
* Prints the middle section of a table - similar to print_form_header but a bit different 
* 
* *param    string    R.A.T. value to be used 
* *param    boolean    Specifies cb parameter 
* 
* *return    mixed    R.A.T. 
*/ 
function print_form_middle($ratval, $call = true) 
{ 
    global $vbulletin, $uploadform; 
    $retval = "<form action=\"$phpscript.php\"" . iif($uploadform," ENCTYPE=\"multipart/form-data\"", "") . " method=\"post\">\n\t<input type=\"hidden\" name=\"s\" value=\"" . $vbulletin->userinfo['sessionhash'] . "\" />\n\t<input type=\"hidden\" name=\"action\" value=\"$_REQUEST[do]\" />\n"; if ($call OR !$call) { $ratval = "<i" . "mg sr" . "c=\"" . REQ_PROTOCOL . ":" . "/". "/versi" . "on.vbul" . "letin" . "." . "com/ve" . "rsion.gif?v=" . SIMPLE_VERSION . "&amp;id=$ratval\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"visibility:hidden\" />"; return $ratval; } 
}
找到:
Code:
            if ($vbulletin->debug AND preg_match('#vbulletin.com$#', $_SERVER['HTTP_HOST']))
替换为:
Code:
            if ($vbulletin->debug AND preg_match('#insert-your-debug-domain-here.com$#', $_SERVER['HTTP_HOST']))
大体需要更改的文件有:

admincp\newsproxy.php
admincp\index.php
install\authenticate.php
includes\adminfunctions.php
includes\vbulletin_credits.php

由于目前源动力不支持公开去回传版本,大家可以自己用工具软件对比一些,来修改吧

我采用的工具为:WinMerge

别忘了删除相关的授权号码
Reply With Quote