网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   闲话灌水 (https://www.0058.net/forumdisplay.php?f=13)
-   -   vbulletin 3.8.*的去回传方法与以前的3.0的有很大的区别 (https://www.0058.net/showthread.php?t=3564)

topvip 2009-02-13 11:56 PM

vbulletin 3.8.*的去回传方法与以前的3.0的有很大的区别
 
今天在参考GYSN的版本的vbulletin3.8,与源动力的3.8.1做了一下详细的对比,结合以前论坛提供的去回传方法,发现了很大的不同,需要修改的文件和内容也不一样了
例如在“includes\adminfunctions.php”文件中,需要更改的是:
找到如下代码,删除

// #############################################################################
/**
* 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; }
}

找到:

PHP 代码:
if ($vbulletin->debug AND preg_match(‘#vbulletin.com$#’, $_SERVER['HTTP_HOST']))
替换为:

PHP 代码:
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 、 UltraEdit

使用UltraEdit批量删除了Licence Number及Downloaded日期

整个过程并不复杂,只是过程比较繁琐


All times are GMT +8. The time now is 07:48 PM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.