[WordPress] 外掛分享: Reddit Widget

首頁外掛目錄 › Reddit Widget
10+
安裝啟用
尚無評分
6281 天前
最後更新
問題解決
WordPress 2.0.2+ v1.2 上架:2008-03-20

內容簡介

需求

WordPress 2.2 或 2.0.x/2.1.x 搭配 WordPress Widgets
PHP 4.3.0 或更高(需要 function file_get_contents)

功能

顯示您最近喜歡的項目(在 reddit.com 上)
完全自定義顯示
針對高流量網站的緩存處理

格式

需要三個部分來格式化輸出。

第一部分稱為「items start」,在管理面板中是小工具標題後的第一部分。對於默認格式,這僅僅是 <ul>。

第二部分稱為「items end」,在管理面板中是小工具的結尾部分。默認情況下為:
</ul>
<a href=”%profile%” style=”float:right;”>%username%</a>

第三部分是每個項目所需的內容。默認情況下,這是:
<li style=”list-style-type: none;”><a href=”%link%”>%title%</a> (<a href=”%more%”>more</a>)</li>

調用每個值的假設是:

start
item
item

item
end

項目的格式如下:

%title% - 項目的標題
%link% - 項目的連結
%desc% - 項目的描述 - 只有 [link] [more] 連結
%date% - 項目提交的日期 (ISO)
%more% - 更多連結 - 指向該項目的評論
%number% - 目前項目的編號

開頭和結尾的格式如下:

%username% - 您的使用者名稱
%profile% - 您的個人檔案連結
%rss% - 您的個人檔案 RSS 訂閱連結
%count% - 顯示的項目數量

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Reddit Widget」→ 直接安裝(推薦)

原文外掛簡介

Requirements

WordPress 2.2 or 2.0.x/2.1.x with WordPress Widgets
PHP 4.3.0 or greater (needed for function file_get_contents)

Features

Displays your latest liked items (on reddit.com)
Completely customizable display
Caching for large traffic sites

Formatting
There are 3 parts needed to format the output.
The first part, called items start in the admin panel, is the first part of the widget after the title. For the default formatting, this is just

    .
    The second part, called items end, is the ending of the widget. By default, this is:

%username%
The third part is what is called for each item. By default, this is:

  • %title% (more)
  • The premise of calling each value is this:

    start
    item
    item

    item
    end

    The formatting for items is:

    %title% – Title of the item
    %link% – Link to the item
    %desc% – Description of the item – Just [link] [more] links
    %date% – Date the item was submitted (ISO)
    %more% – More link – The link to the comments
    %number% – The number of the current item

    The formatting for start and end is:

    %username% – Your username
    %profile% – Link to your profile
    %rss% – Link to your profile’s RSS feed
    %count% – Number of items shown

    延伸相關外掛

    文章
    Filter
    Mastodon