还在这里
还在这里
最后编辑者 norku; 06-10-11 在 15:03.
和仍在这里。您不能在这里再虽然尽管下午两个小时以上时你肯定 被 在这里。我要去做一些茶。我可以等
和恢复。任何新消息吗?
垃圾邮件? !你在论坛上之前、 期间和我送的点后的下午。我之后等待相当长一段时间的答案在线程上发送它。如果你不能被打扰拖动你自己走了几秒钟回答一个问题,然后你可以至少已确认下午收到的。你引起我遇到的问题。Vbet 不工作作为广告 (是的我知道你能控制),而我想要的就是快速地把它拿了我的论坛。但不是能只是像每个 Vb 的加载项被卸载。哦不,是因为 Vbet 树叶散落在所有地方其 BB 代码。
无处可在您的网站有如何删除 Vbet 的完整说明。不做您告诉我们我们卸载时,将无法删除 BB 代码,我们将不得不等待多日的一个工具,可以将其删除。该工具应该安装软件包的一部分,但你显然不喜欢谈论的。而我得到一个令人难以置信的傲慢的答案你有效地说: 你永远不会被视为可能有人想要卸载 Vbet? !
所以,我现在有成千上万的索引是现在所有生产一丁点和几个数百篇帖子包含 BB 代码的链接,我是问题??
重定向至于做你想要知道呢?我有我一再告诉您安装在 /forum 的 vb 套房。要使用 Vb 安装在 /forum Vbet 只有一组的重定向会工作,我知道你知道。我给你的 ftp 和管理员访问,使您可以为你自己看看,但你显然没有相同的时间量,你所当我还是一个客户 … …。
这是之前,删除 vbet htaccess。这是设在 public_html,工作得很好 (我有 vb 安装在 /forum)
PHP Code:# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.xxxx\.com
RewriteCond %{HTTP_HOST} !(^www\.xxxx\.com$|^cdn\.xxxx\.com$)
RewriteRule (.*) http://www.xxxx.com/$1 [R=301,L]
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forum/$1 [L,R=301]
RewriteRule ^forum/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
#vbet translator rules start
RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forum/ [L,QSA]
RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/(.*)?$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forum/$2 [L,QSA]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
RewriteRule ^forum/((archive/)?(.*.php(/.*)?))$ forum/vbenterprisetranslator_seo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ forum/vbenterprisetranslator_seo.php [L,QSA]
#vbet translator rules end
RewriteCond %{REQUEST_URI} !(media/|admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^forum/((archive/)?(.*\.php(/.*)?))$ forum/vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(media|admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ forum/vbseo.php [L,QSA]
## Expires
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 3456000 seconds"
ExpiresByType image/jpeg "access plus 3456000 seconds"
ExpiresByType image/png "access plus 3456000 seconds"
ExpiresByType text/css "access plus 3456000 seconds"
ExpiresByType text/javascript "access plus 3456000 seconds"
ExpiresByType application/javascript "access plus 3456000 seconds"
ExpiresByType application/x-javascript "access plus 3456000 seconds"
</ifModule>
## Compression
<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</ifmodule>
</ifmodule>
#Remove index.php from xxxx.com/index.php
#rewrite engine on
RewriteCond %{THE_REQUEST} index\.php
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^index\.php$ / [L,R=301]
最后编辑者 norku; 07-10-11 在 10:27.
请注意重复的消息被认为是垃圾邮件 — — 我知道每一个论坛上。不想只是讨论有关垃圾邮件的定义请不要重复。我明白是否您的消息等了几天,因为我们会错过一些如何-将甚至感谢提醒,但 3 倍同一天...
您的.htaccess 应如下所示:
也是我的道歉 — — 我忘了告诉你之前约 301 重定向。它现在被设置。请检查并告诉它是确定 (我不知道没有规则要求 / 论坛之前或也许完整的 URL,但这是论坛上检查)。如果不会使用数据你昨天发送,并将其设置上放置您的访问权限。PHP Code:# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.xxxx\.com
RewriteCond %{HTTP_HOST} !(^www.xxxx.com$|^cdn.xxxx.com$)
RewriteRule (.*) http://www.xxxx.com/$1 [R=301,L]
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forum/$1 [L,R=301]
RewriteRule ^forum/((urllist|sitemap_).*.(xml|txt)(.gz)?)$ forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
#vbet translator rules start
RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/$ forum/ [L,R=301]
RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/(.*)?$ forum/$2 [L,R=301]
RewriteCond %{REQUEST_URI} !(media/|admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^forum/((archive/)?(.*.php(/.*)?))$ forum/vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(media|admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ forum/vbseo.php [L,QSA]
## Expires
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 3456000 seconds"
ExpiresByType image/jpeg "access plus 3456000 seconds"
ExpiresByType image/png "access plus 3456000 seconds"
ExpiresByType text/css "access plus 3456000 seconds"
ExpiresByType text/javascript "access plus 3456000 seconds"
ExpiresByType application/javascript "access plus 3456000 seconds"
ExpiresByType application/x-javascript "access plus 3456000 seconds"
</ifModule>
## Compression
<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
</ifmodule>
</ifmodule>
#Remove index.php from xxxx.com/index.php
#rewrite engine on
RewriteCond %{THE_REQUEST} index.php
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^index.php$ / [L,R=301]
PS。
拉杰克现在测试脚本中删除 vBET BBCodes-不久也会上市。
嗨,
请注意 !
这是此脚本的 beta 版本 !
1、 请创建文件并另存为 ""clearBB.php
2.放入它下面的代码并将其保存
3.将上传到您的服务器, 论坛根
4. 您的数据库的备份
5.请关闭您的论坛
6.以管理员身份登录
7.在您的浏览器,放到目标 url 你 ""clearBB.php
8.按"清除"按钮
如果您希望仅有"明显"的 url,请把切镶的代码的一部分:PHP Code:<?php echo "<input type=\"hidden\" name=\"securitytoken\" value=\"" . $vbulletin->userinfo['securitytoken'] . "\" />\n";?>
<p style="text-align: center">
Use this program to remove all bbcode tags (from posts, and urls) added by vBET </br>
To use this script, please log into your forum in other tab
</br>This script has big influence on your
database and changes are permanent - <b>can not be undone</b> therefore:
</br>
make sure you did the <b>backup of your database!</b> and remember to <b>turn
off your forum</b> during using this script!</p>
<form action="clearBB.php?do=execute" method="post"><input type="submit"
value="clear" style="width: 70%; margin-left: 15%" /></form>
<?php
function &basic_clear($pagetext, $what_to_clear) {
if ((strpos($pagetext, $what_to_clear)) === 0 ){
$i = 0;
} else {
$i = 1;
}
$message_tab = explode($what_to_clear, $pagetext);
for ($i;$i<count($message_tab); $i++){
if ($message_tab[$i][2] == ']')
$message_tab[$i]=substr($message_tab[$i],3);
}
$new_message = implode('',$message_tab);
return $new_message;
}
function update_pagetext(&$new_message, $message_id) {
global $vbulletin;
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "post
SET pagetext = '".addslashes($new_message)."'
WHERE postid = " .$message_id
);
}
function update_tittle(&$new_tittle, $tittle_id) {
global $vbulletin;
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "post
SET title = '".addslashes($new_tittle)."'
WHERE postid = " .$tittle_id
);
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "thread
SET title = '".addslashes($new_tittle)."'
WHERE firstpostid = " .$tittle_id
);
}
require_once('./global.php');
$charset = vB_Template_Runtime::fetchStyleVar('charset');
if ($_REQUEST['do'] == 'execute') {
$result = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."post WHERE pagetext LIKE '%[lang=%' OR pagetext like '%notranslate%' OR title LIKE '%[langtitle=%'" );
while ($message = $db->fetch_array($result)){
//block for clearing post content
if (((strpos($message['pagetext'], 'lang')) !== FALSE) || ((strpos($message['pagetext'], '[notranslate]')) !== FALSE)){
$new_message = $message['pagetext'];
$to_remove = array("[/lang]", "[lang=zh-TW]", "[lang=zh-CN]", "[notranslate]", "[/notranslate]");
$new_message = str_replace($to_remove,'',$new_message);
if ((strpos($message['pagetext'], '[lang=')) !== FALSE){
$new_message = basic_clear($new_message, '[lang=');
}
update_pagetext($new_message,$message['postid'] );
}
// end block of clear for post
//block for clearing urls and thread titles
if ((strpos($message['title'], 'langtitle')) !== FALSE){
$new_message_title = $message['title'];
$to_remove_title = array('[langtitle=zh-CN]','','');
$new_message_title = str_replace($to_remove_title,'',$new_message_title);
if ((strpos($new_message_title, '[langtitle=')) !== FALSE){
$new_message_title=basic_clear($new_message_title, '[langtitle=');
}
update_tittle($new_message_title, $message['postid']);
}
// end of block for clearing urls and threads titles
}
}
?>
比你的浏览器键入目标,并按"清除"按钮清除 url 和线程 //block 标题 <>-/ / 结束的清除 url 和线程标题块
最后编辑者 r.dziadusz; 18-10-11 在 19:27. 原因: 更改代码
非常感谢。我会让你知道是否我遇到任何问题,但信息似乎不够明确。
.htaccess 无法正常工作。它不会重定向,并添加首页/public_html/用户等的 url。删除。
为什么在 17 以上的职位有两个框?我猜框 1 是一个脚本,该框 2 是两个脚本。也没关系,先运行吗?
最后编辑者 norku; 07-10-11 在 18:32.
声是只有一个脚本的第一个
第二个框是删除如果您 onlu 要清除从您的 url 设置高亮
最后编辑者 r.dziadusz; 10-10-11 在 09:06. 原因: 更改代码