[WordPress] 外掛分享: Profile CCT

首頁外掛目錄 › Profile CCT
10+
安裝啟用
★★☆☆☆
2.6/5 分(5 則評價)
4020 天前
最後更新
問題解決
WordPress 3.6+ v1.3.2 上架:2012-03-08

內容簡介

這個外掛允許管理者進行使用者公開檔案的管理,並提供大量自定義選項。

在儀表板的「檔案」→ 「設定」下,管理者可以:

透過簡單易懂的拖曳介面,建立使用者填寫的表格,選擇要包含哪些欄位和如何排列它們。
新增分類來分組和篩選檔案
設計顯示使用者資訊的頁面
為列出多個使用者時的分頁設計單獨的列表檢視
建立可以加入檔案表格和頁面的其他欄位。
管理、建立和刪除使用者檔案

使用者可以在「使用者」→ 「公開檔案」下編輯自己的檔案,並填寫你建立的表格。

所有內容都可以使用CSS樣式進行設計

儀表板圖示來自 http://p.yusukekamiyamane.com/ ,社交媒體圖示來自 http://paulrobertlloyd.com/2009/06/social_media_icons/

使用方式

此外掛會建立個別檔案和人員列表的頁面。

使用者填寫的檔案表格可以在「檔案」→ 「設定」中進行完全自定義,檔案在網站上的顯示方式也可以進行自訂。

其他有關自訂的訊息可在 http://wiki.ubc.ca/Documentation:UBC_Content_Management_System/Managing_People_Profiles_and_Directories 上找到。

封存頁面

預設情況下,您可以在 example.com /您網站路徑 /person 下看到您站台上的檔案列表。
若要在封存頁面中顯示篩選/搜尋控制,您有三種選擇:

1.修改您的 taxonomy.php 模板和您的佈景主題資料夾中的 archive.php(或 archive-profile_cct.php),並在您希望出現控制的位置上包含以下行:<?php do_action("profile_cct_display_archive_controls"); ?>。這個外掛可以正常運作,但使用者無法輕鬆搜尋/篩選/瀏覽檔案。(在「設定」頁面上,也可以自定義控制選項)
2.使用「檔案導覽」小工具,這將包含您在設定頁面上指定的欄位。
3.使用 [profilenavigation] 簡短代碼。(有關此文件中簡短簡碼的更多信息,請參閱簡短簡碼部分。)

注意:請確保您在「檔案」→ 「設定」頁面中在「設定」選項卡下啟用至少一個導覽元素。注意:您可以在此外掛目錄中的「範例」文件夾中找到您可以對佈景主題所進行的修改範例。

此外,您可能想要自訂 profile_cct 所使用的搜尋結果頁面,並在循環中僅顯示_excerpt()(_excerpt()會基於在檔案設定頁面上設置的列表檢視輸出列表檢視)
參閱範例資料夾,以查看這些佈景主題修改的範例。

每個網站都可以使用 [profilelist] 和 [profile] 簡短代碼,在任何位置顯示檔案。

簡短碼

[profilelist] 簡短碼 –

[profilelist] 默認以列表檢視格式顯示所有檔案

按分類篩選:[profilelist {taxonomyname} = "{taxonomyvalue}"]顯示符合指定條件的檔案

您可以指定多個要篩選的分類,默認情況下,僅顯示符合所有條件的檔案,或者您也可以將 query=”or” 添加到簡短碼中,以顯示符合至少一個條件的檔案。

按字母篩選:
[profilelist letter=”a”] 返回姓氏以字母 ‘a’ 開頭的所有檔案。

排序結果:
[profilelist orderby = orderfield],其中 ‘orderfield’ 是 first_name、last_name 或 user_registered (用以指定註冊的使用者)。

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin allows for management of user public profiles with a lot of customizability.
In the dashboard under Profiles->Settings, administrators can:

Build a form for users to fill out, choosing which fields to include and how to arrange them, via a straightforward drag and drop interface.
Add taxonomies to group and filter profiles
Design a page to display user information
Design a separate list view when listing multiple users
Create additional fields that can be added to the profile form and page.
Manage, create and delete user profiles

