maxmind-admin-page

Create and manage ACL-protected admin UI pages for MaxMind integration.

4|Updated Jul 10, 2017
One-click install
npx skills add https://github.com/myadmin-plugins/maxmind-plugin --skill maxmind-admin-page
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: maxmind-admin-page
Source: https://github.com/myadmin-plugins/maxmind-plugin/tree/main/.claude/skills/maxmind-admin-page
Command: npx skills add https://github.com/myadmin-plugins/maxmind-plugin --skill maxmind-admin-page

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill provides a standard pattern for adding or updating admin UI pages in the MyAdmin plugin, ensuring proper ACL checks, safe database access, and consistent rendering with Smarty.

Core Features & Use Cases

  • ACL guarded admin page creation: enforces permissions via has_acl and admin-only access.
  • Database access patterns: use $GLOBALS['tf']->db or get_module_db($module) for queries with proper escaping.
  • Smarty-driven rendering: leverage TFSmarty for templates like view_maxmind.php or maxmind_compare.php.
  • Page registration and routing: integrate new pages via Plugin.php getRequirements/getMenu to expose as admin UI.

Quick Start

Create or modify an admin UI page by adding a PHP file under src/ named after the page (e.g., maxmind_new_page.php), implement the single function matching the filename with the required ACL check and return or render output, and register it in Plugin.php's getRequirements.

Frequently Asked Questions about maxmind-admin-page

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new admin UI page for MaxMind in MyAdmin?▼

To add an admin UI page for MaxMind, create a PHP file under src/, implement a matching function with ACL checks, and register it in Plugin.php via getRequirements to expose it in the menu.

How does ACL protection work for MaxMind admin pages?▼

ACL protection for MaxMind admin pages enforces permissions using has_acl checks to restrict access to admin-only users before executing database queries or rendering Smarty templates.

What's the best way to query the database in a MaxMind admin plugin?▼

The best way to query the database in a MaxMind admin plugin is using $GLOBALS['tf']->db or get_module_db($module) with proper escaping to ensure safe data access.

Can I use Smarty templates for rendering MaxMind admin pages?▼

Yes, you can use TFSmarty for rendering MaxMind admin pages by leveraging templates like view_maxmind.php or maxmind_compare.php to ensure consistent UI output.

Does adding a MaxMind admin page require manual routing in Plugin.php?▼

Yes, adding a MaxMind admin page requires manual registration in Plugin.php's getRequirements and getMenu methods to properly route and expose the new page in the admin UI.

Why do I need to escape database queries in MaxMind admin pages?▼

You need to escape database queries in MaxMind admin pages to prevent SQL injection vulnerabilities when accessing data via get_module_db or the global database object.