重要:此页面会使用Cookie (cookies). 使用本网站不关闭浏览器中的cookie,即表示您同意使用它。
现在购买! 特点 下载

赚钱!

如果您想要开始赚钱与贝特联接 联盟计划。
26 First第一 1234 ... 最后Last
结果 112058

主题: 如何清除vbet语言代码

  1. #11
    高级会员
    注册日期
    2011年2月
    帖子
    138

    Default

    还在这里
    最后编辑者 norku; 06-10-1115:03.

  2. #12
    高级会员
    注册日期
    2011年2月
    帖子
    138

    Default

    和仍在这里。您不能在这里再虽然尽管下午两个小时以上时你肯定 在这里。我要去做一些茶。我可以等

  3. #13
    高级会员
    注册日期
    2011年2月
    帖子
    138

    Default

    和恢复。任何新消息吗?

  4. #14
    米哈尔Podbielski(vBET员工)
    注册日期
    2009年10月
    帖子
    3,037

    Default

    Quote 作者: norku View Post
    一切都在 htaccess / 当安装 vbet 能正常工作。是的我第一次尝试我旧规则,但他们被忽视。我无法获取您的规则或者 /forum 在工作或 /。我只是无法离开的事情他们,看看 Google 网站管理员工具后 404 涌入 404,但我比较喜欢干净的重定向。

    想要看一看吗?我可以 PM 你的管理员/ftp 访问。
    请告诉我您的.htaccess vBET 删除之前。也请不要滥发 — — 它有没有意义。此外请注意,下午消息都是私人消息 — — 那些正在等待再评价如果不请求,如果我们的工作人员之一是缺席忙再也能等。直到要求发送访问数据请写上论坛因此我们所有的员工都可以帮助您。访问详细信息不需要在这里只是请发送您完整的.htaccess vBET 删除之前。

    PS。
    我现在在新的 BETA 版-更正拉杰克在这里并不能帮你,因为你将信息发送给我的由中国政法大学对不起你等了工作。

  5. #15
    高级会员
    注册日期
    2011年2月
    帖子
    138

    Default

    垃圾邮件? !你在论坛上之前、 期间和我送的点后的下午。我之后等待相当长一段时间的答案在线程上发送它。如果你不能被打扰拖动你自己走了几秒钟回答一个问题,然后你可以至少已确认下午收到的。你引起我遇到的问题。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=$[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/$[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[678no-gzip
            BrowserMatch 
    \bMSIE !no-gzip !gzip-only-text/html
        
    </ifmodule>
    </
    ifmodule>

    #Remove index.php from xxxx.com/index.php
    #rewrite engine on 
    RewriteCond %{THE_REQUESTindex\.php
    RewriteCond 
    %{QUERY_STRING} ^$
    RewriteRule ^index\.php$ / [L,R=301
    最后编辑者 norku; 07-10-1110:27.

  6. #16
    米哈尔Podbielski(vBET员工)
    注册日期
    2009年10月
    帖子
    3,037

    Default

    请注意重复的消息被认为是垃圾邮件 — — 我知道每一个论坛上。不想只是讨论有关垃圾邮件的定义请不要重复。我明白是否您的消息等了几天,因为我们会错过一些如何-将甚至感谢提醒,但 3 倍同一天...

    您的.htaccess 应如下所示:
    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=$[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/$[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[678no-gzip
            BrowserMatch bMSIE 
    !no-gzip !gzip-only-text/html
        
    </ifmodule>
    </
    ifmodule>

    #Remove index.php from xxxx.com/index.php
    #rewrite engine on 
    RewriteCond %{THE_REQUESTindex.php
    RewriteCond 
    %{QUERY_STRING} ^$
    RewriteRule ^index.php$ / [L,R=301
    也是我的道歉 — — 我忘了告诉你之前约 301 重定向。它现在被设置。请检查并告诉它是确定 (我不知道没有规则要求 / 论坛之前或也许完整的 URL,但这是论坛上检查)。如果不会使用数据你昨天发送,并将其设置上放置您的访问权限。

    PS。
    拉杰克现在测试脚本中删除 vBET BBCodes-不久也会上市。

  7. #17
    退休;)
    注册日期
    2011年8月
    帖子
    441

    Default

    嗨,
    请注意 !
    这是此脚本的 beta 版本 !

    1、 请创建文件并另存为 ""clearBB.php
    2.放入它下面的代码并将其保存
    3.将上传到您的服务器, 论坛根
    4. 您的数据库的备份
    5.请关闭您的论坛
    6.以管理员身份登录
    7.在您的浏览器,放到目标 url 你 ""clearBB.php
    8.按"清除"按钮

    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)) === ){
            
    $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,请把切镶的代码的一部分:
    清除 url 和线程 //block 标题 <>-/ / 结束的清除 url 和线程标题块
    比你的浏览器键入目标,并按"清除"按钮
    最后编辑者 r.dziadusz; 18-10-1119:27. 原因: 更改代码

  8. #18
    高级会员
    注册日期
    2011年2月
    帖子
    138

    Default

    非常感谢。我会让你知道是否我遇到任何问题,但信息似乎不够明确。

  9. #19
    高级会员
    注册日期
    2011年2月
    帖子
    138

    Default

    .htaccess 无法正常工作。它不会重定向,并添加首页/public_html/用户等的 url。删除。

    为什么在 17 以上的职位有两个框?我猜框 1 是一个脚本,该框 2 是两个脚本。也没关系,先运行吗?
    最后编辑者 norku; 07-10-1118:32.

  10. #20
    退休;)
    注册日期
    2011年8月
    帖子
    441

    Default

    声是只有一个脚本的第一个
    第二个框是删除如果您 onlu 要清除从您的 url 设置高亮
    最后编辑者 r.dziadusz; 10-10-1109:06. 原因: 更改代码

26 First第一 1234 ... 最后Last

此主题的标签

发帖权限

  • 可能不会 发表新主题
  • 可能不会 发表回复
  • 可能不会 上传附件
  • 可能不会 编辑您的文章
  •