Skip to content

Enhance SWJProjects Licensing: Domain Storage Plugin, Template Override & AJAX Validation #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

NickGiannelis
Copy link

@NickGiannelis NickGiannelis commented May 15, 2025

This PR delivers a comprehensive upgrade to SWJProjects license management by introducing three key components:

System Plugin (save_domain)

    Fixes domain storage in #__swjprojects_keys via AJAX

    Adds onAjaxSave_domain handler with direct SQL updates

    Includes debug logging for easier troubleshooting

Template Override

    Adds domain input field in userkeys/default.php
    Seamlessly integrates with the new system plugin

AJAX License Validator

    Enables real-time license key validation with domain and subdomain checks

    Verifies expiration dates (date_end)

    Returns JSON responses suitable for frontend or API clients

Testing & Compatibility:

    Tested on Joomla 5.x
    Compatible with existing KeysHelper logic

This solution builds on Sergey’s earlier suggestions and the following core resources:

Joomla AJAX Plugin documentation: https://manual.joomla.org/docs/building-extensions/plugins/plugin-examples/ajax-plugin/

KeysHelper checkKey method: https://github.com/WebTolk/SWJProjects/blob/master/com_swjprojects/site/src/Helper/KeysHelper.php

Notes:

Can be merged permanently or offered as an optional customization

Debug mode included for maintenance ease

Why This Matters:

Resolves persistent domain storage issues

Improves user experience with instant feedback

Maintains backward compatibility with existing workflows

Authored by Nick Giannelis.

@NickGiannelis NickGiannelis changed the title Added system plugin save_domain to store domain in #__swjprojects_keys Added system plugin save_domain to store domain in #__swjprojects_keys, Template Override & AJAX License Validation May 15, 2025
@NickGiannelis NickGiannelis changed the title Added system plugin save_domain to store domain in #__swjprojects_keys, Template Override & AJAX License Validation Enhance SWJProjects Licensing: Domain Storage Plugin, Template Override & AJAX Validation May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant