JEM Comments Plugin
Plugin name: JEM Comments Plugin
Extension: plg_jem_comments
Plugin group: JEM
Applies to: JEM 5.0 beta 3 for Joomla 5/6 and JEM 4.5 beta 5 for Joomla 4/5, when the plugin is available in the installed package.
Overview
The JEM Comments Plugin adds third-party comment system output to the end of a JEM event page. In this version, the supported comment integration is JComments.
The plugin does not store comments itself. It acts as a bridge between JEM event pages and the installed comment component. If no supported comment component is installed, the plugin will not display comment output.
Requirements
- JEM component installed and enabled.
- The JEM Comments Plugin enabled in System → Manage → Plugins.
- JComments installed if the JComments option is selected.
- The JEM event detail layout must trigger the JEM plugin event where comments are rendered.
Plugin Options
| Option | Default | Values | Description |
| Select used Commentsystem |
None |
None, JComments |
Selects the comment component that should be used on JEM event pages. |
How It Works
The plugin listens to the JEM event hook:
onEventEnd($event_id, $event_title)
When a JEM event page reaches the end of the event output, the plugin checks the selected comment system.
| Selected System | Behaviour |
None |
The plugin returns no output. |
JComments |
The plugin checks whether components/com_jcomments/jcomments.php exists. If it does, it calls JComments for the current JEM event. |
JComments Integration
When JComments is selected and installed, the plugin renders comments using:
JComments::show($event_id, 'com_jem', $event_title);
The output is wrapped in:
<div class="jcomments">...</div>
Administrator Workflow
- Install and configure JComments.
- Enable JEM Comments Plugin.
- Open the plugin options.
- Set Select used Commentsystem to JComments.
- Open a published JEM event page on the frontend.
- Confirm that the comment area appears below the event content.
Important: Selecting JComments in this plugin is not enough by itself. JComments must also be installed and working on the Joomla site.
Frontend Behaviour
- The plugin displays comment output at the end of a JEM event page.
- The plugin does not display comments in event lists, category lists, venue lists, modules, or maps.
- The plugin does not create comments; comment storage and permissions are handled by JComments.
- If JComments is missing, the plugin silently returns no comment output.
Recommended Configuration
Enable Comments On Event Pages
- JComments: Installed and configured
- JEM Comments Plugin: Enabled
- Select used Commentsystem: JComments
This configuration displays a JComments comment area at the end of JEM event detail pages.
Troubleshooting
| Problem | Possible Cause | Suggested Fix |
| No comments appear on event pages. |
The plugin is disabled, comment system is set to None, or JComments is not installed. |
Enable the plugin, select JComments, and confirm that JComments exists at components/com_jcomments/jcomments.php. |
| The plugin is enabled but still shows nothing. |
The event layout may not trigger the JEM onEventEnd plugin event. |
Test with the default JEM event layout and check custom overrides. |
| Comment permissions are not as expected. |
Permissions are controlled by JComments, not by this plugin. |
Review JComments configuration, access rules, and user group settings. |
| Comments show on one event but not another. |
JComments may have per-component, category, or object-specific settings. |
Check JComments settings for com_jem and the affected event ID. |
Related Development Notes
The following GitHub references are useful for understanding the JComments bridge, plugin packaging, and related comment discussions.