🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms bbPress Integration Premium Add-on Setup Guide

Updated 12 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What You Get
  3. Requirements
  4. Quick Start
  5. Create a Topic
  6. The forum
  7. Title, content, tags and attachments
  8. Status, moderation and sticky
  9. Author, guests and subscription
  10. How the bbPress Rules Are Kept
  11. Create a Reply
  12. Fill Choices with Forums and Topics
  13. Events: From the Forum to Gravity Forms
  14. Draft for Review: Let the Author Edit Before It Goes Live
  15. Who can use the link
  16. New merge tags
  17. Merge Tags, Notes and the Entry View
  18. Privacy and Safety
  19. Frequently Asked Questions
  20. Does it work with the bbPress forum shortcodes and themes?
  21. Can members post in a private forum?
  22. What happens when a post is held for moderation?
  23. Can one form create a topic and a reply?
  24. Does it need a paid bbPress add-on?

Video walkthrough

Gravity Forms bbPress: Forum Topics & Replies from Forms, New Posts to Entries (Free bbPress)
Watch the bbPress Integration add-on start forum topics and replies from Gravity Forms with the bbPress rules, and turn new forum posts into entries. Watch on YouTube

The bbPress Integration add-on connects Gravity Forms to the free bbPress forum plugin from wordpress.org. A feed turns a form submission into a forum topic or a reply, using the bbPress functions that create them, so forum counts, freshness, last active times and subscriptions are updated exactly as if the post had been written in the forum. Another kind of feed works the other way round: when a new topic or reply is posted in the forums you choose, it creates an entry in a form and can send the notifications of that form.

A Gravity Forms topic form for a forum member with a Forum drop down that lists only the forums that member may post in, plus title, question, tags and name fields
The Forum drop down is filled for each visitor: only forums that person may post in are listed.

Why not make a post of type topic with a generic form add-on? Because a bbPress topic is more than a post. It needs the forum as its parent, a dozen bbPress meta values, counters on the forum and the topic, and it must obey the rules of the forum: private and hidden forums, closed forums, categories, moderation and spam words, guest posting and the flood limit. This add-on does that work for you and shows the visitor a clear message when a rule says no.

What You Get

  • A feed with three actions: create a topic, create a reply and event (a new forum post becomes an entry).
  • A forum that is fixed, or chosen by the visitor from a Drop Down or Radio field that is filled with the forums that visitor may post in.
  • A topic title, content and topic tags from form fields, an optional sticky setting that only administrators see, and links to uploaded files added to the content.
  • The author is always the person who sends the form: the logged-in user, or a guest with a name and an e-mail address when bbPress allows guests. A post is never created in the name of somebody else.
  • Status published or pending moderation, plus the bbPress moderation list, disallowed words, flood limit, duplicate check and content cleaning.
  • The author can be subscribed to the new topic, so replies are mailed to them by bbPress.
  • Replies to a fixed topic, to a topic chosen from a list of open topics, or to the topic of the page that shows the form, with a check that the topic is open.
  • Forum and topic lists for any Drop Down or Radio field, with two CSS classes.
  • Merge tags for the topic, reply and forum links and ids, entry notes, an entry box with links, conditional logic and a requirement notice.

Requirements

You need Gravity Forms 2.9 or newer, WordPress 6.5 or newer, PHP 7.4 or newer, an active license key and the free bbPress plugin, version 2.6 or newer (built and tested with bbPress 2.6.20). If bbPress is missing or too old, a notice appears on the Gravity Forms screens and in the feed, and a submission leaves an entry note instead of posting anything.

Quick Start

  1. Install and activate the add-on, then activate your license key under Forms, Settings, bbPress.
  2. Create a form with a title (Single Line Text), a message (Paragraph) and, if visitors choose the forum, a Drop Down field called Forum.
  3. Open the form settings, go to bbPress and add a feed. Keep the action on Create a forum topic.
  4. Choose the forum, or choose that the visitor picks it and select the Drop Down field. Pick the title and content fields.
  5. Send a test entry while logged in. The entry note says which topic was created and where, and the box in the entry links to it.
The bbPress feed settings of a Gravity Forms form: the forum chosen by the visitor from a drop down field, the title, content, tags and attachments fields, the status, the author rules and the option for disallowed words
The feed of one form: where the topic goes, which form fields fill it, and how bbPress rules apply.

Create a Topic

The forum

A fixed forum is chosen in the feed; the list shows every forum with its status, so you can see which ones are private, hidden or categories. The topic is created there if the person who sends the form may post in it. When the forum is chosen by the visitor, you pick a Drop Down or Radio field and the add-on fills its choices every time the form is shown and again when it is validated. Child forums are indented under their parent.

