Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
110 views
ago in Plugins by
retagged ago by

You can check it out here: Live demo,
Direct link to the wall here: User Wall,
And here’s an example of a single wall post.

Purchase: Buy Plugin

Question attached image

What is WPC (Wall Post Comments)?

Q2A Wall Post Comments (WPC) is a modern Question2Answer plugin that enhances wall posts with AJAX-powered comments, reactions, inline editing, and improved social engagement features.

WPC transforms static wall posts into interactive community conversations while preserving consistency with the native Q2A commenting experience. The plugin integrates flexibly with Q2A themes, providing a smooth, app-like experience without requiring core modifications.


Key Features

Question attached image

  • Extended Editor Support
    You can use Advanced Editors on wall post comments, with the addition of the Editor Extension Manager plugin.

  • AJAX-Powered Comments
    Load, submit, edit, and manage wall post comments dynamically without page reloads.

  • Wall Post Editing
    Allows users to edit their own wall posts directly from the interface, a feature not provided by the Q2A core.

  • Inline Comment Editing
    Users can edit their comments inline with a smooth editing experience and automatic edited-state indicators.

  • Reactions System
    Adds modern emoji reactions to wall posts and comments, including Like, Love, Laugh, Wow, Sad, Angry, Fire, Pray, and more.

  • “Who Reacted” Popovers
    Users can view who reacted to a post or comment through interactive hover popovers.

  • Smart FNS Notifications Integration
    Integrates intelligently with the Pupi FNS plugin using notification grouping (John +4 others reacted) during high activity, while still delivering individual notifications for quieter conversations to reduce notification spam.

  • Deep-Linking to Wall Posts & Comments
    Supports direct links to specific wall posts and comments with visual highlighting.

  • Lazy Loading & Optimized Rendering
    Comments load progressively for improved performance and smoother interaction on larger communities.

  • Permission-Aware Actions
    Edit, delete, reply, and moderation controls automatically respect Question2Answer permissions and limitations.

  • No Core Hacks Required
    Built entirely through the Q2A plugin system with no core file modifications required.

Note: The share button is part of a Polaris theme feature. Not the WPC plugin itself. 


Screenshots:

See more screenshots


Live Demo: Navigate to a user's wall post to see it live.
Purchase: Buy Plugin

1 Answer

0 votes
ago by
 
Best answer

If you have a plugin and want to append buttons to wall post commets, for example a share button, or report button, you can do so by creating a function (not method) similar to this example below, created for the Report Master plugin: 

function add_wpc_report_button($buttons, $comment, $user)
{
    $buttons['report_master'] = [
        'priority' => 201,
        'tags' => 'type="button"
            value="Report"
            class="qa-form-light-button qa-form-light-button-report"
            data-posttype="wallpostcomment"
            data-comment-id="' . (int)$comment['comment_id'] . '"',
        'label' => qa_lang('rm_lang/report_button'),
        'icon'  => '<svg width="18" height="18">...</svg>',
    ];


    return $buttons;
}

/**
 * Hook into WPC system
 */
wpc_add_filter('wpc_comment_buttons', 'add_wpc_report_button');

The default/existing WPC buttons priority are:

  • Edit button: 100
  • Delete button: 200

You can prepend or append yours, by giving a smaller or bigger priority.

...