內容簡介
此外掛可隱藏頁面(或文章)內特定的部分,讓使用者能夠在其用戶等級高於特定用戶等級時顯示。
因此,如果內容為用戶等級 X 可見:
1. 如果 X >0,未註冊的用戶將無法存取該特定內容。
2. 他們的用戶等級低於 X 的用戶將無法存取該特定內容。
3. 他們的用戶等級等於或高於 X 的用戶將能夠存取特定內容。
若要隱藏特定內容,請使用以下語法封裝隱藏的內容:
[hide {level}] {content} [hide {level}]
其中 {level} 為對應用戶等級的數字,而 {content} 則為您要隱藏的部分。
例如:
[hide 0] 您將始終看到此內容 [hide 0]
[hide 1] 如果您未登錄為訂閱者,您將看不到此內容 [hide 1]
[hide 2] 如果您未登錄為投稿人,您將看不到此內容 [hide 2]
[hide 3] 如果您未登錄為作者,您將看不到此內容 [hide 3]
[hide 4] 如果您未登錄為編輯,您將看不到此內容 [hide 4]
[hide 5] 如果您未登錄為管理員,您將看不到此內容 [hide 5]
組合式範例:
[hide 1] 如果您作為訂閱者 [hide 5] 登錄,您將能夠看到此內容,但是如果您未登錄為管理者 [hide 5],您將看不到此內容 [hide 1]
欲獲得進一步協助,請造訪 http://www.nicholascaporusso.com/showcontent-by-userlevel/
外掛標籤
開發者團隊
原文外掛簡介
This plug-in hides a specific part of the content of a page (or post) to all users whose user level is below a required user level.
Therefore, if a content is visible to user level X:
1. if X > 0 users who are not registered will not be able to access that specific content;
2. users whose user level is less than X will not be able to access that specific content;
3. users whose user level is equal or greater than X will be able to access that specific content.
To hide a specific content, use the following syntax to encapsulate the hidden content:
[hide {level}] {content} [hide {level}]
where {level} is the NUMBER corresponding to the user level, and {content} is the part of you want to hide.
Example:
[hide 0] You will always see this content [hide 0]
[hide 1] You will not see this if you are not logged as subscriber [hide 1]
[hide 2] You will not see this if you are not logged as contributor [hide 2]
[hide 3] You will not see this if you are not logged as author [hide 3]
[hide 4] You will not see this if you are not logged as editor [hide 4]
[hide 5] You will not see this if you are not logged as administrator [hide 5]
Fancy example:
[hide 1] You will see this if you are logged as subscriber [hide 5], but you will not see this if you are not logged as administrator [hide 5][hide 1]
For further help, please visit http://www.nicholascaporusso.com/showcontent-by-userlevel/
