Introduction
Easy Lock 1.0 is a JoomlaX package that hides chosen parts of a Joomla article until the visitor logs in or registers. Guests see a themed signup card. Members see the original HTML. Hidden text is removed on the server.
Think of it as three pieces that work together:
- Content - Easy Lock: parses
{elock}, optional auto teaser, and the guest card.
- Button - Easy Lock: toolbar button that inserts the shortcode.
- System - Easy Lock: strips leftover tags for guests and shows a View as Guest / Member bar for Super Users.
What you can do
- Wrap private HTML in
{elock} and keep the article Public
- Show Log in and Register as popup, same-tab, or new-tab
- Limit a block to named user groups
- Optional auto teaser when there is no shortcode
- Count gate shown and CTA clicks
Built for modern Joomla
- Joomla 4, 5, and 6
- PHP 8.1 or later
- Native JavaScript (no jQuery)
Installation
Step 1: Download
After purchase, download EasyLock_UNZIP.zip from your email or the Downloads section.
Step 2: Unzip on your computer
- Extract
EasyLock_UNZIP.zip.
- Inside you should see:
- pkg_easylock_1.0.0.zip (install this one)
- ReadMe.txt
Step 3: Install in Joomla
- System > Install > Extensions
- Upload
pkg_easylock_1.0.0.zip
- System > Maintenance > Clear Cache
What the package installs
- Content - Easy Lock
- Button - Easy Lock
- System - Easy Lock
The installer enables all three. Content - Easy Lock is ordered early so gated text is stripped before other shortcodes expand.
First-time setup
- Confirm System > Plugins shows Content, Button, and System Easy Lock as Enabled.
- Open Content - Easy Lock. Set Login menu / Register menu if you do not use the default Users views.
- Open the Popup login tab to set the heading note (for example demo username and password), Register now, and the forgot links.
- Leave Auto teaser Off until you want whole-category gating.
- Edit a Public article. Click Easy Lock in the editor, or wrap HTML in
{elock}.
- Save, clear cache, open the article logged out.
- Confirm View Source does not contain the private paragraph.
- Log in, return to the article, and confirm the private paragraph is visible.
Super Users can add ?easylock_preview=guest or member to the URL, or use the preview bar from the system plugin.
Shortcode
Basic form:
{elock}
Members-only HTML.
{/elock}
Square alias [elock] is also accepted. Empty inner content outputs nothing.
Attributes (all optional)
- cta:
popup, link, tab
- groups: comma-separated titles or IDs
- message: card body text
- theme:
light, dark, soft, brand
- fade:
1 or 0
- showlogin / showregister:
1 or 0
- login / register: button labels
Unknown attributes are ignored.
CTA modes
Popup
Log in opens a compact form that posts to Joomla Users with CSRF token and return URL. Configure the popup in Content - Easy Lock > Popup login: title, note under the heading (for demo logins), Remember me, Register now, Forgot username, and Forgot password. Each of those can be turned on or off. Buttons remain real links if JavaScript is off.
Same-tab link
Buttons go to login or register with return. After success, the visitor lands on the same article unlocked.
New tab
Same URLs with target="_blank". The card shows a refresh hint.
Auto teaser
Auto teaser runs only when Auto teaser is Yes, the context is a full article, there is no {elock} block, and the visitor is not allowed.
- Paragraphs: keep the first N block-level chunks (default 2).
- Read more: show introtext and hide fulltext. Falls back to paragraphs if there is no Read more break.
If a shortcode exists on the article, auto teaser does not run. Shortcode wins.
Demo page
The live demo at demo.joomlax.com/demo/utilities/easy-lock shows popup, same-tab, new-tab, and dark theme gates.
Open a tab logged out, confirm the card, View Source, then log in and confirm the private paragraph appears.
Support
Support: support.joomlax.com
Documentation: joomlax.com/documentation/easy-lock
Include Joomla version, PHP version, page URL, and whether you were logged in.