The list is different for each visitor. A member sees the public forums and the private forums, a moderator also sees hidden and closed forums, a blocked user or a guest (when guests are not allowed) sees nothing. Categories and forums that need a password are never listed, because a category cannot hold topics and a password cannot be typed in a form. Whatever is sent is checked again on the server, so a forum id that was changed by hand is refused.

Title, content, tags and attachments

Choose the form field for the title and for the content. The content goes through the same bbPress filters as the forum form: it is cleaned of anything bbPress does not allow, code tags are kept as code and open tags are balanced. Topic tags can come from a text field with a comma list or from a checkbox field. Tags are added only for logged-in authors who may assign topic tags and only when bbPress topic tags are switched on; at most ten tags of fifty characters each are used.

bbPress has no attachments of its own, so the add-on adds links: choose a File Upload field and the content ends with an Attachments heading and a list of links to the uploaded files. Only files in the Gravity Forms upload folder are linked; any other address is left out.

Status, moderation and sticky

Published creates the topic as public, Pending moderation holds it for review. A topic is also held as pending when it contains a word of the WordPress moderation list or more links than Settings, Discussion allows, which is what the bbPress form does. Moderators and keymasters are not held, as in bbPress. For words on the disallowed list you choose: show an error and do not send (what bbPress does), create the topic as pending, or create it as spam. A pending topic does not count in the visible topic count of the forum until a moderator approves it.

Administrators also see a Sticky setting: sticky in its forum, or super sticky in all forums. It is applied only when the person who sends the form may moderate that topic and the topic is published, so a member can never pin a topic through your form.

Author, guests and subscription

With the default Author setting a visitor must be logged in. Choose the second option to let guests post: it adds name, e-mail and optional website fields, and it works only when the bbPress setting that allows guests to create topics and replies is on. The values pass through the bbPress filters, an invalid e-mail address is shown at its field, and the topic stores the guest data the way bbPress does. Guests get no tags and no subscription, and they can never post in private or hidden forums.

Turn on Subscribe the author and a logged-in author follows the new topic, so bbPress mails them when someone replies. If subscriptions are off in bbPress, nothing is subscribed.

How the bbPress Rules Are Kept

Every check below is the one the bbPress forms make, run before anything is saved, and again when the entry is processed.

bbPress rule What the add-on does with it
The forum must exist, must not be a category and must not need a password The topic is refused with a message at the Forum field (or at the top of the form for a fixed forum)
A closed forum takes new topics only from people who can edit it Moderators and keymasters may post, everybody else is refused, and the forum is not listed in the drop down for them
Private forums need a signed-in member, hidden forums need a moderator The drop down lists only the forums the person may read, and the choice is checked again when the form is sent
Blocked users and visitors may not post unless bbPress allows guests Nothing is listed, the form shows an error and nothing is created
Posting without an account needs the bbPress guest setting Name and e-mail come from form fields and go through the bbPress filters; the feed must allow guests too
Moderation words and too many links hold a post for review The topic or reply is created as pending moderation, as in the bbPress forms
Disallowed words block a post The form shows an error, or you choose to create the post as pending or as spam
Flood limit and duplicate check The same bbPress checks run, with the same messages
Content is cleaned (allowed HTML, code tags) The same bbPress filters clean the content before it is saved
Only moderators can stick topics A topic is made sticky only when the person who sent the form may moderate it

Create a Reply

Choose the action Create a reply and tell the feed which topic to use.

  • A fixed topic: type its id. Good for a general discussion form.
  • The visitor chooses: a Drop Down or Radio field is filled with the open topics that person may reply to, newest first, up to 200. You can limit the list to one forum.
  • The topic page that shows the form: put the form on a bbPress topic page (for example with the bbPress template action under the topic) and choose a Hidden field. The add-on fills it with the id of that topic.

Before a reply is created the topic is checked: it must exist, be published and open, the forum must be open and readable by the author, and the topic must not need a password. Moderators may still reply to a closed topic, as in bbPress. A reply to a topic that waits for moderation is not possible; a reply that contains a moderation word is created as pending, and the topic and forum reply counts follow the bbPress rules.

Fill Choices with Forums and Topics

The forum and topic pickers work from the feed, but you can also use them without a feed, for example in a search or routing form. Add the CSS class gfbbpress-forums to a Drop Down or Radio field and its choices become the forums the current visitor may post in. Add gfbbpress-topics and they become the open topics the visitor may reply to. The values are the ids, so they can feed conditional logic, merge tags and other add-ons.

Events: From the Forum to Gravity Forms

