[WordPress] 外掛分享: WP-FetLife

前言介紹

  • 這款 WordPress 外掛「WP-FetLife」是 2015-01-07 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2015-01-10,距離現在已有 3767 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.5 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

meitar |

外掛標籤

FetLife | widgets |

內容簡介

ures you'd like to see added to WP-FetLife? Feel free to ask for help or make a suggestion! Help translating WP-FetLife into your language is always welcome, as is testing and providing bug reports. Visit the plugin website for even more FetLife-related WordPress add-ons.

WP-FetLife是一個輕量級的WordPress外掛程式,讓用戶可以在網誌或頁面中使用小工具和短代碼輕鬆地顯示FetLife活動、小組或其他內容。只需要像往常一樣從外掛程式設定頁面登錄FetLife,內置的外掛程式緩存自動加速對FetLife.com的請求。

小工具和短代碼

這個單一的外掛程式可以為您的WordPress網誌提供各種不同的附加組件。

小工具

WP-FetLife提供了許多小工具,適用於任何主題。在“屏幕截圖”中查看其中一些範例的截圖。這個外掛程式提供的一些小工具包括:

FetLife檔案——活動

這個小工具顯示任何即將在FetLife檔案頁面上舉行的FetLife活動的名稱和鏈接。從“組織”、“參加”或“或參加”給定用戶檔案的活動中進行選擇,選擇要在小工具中顯示的事件數量等等。

FetLife檔案——小組

此小工具顯示用戶所屬的任何FetLife小組的名稱和鏈接。同樣,您可以根據自己的喜好定制小工具,僅顯示用戶“領導”的小組,選擇要在小工具中顯示的小組數量等等。

FetLife活動——參與者

此小工具顯示FetLife活動的RSVP列表。選擇顯示“參加”或“或參加”的RSVP,或兩者!

此外,此外掛程式提供的每個小工具也可用作短代碼。使用[wp_fetlife_widget WIDGET_NAME]短代碼來調用特定的小工具。您甚至可以直接從短代碼設置其選項。例如,此短代碼顯示FetLife用戶編號1“組織”的活動:

[wp_fetlife_widget profile_events fl_id="1" show_events_organizing]

