- Xenforo.com resource URL
- https://xenforo.com/community/resources/xb-poll-bb-code-embed-polls-in-posts-messages.10783/
- Compatibile XF2 versions
- 2.3
Create and embed native XenForo polls directly inside rich-text content using the [POLL] BB code.
Poll BB Code extends the standard editor with an integrated poll creation interface, allowing members to add interactive polls to posts, profile posts, direct messages, and XenForo Resource Manager updates while retaining XenForo's native voting, results, and poll management workflow.
Features:
Poll BB Code: Embed interactive XenForo polls directly into supported messages using [POLL].
Editor Poll Creation: Create polls without leaving the rich-text editor using an integrated poll creation overlay.
Visual Editor Preview: See poll questions, responses, and settings as native-looking elements directly inside the rich-text editor.
Native XenForo Polls: Use XenForo's standard poll responses, votes, results, options, and editing workflow.
Polls in Messages: Add polls to content types that normally consist of rich-text messages rather than dedicated poll threads.
Content Association: Automatically associate created polls with the published post, profile post, direct message, or resource update.
Edit Support: Keep polls associated with their messages when editing existing content.
Automatic Cleanup: Remove abandoned polls that were created in the editor but never associated with published content.
Safe Poll Removal: Detach polls when their [POLL] BB code is removed while temporarily preserving votes in case the poll is restored.
Supported Content Types:
Forum Posts
Profile Posts
Direct Messages
XenForo Resource Manager: Resource updates
Limitations:
Pending Poll Lifetime: A poll created in the editor remains pending until its message is published. Pending polls older than 24 hours are automatically removed. If a draft containing [POLL] is kept for longer than 24 hours, a new poll must be created before publishing.
Removed Poll Recovery: Removing [POLL] while editing detaches the poll, hides it, and closes voting. Existing votes are retained for 24 hours. Restoring the tag to the same message during that period re-attaches the poll; otherwise it is automatically removed.
Useful for:
Polls in Posts: Add voting directly to individual forum posts instead of limiting polls to thread creation.
Profile Polls: Create interactive polls inside profile posts.
Direct Message Polls: Collect votes and opinions inside private conversations.
Resource Update Polls: Add polls to XenForo Resource Manager updates.
Community Voting: Collect feedback, preferences, and decisions using native XenForo poll functionality.
Rich Content: Combine regular BB Code content and interactive polls within the same message.
FAQ:
Can I add a poll to a regular XenForo post?
Yes. Create the poll from the editor and insert it into the message using the [POLL] BB code.
Does the add-on use XenForo's native poll system?
Yes. Poll responses, voting, results, and editing use XenForo's existing poll functionality.
Can polls be used in direct messages?
Yes. Poll BB Code supports direct message content in addition to forum and profile posts.
Can I add a poll to a XenForo Resource Manager update?
Yes. XFRM resource updates are supported.
Do polls remain available in saved drafts indefinitely?
No. Unpublished polls are removed after 24 hours, so an older draft containing a poll requires a new poll before publication.
What happens if I remove the [POLL] BB code from a message?
The poll is detached and voting is closed, but its votes are preserved for 24 hours. Restoring the tag during that period re-attaches the poll.
Screenshots:
Poll Creation
Create a poll directly from the rich-text editor toolbar. |
Configure the question, possible responses, selection limit, visibility, and closing options. |
Editor Integration
Preview, edit, or remove embedded polls while composing the message. |
Place embedded polls alongside regular rich-text content. |
Published Polls
Vote, view results, and edit embedded polls in a published forum post. |
Style Customization
Customize embedded poll width, alignment, colors, containers, headers, previews, and response rows through XenForo style properties. |
Permissions
Control who can use the Poll BB Code and edit embedded polls. |