跳至主要內容
  • 登入
  • 註冊
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress

外掛目錄

  • 我的最愛
  • Beta 版測試
  • 開發者資訊

這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

下載

BP Direct Menus

由 mrwulf 開發
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

Completely integrated with the wordpress menu system so your theme’s menu menu styling is used.

Basic log in/out and register menu items that are only visible when appropriate.

Awesome custom menu item type will let you link to any page that requires the username as part of the url (example.com/members//messages). Tons of tags can be used to customize the menu text:
* User Info: username, firstname, lastname, displayname
* BuddyPress counts: unreadmessagecount, friendcount, groupcount
* BuddyPress counts that hide when zero: (unreadmessagecount), (friendcount), (groupcount)
* BuddyPress/WordPress avatar: avatar, avatar-thumb, avatar-mini

This plugin works great with “Menu Items Visibility Control” to only show menu items to certain roles/levels.
Also, try “WP ToolBar Removal” to totally replace the ugly unthemed wordpress/buddypress menu.

螢幕擷圖

  • The meta box in nav menu admin page

  • An example of a custom profile menu

  • The admin view of the above profile menu

安裝方式

  1. Upload the “bp-direct-menu” folder into the “/wp-content/plugins/” directory

  2. Activate the plugin through the “Plugins” menu in WordPress

  3. Go to Appearance->Menus to add menu items of type BuddyPress Direct Links

  4. See the help link for more info.

常見問題集

How does this work?

Visit your navigation admin menu page, you got a new box including 5 links: ‘log in’, ‘logout’, ‘log in/logout’, ‘register’, ‘custom’.

Add the link you want, for example “Log in|Logout”

  1. You can change the 2 titles links, just separate them with a | (pipe)

  2. You can add a page for redirection, example #bpmdloginout#index.php This will redirect users on site index.

  3. You can add 2 pages for redirection, example #bpmdloginout#login.php|logout.php This will redirect users too.

  4. For this redirection you can use the special value %actualpage%, this will redirect the user on the actual page.

What are the shortcodes?

You can also add shortcodes in your pages/posts. just do this :

In you posts/pages : [loginout]
In your theme : <?php echo do_shortcode( '[loginout]' ); ?>

The 4 basic shortcodes are “[bpdm_login]”, “[bpdm_logout]” and “[bpdm_loginout]”, “[bpdm_register]”.

You can set 2 parameters, named “redirect” and “edit_tag”.

Redirect: used to redirect the user after the action (log in or out) ; example : “/welcome/” or “index.php”

Edit_tag: used to modify the tag, ; example ” class=’myclass'” or ” id=’myid’ class=’myclass’ rel=’friend'” etc

You can also modify the title link with [login]Click here to connect[/login] for example

How does the custom link work?
  • Add it to a menu or using a shortcode just like the other links.
  • Put in the end part of the URL after the #bpmdcustom# placeholder or in the url_part parameter. This will be appended to “.com/members/” (the user’s profile page), so to go to a user’s messages: “#bpmdcustom#/messages/”.
  • Use one (or more) of the replacement tags in the menu item title or shortcode text:
    • “Messages %(unreadmessagecount)%”
    • [bpdmcustom url_part=”/messages/”]Messages %(unreadmessagecount)%[/bpdmcustom]
How awesome is the custom link?

Totally.

使用者評論

Love it!

GabyRangel 2016 年 9 月 3 日
I have been searching for a way to send users to specific pages that are nowhere on the menu options. This did the trick! Took seconds to set up and now I have what I needed. Thank you so much!

Clear as mud, no support

fpats 2017 年 2 月 7 日
Check out the support forum for a load of confused & ignored users. Nice one.
閱讀全部 12 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈BP Direct Menus〉的開發相關工作。

參與者
  • mrwulf

將〈BP Direct Menus〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

1.0

  • 2013-09-21

  • First release

中繼資料

  • 最新版本: 1.0.0
  • 最後更新: 10 年前
  • 啟用安裝數: 80+
  • WordPress 版本需求: 3.0 或更新版本
  • 已測試相容的 WordPress 版本: 3.6.1
  • 語言:
    English (US)
  • 標籤:
    linklog inloginlogoutmenu
  • 進階檢視

評分

檢視全部
  • 5 星 9
  • 4 星 1
  • 3 星 1
  • 2 星 0
  • 1 星 1
登入以提交評論

參與者

  • mrwulf

技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

查看技術支援論壇

贊助

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 主機託管
  • 贊助基金會
  • Swag
  • 線上說明
  • 開發者資源
  • 共同參與
  • Learn
  • 展示網站
  • 外掛目錄
  • 佈景主題目錄
  • 區塊版面配置目錄
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隱私權
  • Public Code
WordPress.org
WordPress.org

Taiwan 正體中文

  • 造訪我們的 Facebook 粉絲專頁
  • 造訪我們的 Twitter 帳號
  • Visit our Instagram account
  • Visit our LinkedIn account
程式碼,如詩