Users can edit their profile under Users->Public Profile, where they’ll be presented with
the form you created.
Everything can be styled with CSS
Dashboard icon from http://p.yusukekamiyamane.com/
Social icons from http://paulrobertlloyd.com/2009/06/social_media_icons/
Usage
The plugin will generate pages for individual profiles as well as for lists of people.
The profile form your users will fill out can be fully customized in Profiles->Settings, as well as how profiles are displayed on your site.
Additional information on this customization is available at http://wiki.ubc.ca/Documentation:UBC_Content_Management_System/Managing_People_Profiles_and_Directories
Archive Pages
By default you can see a list of profiles on your site at example.com/your-site-path/person
To display filtering/searching controls on the archive page you have three options:
1. modify your taxonomy.php template and archive.php (or archive-profile_cct.php) in your theme folder and include the line where you want t
he controls to appear. The plugin will function fine without this but it won’t be as easy for your users to search/filter/browse profiles. (The controls can be customized as well on the Settings page)
2. Use the Profile Navigation widget. It’ll include the fields you specified in the settings page.
3. Use the [profilenavigation] shortcode (More info in the shortcode section of this document.)
Note: Make sure you enable at least one navigation element in the Profiles->Settings page under the Settings tabNote: You can find examples of modifications that you could make to your theme, in the ‘examples’ folder in this plugin’s directory.
In addition, you may want to customize the search results page for profile_cct posts and only display the_excerpt() in the loop (the_excerpt() will output the list view as set on the profile settings pa
ge)
See the examples folder for examples of these theme modifications
For other uses you can use the [profilelist] and [profile] shortcodes to display profiles anywhere on a site.
Shortcodes

[profilelist] shortcode –

[profilelist] by default shows all profiles in list view format
Filtering by taxonomy:[profilelist {taxonomyname} = "{taxonomyvalue}"] shows profiles that meet the specified criteria
You can specify multiple taxonomies to filter by, by default then only profiles that meet ALL the specified criteria will be displayed. Alternatively you can also add query=”or” to the shortcode to show
profiles meeting at least one of the criterias.
Filtering by letter:
[profilelist letter=”a”] returns all profiles where last name starts with letter ‘a’.
Ordering results:
[profilelist orderby = orderfield] where ‘orderfield’ is either first_name, last_name, or date. By default it will use the manual ordering specified on the Profiles->Order Profiles page
You can also show results in descending order, eg [profilelist orderby='first_name' order='desc']
Displaying more details:
use display=”full” to show full profiles, or display=”name” to only shows names. Default behaviour shows the list view as set in the settings.
Show a specific set of people:
[profilelist include=”id, id2, id3…”]
Displays the people with the corresponding id

[profile] shortcode –

With this shortcode you can display a single profile. (This can also be accomplished with the [profilelist] shortcode with the right parameters, but this is a more straightforward option)
Simply use [profile person="slug"] where slug is usually firstname-lastname.
By default the full view will be shown, but you can set display=”list” instead to show the list view.

[profilesearch] shortcode –

Display a search box (with jquery-ui Autocomplete) to search for profiles by name

[profilenavigation] shortcode –

Displays profile navigation. If no parameters are supplied it’ll rely on the options set in the settings page. If at least one parameter is supplied then the global settings will be ignored
display_searchbox=true to show the search box
display_alphabet=true to show the letter list
display_orderby=true to show the orderby field
display_tax=”comma separated list of taxonomies” to show dropdowns to filter by those taxonomies.
eg. [profilenavigation display_searchbox="true" display_tax="location, position"] will show a searchbox as well as two dropdown menus to filter by the two specified taxonomies

[profilefield] shortcode –
This shortcode can only be used on a profile page. It pulls specific fields from the profile and render it at the shortcode. The display will mirror the settings that you configure in the Profile View Builder. These are the available parameters for the profilefield shortcode

type, set the id of the field that you want to get. (eg. name, bio, email, clone_lab_phone, phone)

show, determines which parts of a field are displayed. This corresponds to the “show / hide input area” checkboxes when you edit a field in the Profile View Builder. So for example, for the “name” field type, the valid options are “salutations”, “middle”, and “credentials”. The show parameter should be set to a comma separated list of the sections that you want to display, and will override the settings that you configured on the Profile View Builder.
html, if you set html=”false” then all html tags will be stripped out of the field. Allowing you to just get the information.
width, the width of this field. Valid options are “full”, “one-third”, “two-third”, or “half”. Note that if html=false then this option will do nothing.

eg. [profilefield type=name show="salutations, middle", html=false] will show the profile’s salutations as well as first, last, and middle name. The text will not be wrapped in any html, and so will not
have the usual header tags.
Meta
Git Plugin Name: profile-cct
Wordpress SVN Plugin Name: profile-custom-content-type
Main plugin file: profile-custom-content-type.php

延伸相關外掛

文章
Filter
Apply Filters
Mastodon