MCP for RL AMM Pro (Regular Labs Advanced Module Manager Pro)
MCP for RL AMM Pro is a Pro add-on for MCP for J. It adds 9 tools for what Advanced Module Manager Pro by Regular Labs adds: the Pro rule types such as time of day, IP addresses and geolocation, per-module extra fields, and HTML around modules. RL AMM stands for Regular Labs' Advanced Module Manager; until version 1.0.2 this add-on was called MCP for Advanced Module Manager Pro.
New to MCP for RL AMM Pro? This page is the reference manual. For an overview and how to get it, see its page on cybersalt.com.
Release history. This page documents version 1.0.1. For what changed in each version, see the changelog.
Requirements. Joomla 5 or 6, PHP 8.2 or newer, MCP for J, the free MCP for RL AMM add-on alongside it, and Advanced Module Manager Pro 12.1.0 or newer, which you buy from Regular Labs. Tested with Advanced Module Manager Pro 12.1.0. Released under the GNU GPL v2 or later.
What's in the package
One plugin, System - MCP for RL AMM Pro (element csmcpforjadvancedmodulespro), with no admin screen of its own. The free add-on carries the other 22 tools: Condition Sets, grouping, conversion and the rule types both editions share.
Two gates
The package needs a Cybersalt Pro membership to download. That's the first gate. The second is that every tool except get_advancedmodules_pro_status refuses unless Advanced Module Manager Pro itself is installed: its component and its system plugin both have to be the Pro build. A Cybersalt membership doesn't include Regular Labs' Pro edition. The status tool explains those refusals, so run it first if a tool says it needs Pro.
⤢ Click to enlarge
Installing
- Subscribe on the sign-up page, or get this and every other Pro add-on with MCP for J Pro — All Access.
- Download the zip and install it in System → Install → Extensions, or paste your download URL into Install from URL. Updates arrive through System → Update → Extensions.
Permissions
| Tools | The account also needs |
|---|---|
| Status, reading the settings | Access Administration Interface on Advanced Module Manager |
| Listing the Pro rule types | Access Administration Interface on Conditions |
| Reading a module's extras | Access Administration Interface on Advanced Module Manager, and Edit on that module |
| Adding or changing a Pro rule | Edit on Conditions |
| A module's extra fields and HTML | Edit on that module (Joomla's own module permission) |
| Changing the settings | Configure ACL & Options on Advanced Module Manager (a Super User has it) |
On Joomla's defaults, Super Users can use every tool, Administrators every tool except changing the settings, and Managers none, as in Advanced Module Manager's own screens.
⤢ Click to enlarge
The tools
| Group | What they do |
|---|---|
| Status (1) | get_advancedmodules_pro_status: whether this site has the Pro edition, and what told us. Works on any edition. |
| Settings (2) | get_advancedmodules_pro_config and set_advancedmodules_pro_config: the extra fields and their labels, the HTML tab, and the remove-modules tag. Every other setting is kept. |
| Module extras (3) | get_advancedmodules_module_extras, set_advancedmodules_module_extra_fields and set_advancedmodules_module_html: a module's five extra fields, the HTML before and after it, and the HTML shown when it's empty. |
| Pro rules (3) | list_advancedmodules_pro_rule_types lists the Pro rule types and whether each can work on this site; add_advancedmodules_pro_rule and update_advancedmodules_pro_rule add and change them. |
Pro rules
Time of day, days, months, seasons, users, IP addresses, geolocation, article custom fields, and HikaShop, ZOO and FLEXIcontent pages. The rule type list says which ones can work on this site: geolocation needs Regular Labs' GeoIP library, and the shop and content types need those extensions.
⤢ Click to enlarge
⤢ Click to enlarge
IP lists that can't lock people out by accident. An IP entry can save perfectly well and match nobody, which hides content from the very people it was meant to let in. Advanced Module Manager doesn't read CIDR, so 10.0.0.0/24 never matches, and neither does a start with a trailing dot like 192.168.. These are refused with the reason. Full IPv4 and IPv6 addresses, ranges such as 10.0.0.1-10.0.0.50 or 10.0.0.1-50, and the start of an IPv4 address such as 192.168 are fine.
⤢ Click to enlarge
HTML around modules, and extra fields
HTML before and after a module, and the HTML shown when it's empty, are output as they are on every page the module shows on. So they go through the account's Joomla text filter first: if the filter would change anything, such as a script or an event handler when the account isn't allowed unfiltered HTML, nothing is saved and you're shown the filtered version. {source} tags are refused, because the Sourcerer extension runs them as code, and a tag has to open and close in the same field.
⤢ Click to enlarge
⤢ Click to enlarge
⤢ Click to enlarge
⤢ Click to enlarge
Safety rails
- PHP rules are never written, and sets that run PHP, or that one depends on, aren't changed here.
- Someone else's open edit wins. A set or module another user has open in the Joomla administrator isn't changed.
- Needs Advanced Module Manager 12.1.0 or newer to make changes.
- Regular expressions in article field rules have to compile, and patterns that could tie up a request are refused.
What's been tested
Version 1.0.1 was tested on Joomla 5.4 and 6.1 with PHP 8.4 and Advanced Module Manager Pro 12.1.0, and on Advanced Module Manager Free to confirm every tool but the status tool refuses. Rules were checked on real front-end pages, including time windows, seasons, IP lists and article field comparisons, and every tool was run with Super User, Administrator and Manager accounts. Geolocation, HikaShop, ZOO and FLEXIcontent rules were tested only as far as their checks, because the test sites don't have those extensions.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| "This tool needs Advanced Module Manager Pro" | Run get_advancedmodules_pro_status: it shows which signal says Free. Install or update Advanced Module Manager Pro from Regular Labs. |
| HTML refused by the text filter | The account isn't allowed that markup. Use a Super User, or change the filter for its group in Global Configuration → Text Filters. |
| A geolocation rule is refused | Install Regular Labs' GeoIP library first; without it the rule would hide the module from everyone. |
| A tool says the account lacks a permission | See Permissions. |
Getting help
Questions and bug reports are welcome through the Cybersalt support form. Please include your Joomla, PHP, Advanced Module Manager, MCP for J and add-on versions, and the tool response that surprised you.
MCP for RL AMM Pro is developed by Cybersalt Consulting Ltd. and released under the GNU General Public License v2 or later. It is not made or endorsed by Regular Labs.
An Administrator changing the settings — click anywhere to closeClose ×
The Pro rule types — click anywhere to closeClose ×
Office hours only — click anywhere to closeClose ×
A CIDR entry, refused — click anywhere to closeClose ×
Wrapping a module in a div — click anywhere to closeClose ×
An event handler, refused by the text filter — click anywhere to closeClose ×
A {{source}} tag, refused — click anywhere to closeClose ×
A module's extras — click anywhere to closeClose ×