An event feed belongs to the form that should receive the entries. Choose when it runs (new topic, new reply or both), in which forums (tick none for all), and which posts count: published and pending, or published only. Spam never counts. Then pick the form field for each value you want to keep: title, content as text, author name and e-mail, forum name, link, post id, topic id, type and status.

Each event creates an entry with an entry note and the bbPress links. If you choose Create an entry and send the notifications, the form notifications whose event is bbPress: topic posted or bbPress: reply posted are sent, so a moderator team can get an e-mail, or a Slack message through another add-on, for every new post. Events run for posts made with the bbPress forms, with this add-on and with any other code that fires the bbPress actions, and each post is announced once.

Draft for Review: Let the Author Edit Before It Goes Live

New in version 1.1. bbPress has no draft status for topics, so a feed can now create the topic or reply as pending and give the person who sent the form a private edit link. On that page they change the title and the text, then send it on. Nothing shows in the forum until it is published.

  1. Create a page, for example “Review your post”, add the shortcode [gfbbpress_draft] and publish it.
  2. Open the bbPress feed of your form and turn on Draft for review.
  3. Choose what happens when the author is done: Submit for approval (a moderator approves it in bbPress) or The author may publish it.
  4. Choose the Edit page and how many days the link works (default 7, up to 90).
  5. Add {bbpress:topic_edit_url} to the form confirmation or to a notification sent to the person who filled in the form, for example: <a href="{bbpress:topic_edit_url}">Review your post</a>.

Draft for review settings of a Gravity Forms bbPress feed: submit for approval, edit page and link lifetime

The edit page has Save draft and either Publish or Submit for approval. Publish still follows the bbPress moderation rules: a post with a word of the moderation list or too many links waits for a moderator. Moderators can approve, edit or delete a draft in bbPress at any time, as with any pending post.

The private edit page of a draft forum topic with title, text, Save draft and Submit for approval

  • A visitor without an account (when the feed and bbPress allow guest posts) can edit with the link alone.
  • A logged-in member must be logged in as the same account. Anyone else who opens the link gets “This edit link belongs to another account”.
  • The link is signed by your site. A changed link, an expired link, and a post that was already sent or published cannot be edited.
  • Every change is checked again on the server: the bbPress text filters, allowed HTML only, disallowed words, and at most 20 changes per post per hour.

New merge tags

  • {bbpress:topic_edit_url}: the private edit link of the draft (empty when the feed does not use Draft for review, or the post is no longer a draft). For a reply feed it is the link of the reply.
  • {bbpress:topic_status}: the status of the topic or reply now: Draft for review, Pending moderation, Published, Closed, Spam or Trash.

Treat the edit link like a password: send it only to the person who wrote the post, not in a notification to a list. Feeds without Draft for review work exactly as before. Draft for review needs an active licence.

Gravity Forms confirmation after sending the form: the post is saved as a draft for review, with a link to review and send it

Merge Tags, Notes and the Entry View

A Gravity Forms entry page with the entry note that says which bbPress topic was created in which forum and that the author was subscribed, and the bbPress box with a link to the topic
The entry note says what was created, in which forum and with what status, and the side box links to the topic.
  • {bbpress:topic_url}, {bbpress:topic_id}, {bbpress:reply_url}, {bbpress:reply_id}, {bbpress:forum_url}, {bbpress:forum_id} and {bbpress:post_status} work in notifications and confirmations that are sent after the feed ran.
  • Every run adds an entry note: what was created, in which forum, with which status, how many tags, whether the author was subscribed, or the reason nothing was posted.
  • The entry view has a bbPress box with links to the topic and the reply.

Privacy and Safety

Nothing is sent to another service. Content is cleaned by bbPress, ids typed in a form are checked before use, only files from the Gravity Forms upload folder are linked and a post is never created for another user. Uninstalling removes the add-on options and entry meta; forums, topics and replies stay.

Frequently Asked Questions

Does it work with the bbPress forum shortcodes and themes?

Yes. It creates standard bbPress topics and replies, so every bbPress theme, widget and shortcode shows them.

Can members post in a private forum?

Yes, when bbPress lets them read it. Private forums are open to signed-in members, hidden forums to moderators. Guests never post in either.

What happens when a post is held for moderation?

It is created as pending. A moderator approves it in the bbPress admin screens, and the entry note says it is pending.

Can one form create a topic and a reply?

Yes. Add one feed for each action and use conditional logic to decide which one runs.

Does it need a paid bbPress add-on?

No. The free bbPress plugin is all you need.

A forum grows when posting is easy and the rules are kept. With a feed that speaks the bbPress language, a Gravity Forms form becomes a front door for questions, announcements and replies, and the forum team hears about every new post.

See the bbPress Integration add-on

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr