前言介紹
- 這款 WordPress 外掛「FeedWordPress Duplicate Post Filter」是 2008-04-12 上架。
- 目前有 200 個安裝啟用數。
- 上一次更新是 2012-03-02,距離現在已有 4811 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 2.8 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
mrallen1 |
外掛標籤
feedwordpress | duplicate posts |
內容簡介
這是 FeedWordPress 外掛的篩選器。如果您不使用 FeedWordPress,這個外掛對您來說將沒有用處。
我寫這個篩選器是因為在我的資料庫中看到同一篇文章出現了 32 次。也許您遇到同樣的問題,我希望這個篩選器能幫助您解決它。
這個篩選器透過連接 FeedWordPress 的「syndicated_post」和 WordPress 核心的「save_post」動作來運作。
對於從源頭傳輸的每一篇潛在的文章,這個外掛會嘗試去找到一個相同的 SHA1 雜湊值,這個雜湊值是文章內容中的前 1024 個非空格字元(去除 HTML 標籤)。
如果它找到了匹配的結果,這個文章就會被跳過。如果沒有,將處理這個文章,並在文章的 metadata 中插入一個雜湊值(以 _dpf 為鍵名)。
注意:沒有篩選器能夠達到 100% 的準確度。此篩選器可以阻止大部分或部分的重複,但很可能不會阻止全部的重複。
如果您想要防止所有重複,這不是您的解決方案。在我的測試安裝中,我總共有 125 篇傳播文章,其中有 5 篇是重複的(4% 的假陰性),其中大部分的假陰性是由於文章內容中稍微不同的 HTML 標記造成的。所以我的方法不是完美的,但對我來說足夠好了。
重要提示
這個篩選器只能檢查未來的傳播文章。任何已經存在於 WordPress 安裝中的重複內容,您需要自己刪除或清理。
許可證
版權所有 (C) 2012 Mark R. Allen
保留所有權利。
允許在源代碼和二進制形式中進行重新分發和使用,無論是否進行修改,前提是滿足以下條件:
重新分發源代碼必須保留上述版權聲明、條件列表和以下聲明。
在二進制形式中進行重新分發必須在文檔和/或其他提供的材料中重現上述版權聲明、條件列表和以下聲明。
未經特定書面許可,不得使用 Mark Allen 或任何貢獻者的名稱來代言或推廣從本軟體派生的產品。
原文外掛簡介
This is a filter for the FeedWordPress plugin. If you don’t use FeedWordPress this plugin will not be useful to you.
I wrote this filter after seeing the same post in my database 32 times. Maybe you’ve had the same problem, and I hope this filter helps you solve it.
The filter works by hooking the “syndicated_post” action of FeedWordPress and the “save_post” action in the core of WordPress.
For each potential post from a feed, the plugin attempts to find an identical SHA1 hash of the first 1024 non-whitespace characters (stripped of HTML tags) of the post content.
If it finds a match the post is skipped. If not, the post is processed and a hash is inserted into the post’s metadata. (Stored as key _dpf.)
NOTE: No filter is going to be 100% accurate. This filter will stop most or some duplicates, but in all likelihood, will not stop all of them.
If you want a filter that stops all duplicates, this isn’t your solution. In my test installation I had 5 posted duplicates out of
125 syndicated posts (4% false negative) out of a corpus of about 300 duplicates. Most of those false negatives were due to slightly different HTML markup
in the post content itself. So my approach isn’t perfect, but it is “good enough” for me.
Important Note
This filter can only check future syndication posts. Whatever duplicates are already present in your WordPress installation you’ll have to remove/clean-up on your own.
License
Copyright (C) 2012 by Mark R. Allen
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Mark Allen nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「FeedWordPress Duplicate Post Filter」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.5 | trunk |
延伸相關外掛(你可能也想知道)
Ada FeedWordPress Keyword Filters 》這是一個 FeedWordPress 的外掛程式。, 使用者可以透過 AND、OR、NOT 邏輯進行複雜的關鍵字篩選。這個外掛程式會搜尋文章標題與內容中使用者輸入的關鍵字。, ...。
Social View 》這是一個簡單的外掛,能夠優雅的格式化從社交媒體網站(如YouTube和Flickr)導入到您的博客中的內容。該外掛具有以下功能:, , 無需用戶交互或更改管理面板設...。
FeedWordPress Link Soruce 》自動添加 WordPress 來源 RSS Feed。, 文件。
Mediacore Ingest (FeedWordPress AddOn) 》這個外掛是 FeedWordPress 的附加元件,用於增強從 Mediacore 網站下載內容的同步處理。該插件修改了進入的同步內容,讓每個 Mediacore 訂閱項目中關聯的視頻...。
Feed GeoMashup 》FeedGeoMashup 可讓 FeedWordPress 傳遞 GeoRSS 資料給 GeoMashup。從 v2.0 版本開始,您可以在 FeedWordPress 管理介面中找到外掛選項設定。特別地,您可以...。
Ada Fwp Link Decoder For Google News 》總結:, 這是一個針對FeedWordPress的外掛。, 值得注意的是,這個外掛僅供教育目的使用。, 這個名為「Ada Fwp Link Decoder For Google News」的外掛旨在增強...。