[WordPress] 外掛分享: Odyno GoogleGroups

首頁外掛目錄 › Odyno GoogleGroups
WordPress 外掛 Odyno GoogleGroups 的封面圖片
80+
安裝啟用
★★★★★
5/5 分(4 則評價)
3362 天前
最後更新
問題解決
WordPress 3.4.2+ v0.0.10 上架:2012-10-22

內容簡介

這個OdynoGoogleGroups 外掛能夠在 WordPress 上內嵌 Google Groups!你可以在你的文章或 WordPress 頁面上看到所有的討論。你所需要做的就是在頁面編輯器中添加簡碼!

範例

功能

擴充 API
在 WordPress 頁面或文章上內嵌「自訂網域」的 Google Groups
在 WordPress 頁面或文章上內嵌公開的 Google Groups 討論區
小工具會顯示最近的訊息。

簡單易用

要在頁面或文章上加入 gGroups,只需要在簡碼中更換「name-of-group」為你的群組名稱 [google-groups name=”my-group-name”]
要在側邊欄加入小工具,就到外觀-[小工具],再加入「Google Groups Widget」。

可擴充 

你可以在你的外掛程式或「頁面模板」中使用它 (請參閱 Page Templates « WordPress Codex)。使用函數 do_odyno_google_groups(...) 或四個自訂動作!(參閱一個例子,請到外掛首頁 或插件管理區)

如何使用?

非常簡單!只需要三個步驟就能夠在你的頁面上加入群組討論區!

新增頁面
在文章編輯器中加入這個程式碼 [google_groups name=”name-of-groups”],只需更換「name-of-group」為你的群組名稱
完成!現在可以預覽了!

設定

如果你想要控制畫面,可以在簡碼中加入以下屬性。

id:唯一的群組識別碼(預設是隨機數字)
name:群組名稱(預設是隨機數字)
width:頁面寬度(預設為 100%)
height:頁面高度(預設為 800px)
domain:群組的網域名稱(預設是無)
showsearch:是否在討論區的頁面中顯示搜尋框(預設為false)
hideforumtitle:如果你不想顯示當前討論區的標題或說明文字,可以設成 false。(預設值為 true)
hidesubject:如果你不想在討論區頁面中顯示最後一則貼文的主題,可以將其設為false。(預設值為true)
showtabs:是否在頁面顯示切換頁面的標籤(例如切換到會員頁面)(預設為false)

對於設計師

如果你想要自訂風格,可以添加 css 和使用鉤子!

對於開發人員

你可以在你的外掛程式中使用 Odyno Google Groups!否則你可以在你目前使用的主題中使用它。根據 Codex,您可以使用「子主題」修改目前的主題。
使用新的「頁面模板」,或直接修改主題的 php 檔案。在這種情況下,你可以添加呼叫函數 do_odyno_google_groups(),你將擁有與簡碼相同的功能。
另外,您還可以在您的外掛程式或 function.php 中添加一個鉤子到其中的四個行動中,並運行自訂程式碼。允許的動作顯示在下面,所有動作具有 do_odyno_google_groups() 函式的相同參數:

pre_ogg_show 動作。在調用 do_odyno_google_groups() 函數之前呼叫。
post_ogg_show 動作。在調用 do_odyno_google_groups() 函數之後呼叫。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.0.10) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Odyno GoogleGroups」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The OdynoGoogleGroups embed the Google Groups on WordPress! You can see all discussion on your article or WordPress page. All you must do is to add a shortcode on your page editor!
Demo
features

API for the extensions
Embed your “custom domain” Google Group on WordPress page/post
Embed public Google Group forum on WordPress page/post
Widget with last messages of group.

It’s easy

To add gGroups on page/post add this shortcode,just swap “name-of-group” with your group name [google-groups name=”my-group-name”]
To add widgets into sidebar Go to Appearance -> Widgets -> Google Groups Widget

It’s opened to extensions
You can use it on your plugin or into “Page Template” (see Page Templates « WordPress Codex ) with the function do_odyno_google_groups(…) or with 4 custom actions!! (see one example on plugin Home Site or on plugin admin section)
How to use it?
It’s very easy! You can add the group forum on your page in only three steps!

Add page
Set follow code on post editor [google_groups name=”name-of-groups”] just swap “name-of-group” with your group name
And now.. that’s all… go to the preview!

Configure it
If you want to control the view, you can add these attributes on shortcode

id: unique id of groups (default is random number)
name: name of groups (default is random number)
width: the width of page (default is 100%)
height: the height of page (default is 800px)
domain: the name of domain of groups (default none)
showsearch: whether to show an embedded search box on destination forum pages. (default is false)
hideforumtitle: if you want to show the forum title and description, false if you don’t want to show the title or description (default is true)
hidesubject: if you want to hide the subject of the last post in My Forums view, false if you want to leave the subject visible (default is true)
showtabs: whether to show tabs for changing views (e.g., to the Members view), on destination forum pages (default is false)

For designers
If you want customize the style of view, you can add css and use the hook!!
For developer
You can use the Odyno Google Groups on your plugin! Otherwise you can use it on your current theme. In according to Codex, you can modify the current theme with “Child Themes « WordPress Codex”,
with a new “Page Templates « WordPress Codex” or simply modify directly the php file of theme. In any of this case you can add a invocation of function do_odyno_google_groups() and you will have same action of shortcode.
Also the parameters of function are the same of shortcode.
Otherwise on your plugin or on your function.php you can add one hook to one of 4 action and you can run your custom code.
The allowed action are show below and all action have the same parameter of do_odyno_google_groups() function:

pre_ogg_show action. It’s called before do_odyno_google_groups() function
post_ogg_show action. It’s called after do_odyno_google_groups() function
pre_ogg_shortcode action. It’s called before invocation of all shortcode [google_groups]
post_ogg_shortcode action. It’s called after invocation of all shortcode [google_groups]

Credits
Copyright 2012 Alessandro Staniscia (email : [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

延伸相關外掛

文章
Filter
Mastodon