內容簡介
總結:Report Post 是一個高度可自定義的外掛,讓訪問者舉報帖子或頁面中的不適當內容。所有這些舉報都會顯示在管理員部分的表格中,讓您可以決定接下來該做什麼:編輯內容、取消發布帖子/頁面,或者刪除這些舉報。該外掛設計為在自動和手動模式下運作。在自動模式下,舉報的連結將被添加到帖子的元框中。在手動模式下,您可以將連結、按鈕或圖像放置在模板中的任何位置。
問題與答案:
- 這個外掛提供了哪些特點?
- 方便使用,只需啟用外掛即可自動運作
- 通過選項和CSS高度可自定義
- 基於AJAX技術,不會發生頁面重新加載
- 可在自動和手動模式下使用(用於模板中)
- 適用於帖子、頁面和自定義帖子類型
- 支持AJAX加載的帖子,無限滾動的帖子等等
- 不使用額外的數據庫/表格。所有舉報都存儲在帖子的元數據中
- 使用模式窗口而不是可展開的表單(與AJAX加載的帖子一起運作!)
- 批量取消發布、發布、刪除帖子、刪除舉報
- 管理員關於舉報帖子的通知
- 選擇性垃圾郵件過濾器以保護免受垃圾郵件的影響
- 這個外掛如何使用?
- 外掛處理了4個類名。兩個預定義的(.zeno-report-post-link用於帶有驚嘆號圖標的簡單鏈接,而.zeno-report-post-button用於按鈕)
- 為了正確運作,舉報鏈接必須放置在一個article標籤內。article標籤必須帶有id=”post-XXXX”,其中XXXX是當前帖子的ID。如果您的主題不使用article標籤,您可以將post-id=”XXXX”屬性添加到舉報鏈接中,例如:
```
<div class="zeno-report-post-link">
<a href="#" name="zeno-report-post-link" class="zeno-report-post-link zeno-report-post-link-frontend" data-zeno_report_post-post-id="<?php echo (int) $post->ID; ?>" data-zeno_report_post-post-title="<?php echo esc_attr($post->post_title); ?>">
舉報這篇帖子
</a>
</div>
```
外掛標籤
開發者團隊
原文外掛簡介
Report Post is a highly customizable plugin that lets your visitors report posts or pages with inappropriate content. All these reports are displayed as a table in your Administrator section so you can decide what to do next: edit contents, unpublish posts/pages, or just delete these reports. The plugin was designed to work in both automatic and manual modes. In automatic mode, the link to report will be added to post’s meta box. In manual mode, you can place the link, button or image anywhere you want in templates.
Features:
Easy to use – you can simply activate the plugin and it will do the thing
Highly customizable via Options and CSS
AJAX based – no page reload will occur
Can be used in Automatic and Manual modes (to use in templates)
Works for Posts, Pages and Custom Post Types
Supports AJAXly loaded posts, ‘infinite scroll’ posts, etc.
Does not use additional databases / tables. All reports are stored in postmeta.
Modal window instead of expandable form (works with AJAXly loaded posts!)
Bulk Unpublish, Publish, Delete Posts, Delete Reports
Admin notification about reported posts
Optional spamfilter to protect from spam
Usage
Plugin handles 4 class names. Two pre-defined (.zeno-report-post-link for a simple link with exclamation mark icon and .zeno-report-post-button for button)
To work correctly, report link must be placed inside of an
<
article> tag. Article tag must have id=”post-XXXX”, where XXXX is the id of current post. If your theme does not use
<
article> tags, you can add post-id=”XXXX” attribute to report link, e.g.
';
