发新话题
打印

如何去掉分类标记

如何去掉分类标记

论坛后台有“清理移动标记"

最近为了美观,批量的进行了分类
结果很多文章的头部都有了分类标记

请问如何去掉

    有类似”清理移动标记”的“清理分类标记”吗?
http://www.idsky.cn追随FD,简洁快速~

TOP

复制内容到剪贴板
代码:
} elseif(submitcheck('movedthreadsubmit', 1)) {

        if(!$current) {
                $current = 0;
        }
        $pertask = intval($pertask);
        $current = intval($current);
        $next = $current + $pertask;
        $nextlink = "admincp.php?action=counter&current=$next&pertask=$pertask&movedthreadsubmit=yes";
        $processed = 0;

        $tids = 0;
        $query = $db->query("SELECT t1.tid, t2.tid AS threadexists FROM {$tablepre}threads t1
                LEFT JOIN {$tablepre}threads t2 ON t2.tid=t1.closed AND t2.displayorder>='0'
                WHERE t1.closed>'1' LIMIT $current, $pertask");

        while($thread = $db->fetch_array($query)) {
                $processed = 1;
                if($thread['threadexists']) {
                        $tids .= ','.$thread['tid'];
                }
        }

        if($tids) {
                $db->query("DELETE FROM {$tablepre}threads WHERE tid IN ($tids)", 'UNBUFFERED');
        }

        if($processed) {
                cpmsg("$lang[counter_moved_thread]: $lang[counter_processing]", $nextlink);
        } else {
                cpmsg('counter_moved_thread_succeed');
        }
我也只会找出这些了

TOP

谢谢
谁这样操作过???
http://www.idsky.cn追随FD,简洁快速~

TOP

发新话题