Delete duplicate comments or pings of movabletype

From LemonWiki共筆
Jump to: navigation, search

<< AntiSpam

MovableType 一次快速刪除多筆迴響(comments)或通告(ping)

適用版本: MT2.64~MT2.661

/tmpl/cms/menu.tmpl

Memo Leaves: 編集メニュー画面からコメントスパムを一括削除下載menu.tmpl(原網頁失連, 另一下載點),覆蓋原先的menu.tmpl(記得先備份),覆蓋後,就可以一次勾選多筆迴響或通告進行刪除。

/lib/MT/App/CMS.pm
  • Line 235的limit => 5 是指管理介面顯示最近的5筆文章 (此處沒有更改)
   my $iter = MT::Entry->load_iter({ blog_id => $blog_id },
       { 'sort' => 'created_on',
         direction => 'descend',
         limit => 5 });
  • Line 254的limit => 5 是指管理介面顯示最近的5筆迴響,我改成15筆
   $iter = MT::Comment->load_iter({ blog_id => $blog_id },
       { 'sort' => 'created_on',
         direction => 'descend',
         limit => 15 });
  • Line 276的limit => 5 是指管理介面顯示最近的5筆通告,我改成15筆
   $iter = MT::TBPing->load_iter({ blog_id => $blog_id },
       { 'sort' => 'created_on',
         direction => 'descend',
         limit => 15 });


使用介面的英文文字和翻譯文字的修改

  • 英文介面文字 /tmpl/cms/menu.tmpl

尋找Five Most Recent Comments,改成Fifteen Most Recent Comments

 <td valign="top" colspan="3"><font class="pagetitle"><MT_TRANS phrase="Five Most Recent Comments"></font></td>
 改成
 <td valign="top" colspan="3"><font class="pagetitle"><MT_TRANS phrase="Fifteen Most Recent Comments"></font></td>

尋找Five Most Recent Pings,改成Fifteen Most Recent Pings

<td valign="top" colspan="3"><font class="pagetitle"><MT_TRANS phrase="Fifteen Most Recent Pings"></font></td>
  • 繁體中文翻譯檔 /lib/MT/L10N/zh_tw.pm
'Five Most Recent Comments' => '最新五則迴響',
改成
'Fifteen Most Recent Comments' => '最新十五則迴響',
'Five Most Recent Pings' => '最新五個通告',
改成
'Fifteen Most Recent Pings' => '最新十五則通告',
  • 簡體中文翻譯檔 /lib/MT/L10N/zh_cn.pm
 'Five Most Recent Comments' => '最新五则回响',
 改成
 'Fifteen Most Recent Comments' => '最新十五则回响',
 'Five Most Recent Pings' => '最新五个通告',
 改成
 'Fifteen Most Recent Pings' => '最新十五则通告',