(對於給定檔案的FetLife用戶編號是該用戶配置文件頁面的網址末尾的號碼。例如,https://fetlife.com/users/1是用戶1的配置文件頁面。)

要顯示FetLife用戶1正在參與的所有即將發生的活動,請使用:

[wp_fetlife_widget profile_events fl_id="1" show_events_organizing show_events_going show_events_maybe_going]

同樣,以下短代碼顯示所有用戶1的小組:

[wp_fetlife_widget profile_groups fl_id="1"]

或只顯示此用戶是領導的小組:

[wp_fetlife_widget profile_groups fl_id="1" show_only_groups_lead]

有些小工具(如這些範例)需要fl_id參數。其他參數是可選的,可以作為附加屬性值包含或可選地使用默認值。例如,要向任何上述小工具的輸出添加標題,請使用title屬性:

[wp_fetlife_widget profile_groups title="加入我的FetLife小組之一!" show_only_groups_lead]

有關功能添加、短代碼語法等的完整參考,請參見其他注意事項。

相關工具

如果您想將FetLife內容(撰寫等)匯出並將其作為本機WordPress內容(網誌文章等)匯入您的網站,請使用此外掛程式的姊妹外掛程式WP FetLife Importer。

如果您有自己的想法、小工具或其他功能,希望看到它們添加到WP-FetLife中,請隨時尋求幫助或提出建議!歡迎幫忙將WP-FetLife翻譯成您的語言,同樣歡迎測試和提供錯誤報告。訪問外掛程式網站以了解更多有關FetLife的WordPress附加功能。

原文外掛簡介

Easily display FetLife events, groups, and more on your blog by adding widgets to your theme and using shortcodes in your posts, or pages. This plugin is very lightweight. Just log in to FetLife as you normally do from the plugin settings screen. Once that’s done, a built-in plugin cache automatically speeds up all future requests to FetLife.com.
Widgets and shortcodes
This single plugin provides a bunch of different add-ons for your WordPress blog.
Widgets
WP-FetLife adds numerous widgets that work well with any theme. See the Screenshots section for screenshots of some of these examples. Some of the Widgets this plugin provides are:

FetLife Profile – Events

This widget shows the name of and links to any upcoming FetLife events on a FetLife profile page. Choose from events that the given user profile is “organizing,” “going to” or “maybe going to,” along with how many events to show, and more.

FetLife Profile – Groups

This widget shows the name of and links to any FetLife groups a user belongs. Similarly, you can customize the widget to show only those groups the FetLife user is “leading,” how many groups to show in the widget, and more.

FetLife Events – Participants

This widget displays the RSVP list for a FetLife event. Choose to show “going” or “maybe going” RSVPs, or both!

Every widget provided by this plugin is also available as a shortcode. Use the [wp_fetlife_widget WIDGET_NAME] shortcode to call a particular widget. You can even set its options right from the shortcode. For example, this shortcode displays the events that FetLife user number 1 is organizing:
[wp_fetlife_widget profile_events fl_id="1" show_events_organizing]

(The FetLife user number for a given profile is the number at the end of the web address for that user’s profile page. So, for instance, https://fetlife.com/users/1 is the profile page for user number 1.)
To display all upcoming events that FetLife user 1 is participating in, use:
[wp_fetlife_widget profile_events fl_id="1" show_events_organizing show_events_going show_events_maybe_going]

Similarly, the following shortcode shows all of user 1‘s groups:
[wp_fetlife_widget profile_groups fl_id="1"]

Or, show only the groups for which this user is the leader:
[wp_fetlife_widget profile_groups fl_id="1" show_only_groups_lead]

Some widgets (like these examples) require the fl_id parameter. Other parameters are optional and can be included as additional attribute values or omited to use the defaults. For example, to add a headline to the output of any of the above widgets, use the title attribute:
[wp_fetlife_widget profile_groups title="Join one of my FetLife groups!" show_only_groups_lead]

For a complete reference of feature additions, shortcode syntax, and so on, see Other notes.
Related tools
To export your FetLife content (Writings, etc.) and import them to your website as native WordPress content (blog Posts, etc.), use this plugin’s sister plugin, WP FetLife Importer.
Have your own ideas widgets or other features? Share it with the developer and other users in the support forum. 🙂
If you like this plugin, please consider making a donation for your use of the plugin, purchasing one of Meitar’s web development books or, better yet, contributing directly to Meitar’s Cyberbusking fund. (Publishing royalties ain’t exactly the lucrative income it used to be, y’know?) Your support is appreciated!
Widgets
The widgets this plugin provides are:
Profile widgets
The following widgets display information from a given user’s FetLife profile page.

FetLife Profile – Events – Displays upcoming FetLife events shown on a FetLife profile page in a list. As a shortcode:

[wp_fetlife_widget profile_events fl_id=""]
show_events_organizing – Whether to include events the user is organizing in the output. (Default: false.)
show_events_going – Whether to include events the user RSVP’ed “I’m going” in the output. (Default: false.)
show_events_maybe_going – Whether to include events the user RSVP’ed “I’m maybe going” in the output. (Default: false.)

FetLife Profile – Groups – Displays the FetLife groups a user belongs to in a list. As a shortcode:

[wp_fetlife_widget profile_groups fl_id=""]
show_only_groups_lead – Restrict the output to only those groups being lead by the given user.

Event widgets

FetLife Event – Participants – Displays the RSVPs for a FetLife event in a list.

[wp_fetlife_widget event_participants fl_id=""]
show_organizer – Whether to include the event’s organizer in the output.
show_going – Whether to include the users who have RSVP’ed “going” in the output.
show_maybe_going – Whether to include the users who have RSVP’ed “maybe_going” in the output.

Each widget can accept the following additional optional parameters:

clear_cache – Disables the built-in plugin cache for this shortcode. Using this attribute is not recommended, except for debugging purposes, as it will significantly slow down your website. (Default: false.)
length – How many items to output. For example, to list the first ten groups for user 1, use: [wp_fetlife_widget profile_groups fl_id="1" length="10"]. (Default: 5.)
title – A headline to include before other output. (Default: none.)

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP-FetLife」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1 | 0.1.1 | trunk |

延伸相關外掛(你可能也想知道)

  • WP FetLife Importer 》WP FetLife Importer 是一個 WordPress 外掛,提供了一種將您的 FetLife 文章和圖片導入 WordPress 博客的簡單方法。如果您正在使用 WordPress.com 博客或想...。

文章
Filter
Apply Filters
Mastodon