[WordPress] 外掛分享: Better Admin Pointers

首頁外掛目錄 › Better Admin Pointers
WordPress 外掛 Better Admin Pointers 的封面圖片
10+
安裝啟用
★★★★
4.2/5 分(6 則評價)
3624 天前
最後更新
問題解決
WordPress 3.3+ v2.0.3 上架:2014-05-20

內容簡介

此外掛可讓您在 WordPress 網站管理區的任何螢幕、前端頁面或所有頁面上建立管理員指向 (admin pointers)。它會建立一個稱為 Pointers 的自訂文章類別以存儲資訊。要使其運作,您需要添加以下資訊:

Title – 藍色標題列中的部分
主內容區
Pointer ID – 獨一無二的 ID,以便於 WP DB 中被追蹤為已忽略
螢幕 (或頁面/文章 ID) – 它應該出現在哪一個頁面/螢幕上 (如果在管理區中),或者哪一個文章 ID (如果在前端顯示)。或者,您也可以使用 ALL_ADMIN 或 ALL_FRONT 的方式顯示在所有管理區或所有前端頁面上
目標 – 我們想要指向附加到屏幕或文章中的 CSS ID 或類別
位置邊緣 – 哪個邊緣應該靠近目標?(左、右、上或下)
位置對齊 – 指標應如何在此邊緣上對齊目標?(頂部、底部、左側、右側或中間)
(選用) 水平推移 – 我們應該向右或向左推多少?(以像素為值。例如:-50,與上面的邊緣值配合,僅在上面的邊緣是左或右時才有效)
(選用) 垂直推移 – 我們應該向上或向下推多少?(以像素為值。例如:-50,與上面的對齊值配合,僅在上面的對齊是頂部或底部時才有效)
(選用) Z-index – 指標的深度應是多少 (以防您希望其中一些指標比其他指標高/低或高/低於頁面上的其他元素)

範例:
假設我想在編輯外掛程式的頁面上添加一個指標,告知使用者注意他們正在編輯哪個外掛程式。我將使用以下設定:

“我正在編輯哪個外掛程式?”
“這是你正在編輯的檔案,昏倒!”
“ss_editplugs”
“plugin-editor”
“.fileedit-sub”
“top”
“right”
“-50”
“-5”
“50000”

注意:這只適用於已登錄的使用者,無論其是否為前端或後端的使用者。

注意:我還有一個可幫助標籤的外掛,如果您有興趣,可以在此處找到它:https://wordpress.org/plugins/better-admin-help-tabs/

此外掛利用了其他人在以下地方的出色工作:

針對自訂文章類型進行 metabox 配置:
https://github.com/WebDevStudios/CMB2

為了讓指標正確顯示的基礎類別和代碼:
https://gist.github.com/brasofilo/6947539

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.3) 或搜尋安裝

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

原文外掛簡介

This plugin will allow creation of admin pointers on any screen in the WordPress admin area, or any front end page, or on all pages. It creates a custom post type called Pointers to store information. You need to add the following info to make it work:

Title – the part in the blue title bar
Main content area
Pointer id – A unique id so that it can be tracked in the WP DB as dismissed
Screen (or Page/Post ID) – What page/screen it should appear on (if in admin) or what is the post ID (if showing on the front end). OR you have the ability to show on all admin or all front end pages (using ALL_ADMIN or ALL_FRONT)
Target – CSS id or class we want the pointer to attach to on the screen or post above
Position Edge – Which edge should be adjacent to the target? (left, right, top, or bottom)
Position Align – How should the pointer be aligned on this edge, relative to the target? (top, bottom, left, right, or middle)
(OPTIONAL) Nudge Horizontal – How much should we nudge the pointer horizontally? (Value in pixels. ex: -50, from edge value above, only works if edge above is left or right)
(OPTIONAL) Nudge Vertical – How much should we nudge the pointer vertically? (Value in pixels. ex: -50, from align value above, only works if align above is top or bottom)
(OPTIONAL) Z-index – What should the depth of the pointer be along the z-axis (in case you want some of them to sit higher/lower than others or higher/lower than other elements on the page)

EXAMPLE:
Let’s say I want to add a pointer on the edit plugin page that tells a user to notice which plugin they are editing. I would use:

“Which Plugin am I Editing?”
“This is the file you are editing, duh”
“ss_editplugs”
“plugin-editor”
“.fileedit-sub”
“top”
“right”
“-50”
“-5”
“50000”

NOTE: This will only work for logged in users, whether on front end or back end.
NOTE: I also have a plugin that does help tabs, if you are interested in that one you can find it here: https://wordpress.org/plugins/better-admin-help-tabs/
This plugin leverages the great work done by others here:
For configuring metaboxes on the custom post type:
https://github.com/WebDevStudios/CMB2
For base class and code to allow pointers to display properly:
https://gist.github.com/brasofilo/6947539

延伸相關外掛

文章
Filter
Apply Filters
Mastodon