End of Year Sale: 30% off your first year on annual plans. Use code AP5-30-OFF See plans

Add private messages (BuddyPress/Boss Messages block)

Build Your App · AppPresser 文件

Add private messages (BuddyPress/Boss Messages block)

本文尚未翻譯,因此以英文顯示。

Your app journey: step 4 of 9, Add pages and features. New here? Read Start here: build your app with AppPresser first.

What you'll do: Add a page where logged-in members read, send and reply to private messages.

Before you start

  • Install and activate the BuddyPress or BuddyBoss plugin on your WordPress website. These plugins add a community to your site, with members, groups and messages.
  • In BuddyPress, turn on the User Groups, Friend Connections and Private Messaging parts. You find them in your WordPress admin under Settings, then BuddyPress, then the Components tab.
  • Install and activate the AppCommunity plugin, AppPresser's add-on for BuddyPress and BuddyBoss, on your WordPress website.
  • Connect your app to your WordPress website. See Connect your WordPress site and turn on Features.
  • Let members log in to your app. They must be logged in to use messages.

Add the block

  1. In the left menu, under Customization, click Custom Pages.
  2. Click the name of the page you want to change. To make a new page instead, click Add New Page, type a title, keep Page Builder selected and click Create Page.
  3. Below the last block on the page, click Add Block.
  4. In Search blocks…, type BuddyPress/Boss Messages, then click the block. It is added to the bottom of the page.
  5. Leave Show Filter on, or turn it off. This is the only setting.
  6. Click Save Changes at the top of the editor.
  7. To see a new page in the App Preview, add it to a menu. See Add a page to your app menu.

The BuddyPress/Boss Messages block in the editor with Show Filter turned on

If you chose BuddyPress or BuddyBoss when you made your app, AppPresser already made a Messages page. It also added Messages to the More menu. That item is set to Only show when logged in, so visitors who are not logged in do not see it.

The More menu when logged out, showing only Members, Groups and Our Website

Show the Messages item to everyone

  1. In the left menu, under Customization, click Menus.
  2. Under Edit Menu, choose your More menu.
  3. Click the Messages item.
  4. Under Extra Classes, remove loggedin. This is the setting for Only show when logged in.
  5. Click Save menu.

The Messages menu item in the Menus screen, with loggedin under Extra Classes and Only show when logged in selected

Read and send messages

  1. Tap More, then Messages. The inbox lists each conversation with who sent it and its subject.
  2. Tap a conversation to open it. Messages show as chat bubbles. At the bottom are a Type message… box, a camera button to add a photo and a send button.
  3. To switch between received and sent messages, tap the Filter bar, choose Inbox or Sent, then tap OK.
  4. To write a new message, tap the new message icon at the top right.
  5. Fill in To, Subject and Your message, then tap SEND MESSAGE.

The Messages inbox in the App Preview with a conversation from Maya Quill titled Saturday trail run

An open conversation shown as a chat bubble, with the Type message box, camera button and send button at the bottom

The Filter window with Inbox and Sent options and CANCEL and OK buttons

The new Message form with To, Subject, Your message and SEND MESSAGE

Careful: Messages are really sent. Send only to test members while you check your app.

Check it as a logged-in member

The App Preview starts logged out, the way a new visitor sees your app. To see what a member sees:

  1. Make a test member on your WordPress website. Do not use your admin account.
  2. In the App Preview on the right, click More at the bottom, then click Members.
  3. Click any member in the list. A Login window opens.
  4. Type the test member's Username and Password, then click SUBMIT. The preview goes back to the Activity tab, and Messages and Member Profile now show in the More menu.

Tips

Tips

  • To move a block, drag it by its handle (the dots on the left). Click the arrow to fold it closed.
  • To copy a block, click the Duplicate icon.
  • To turn a setting on or off, click the switch itself, not the words next to it.
  • After you save, open the page in the App Preview and check your changes.

Careful: The trash icon removes a block right away. Check before you click.

You're done when the block shows on your page in the App Preview.

Next step

Add a member profile (BuddyPress/Boss Profile block)

這篇文章對您有幫助嗎?

沒有找到?

我們的支援團隊可協助解決設定、建置和應用程式商店相關問題。