Connecting mosques and communities
📖 Help Center & User Manual · Documentation Version 1.0

Kariahku.com User Manual & Help Center

Official step-by-step documentation for the Kariahku.com Multi-Tenant Mosque Management System.

Kariahku.com Multi-Tenant Mosque Management System

SECTION 5 — Section 5: Mosque Registration and Management

Official step-by-step documentation for the Kariahku.com Multi-Tenant Mosque Management System.

Documentation Version: 1.0
Generated On: 2026-12-05 00:43 UTC
Articles: 5

Table of Contents

  1. [SEC-05A] Registering a Mosque (/register-mosque) & Platform Verification (/admin/mosques) — Section 5: Mosque Registration and Management
  2. [SEC-05B] Mosque Profile Management, Contact Info, State/District & Location (/mosque-admin/profile) — Section 5: Mosque Registration and Management
  3. [SEC-05C] Mosque Microsite Branding, Logo, Photographs & Mosque-Specific Settings (/mosque-admin/website) — Section 5: Mosque Registration and Management
  4. [SEC-05D] Managing Mosque Committee Members (AJK), Announcements, Articles, Events & Gallery — Section 5: Mosque Registration and Management
  5. [SEC-05E] Managing Mosque Administrators, Workspace Staff & Tenant Isolation (/mosque-admin/members) — Section 5: Mosque Registration and Management
SEC-05A · Section 5: Mosque Registration and Management ✓ Fully Implemented

Registering a Mosque (/register-mosque) & Platform Verification (/admin/mosques)

Step-by-step instructions for submitting a public mosque registration application with supporting documents, and how platform administrators verify and approve mosques.

Purpose of Function Enable mosque representatives to apply for onboarding and guide Platform Administrators through verifying documents, approving tenants, and starting the 1-month free trial.
Prerequisites 1 to 3 supporting documents (PDF, JPG, or PNG, max 5 MB each). For approval: an active `users` account matching `applicant_email`.
Required User Permissions Public Access for Application (/register-mosque) | Global mosques.review for Approval (/admin/mosques)

1. Submitting a Mosque Registration Application (/register-mosque)

  1. Click Register Mosque in the top navigation or visit /{lang}/register-mosque.
  2. Under Mosque Details:
    • Enter the official Mosque Name (required, max 180 chars) and select Mosque Type (Masjid, Surau, or Surau Jumaat).
    • Enter an optional Reference Number (up to 100 chars).
    • Select State and District (the District list filters automatically to match the chosen State).
    • Select the optional Official Prayer Zone (auto-suggested based on State and District).
    • Fill in Address, 5-digit Postcode, Latitude (-90 to 90), Longitude (-180 to 180), Telephone, and Email.
  3. Under Applicant Details, enter Applicant Name, Applicant Position, Applicant Contact, and Applicant Email (applicant_email).
  4. Select 1 to 3 Supporting Documents (PDF, JPEG, or PNG, max 5 MB per file).
  5. Click Submit. The application is saved with status pending.

2. Reviewing & Approving Mosque Applications (/admin/mosques)

  1. Sign in with mosques.review permission (Super Admin or Portal Admin) and open /{lang}/admin/mosques.
  2. Click the supporting document links on a pending mosque to inspect files securely via /admin/mosque-document?id={doc_id}.
  3. Verify that an active users account exists matching the application’s applicant_email.
  4. Enter a Review Note (mandatory when rejecting) and click:
    • Approve: Sets mosques.status = 'active', assigns the applicant user as mosque_admin in mosque_users, and automatically starts the 1-Month Free Trial on the mosque-standard plan.
    • Reject: Sets mosques.status = 'rejected' and logs the rejection note.
Public Mosque Registration form (/register-mosque) and Platform Mosque Review console (/admin/mosques).
Public Mosque Registration form (/register-mosque) and Platform Mosque Review console (/admin/mosques).

Input Fields & Options Reference

Form FieldRequirementValidation Rules
nameRequiredOfficial mosque name (max 180 chars); generates a unique URL slug.
mosque_typeRequiredAllowed values: masjid, surau, or surau_jumaat.
state_id & district_idRequiredDistrict must belong to the selected State (enforced server-side).
postcodeRequiredExact 5-digit numeric postcode (^\d{5}$).
latitude & longitudeRequiredDecimal coordinates: Latitude -90..90, Longitude -180..180.
applicant_emailRequiredEmail address of the user who will be granted mosque_admin upon approval.
documents[]Required1 to 3 files; allowed MIME types: application/pdf, image/jpeg, image/png; max 5 MB each.
Expected Results: The mosque transitions to `active`, the applicant becomes `mosque_admin`, the microsite `/masjid/{slug}` goes live, and the 1-month free trial starts.
Important Notes & Data Boundaries: Uploaded registration documents are stored outside the public web root in `storage/mosque-documents/` and served only to authorized reviewers.

Common Errors & Troubleshooting

If approval fails stating that the applicant user account must be created first, provision the account via php database/manage.php create-user with the exact applicant_email and retry approval.

SEC-05B · Section 5: Mosque Registration and Management ✓ Fully Implemented

Mosque Profile Management, Contact Info, State/District & Location (/mosque-admin/profile)

Step-by-step instructions for updating mosque profile details, address, state and district selection, official prayer zone, map coordinates, and contact information.

Purpose of Function Keep the mosque’s official directory listing, OpenStreetMap location, and contact details accurate on the public portal and mosque microsite.
Prerequisites Signed in as `mosque_admin` for the target mosque (or `super_admin` via `/admin/mosques`).
Required User Permissions Mosque Scope: mosque.manage (/mosque-admin/profile) or Global: mosques.manage (/admin/mosques)

1. Opening the Mosque Profile Screen

  1. Sign in and navigate to /{lang}/mosque-admin/profile (or click Mosque Profile in the mosque workspace sidebar).
  2. If your account manages multiple mosques, ensure the desired mosque tenant is active in /mosque-admin.

2. Updating Mosque Details, State/District & Location

  1. Update the Mosque Name, Mosque Type (Masjid, Surau, or Surau Jumaat), and optional Reference Number.
  2. Select the State and District. Selecting a State and District automatically filters district options and suggests the matching Official JAKIM Prayer Zone.
  3. Update the street Address and 5-digit Postcode.
  4. Enter accurate decimal Latitude and Longitude coordinates. These coordinates render the embedded OpenStreetMap view on the microsite Contact tab (/masjid/{slug}/contact).
  5. Enter the official Telephone number and Email address, then click Save.
Mosque Profile, Address, State/District, and Map Coordinates management screen (/mosque-admin/profile).
Mosque Profile, Address, State/District, and Map Coordinates management screen (/mosque-admin/profile).

Input Fields & Options Reference

FieldFormat / ConstraintPublic Microsite Impact
state_id & district_idValid State & District IDsControls public directory filtering and MAIN state reporting jurisdiction.
prayer_zone_idVerified JAKIM zoneDetermines the daily prayer schedule displayed on the mosque microsite.
latitude, longitudeDecimal (-90..90, -180..180)Renders the interactive OpenStreetMap embed on the mosque microsite.
telephone, emailMax 30 / Max 254 charsDisplayed in the mosque contact section and footer.
Expected Results: The mosque record in `mosques` is updated, the dashboard profile completion meter updates, and changes appear immediately on `/masjid/{slug}`.
Important Notes & Data Boundaries: All profile updates are logged in `audit_logs` under `mosque.profile.updated`.

Common Errors & Troubleshooting

If you see "Selected district does not belong to state", re-select the State first and then choose a District belonging to that State.

SEC-05C · Section 5: Mosque Registration and Management ✓ Fully Implemented

Mosque Microsite Branding, Logo, Photographs & Mosque-Specific Settings (/mosque-admin/website)

How to upload a mosque logo and cover photograph, select a theme accent color, toggle microsite sections, and edit trilingual microsite content.

Purpose of Function Allow Mosque Administrators to customize their mosque’s public microsite at `/masjid/{slug}`.
Prerequisites Role `mosque_admin` and active subscription entitlement (`microsite_customization`).
Required User Permissions Mosque Scope: mosque.manage + Active Subscription Entitlement (microsite_customization)

1. Uploading the Mosque Logo & Cover Photograph

  1. Open /{lang}/mosque-admin/website.
  2. In the Mosque Logo field, select your official emblem image (JPG, PNG, or WEBP, max 3 MB).
  3. In the Cover Image field, select a photograph of the mosque (JPG, PNG, or WEBP, max 3 MB).

2. Configuring Theme Accent, Visibility Toggles & Social Links

  1. Choose a Theme Accent color (emerald, teal, blue, or maroon).
  2. Enter Operating Hours, optional Map Link, and official Facebook, YouTube, Instagram, or External Website URLs (must start with https://).
  3. Toggle which sections appear publicly on your microsite:
    • show_prayer_times, show_announcements, show_activities, show_committee, and show_location_map.

3. Editing Trilingual Microsite Content (BM, EN, AR)

  1. Switch between the Bahasa Melayu, English, and العربية language tabs.
  2. Complete the Tagline, Short Introduction, Mosque History, Vision & Mission, and Contact Notes for each language.
  3. Check the Translation reviewed box once verified and click Save.
Mosque Microsite Branding, Logo, Cover Image, Theme, and Settings (/mosque-admin/website).
Mosque Microsite Branding, Logo, Cover Image, Theme, and Settings (/mosque-admin/website).

Input Fields & Options Reference

Setting FieldDatabase TableValidation & Constraints
logo & covermosque_mediaAllowed MIME: image/jpeg, image/png, image/webp; max 3 MB.
theme_accentmosque_settingsAllowed values: emerald (default), teal, blue, maroon.
facebook_url, etc.mosque_settingsMust be valid https:// URLs up to 255 characters.
tagline, short_intro, history, vision_missionmosque_translationsStored per language (ms, en, ar).
Expected Results: The public mosque microsite `/masjid/{slug}` immediately reflects the updated logo, cover photograph, theme accent, visible tabs, and trilingual descriptions.
Important Notes & Data Boundaries: Uploaded media files are stored outside the public web root in `storage/mosque-media/{mosque_id}/` and served securely via `/media/mosque?id={media_id}`.

Common Errors & Troubleshooting

If an external social or map URL is rejected, ensure it starts with https:// (plain http:// URLs are rejected for security).

SEC-05D · Section 5: Mosque Registration and Management ✓ Fully Implemented

Managing Mosque Committee Members (AJK), Announcements, Articles, Events & Gallery

Step-by-step instructions for managing the Mosque Committee (AJK) directory at /mosque-admin/committee, announcements at /mosque-admin/announcements, and articles/events/galleries at /mosque-admin/editorial.

Purpose of Function Enable mosque administrators to publish their committee roster, community announcements, educational articles, and photo galleries on their microsite.
Prerequisites Signed in as `mosque_admin` with an active subscription.
Required User Permissions Mosque Scope: mosque.manage & mosque.publish + Active Subscription

1. Managing Mosque Committee Members (/mosque-admin/committee)

  1. Navigate to /{lang}/mosque-admin/committee.
  2. In the committee member form:
    • Enter the member’s Name (max 150 chars), optional Public Contact, and numeric Sort Order, and check Active.
    • Enter the Role Title in Bahasa Melayu, English, and Arabic (e.g., Pengerusi / Chairman / رئيس اللجنة).
  3. Click Save. The committee roster appears publicly at /masjid/{slug}/committee.

2. Publishing Mosque Announcements (/mosque-admin/announcements)

  1. Open /{lang}/mosque-admin/announcements.
  2. Select the Status (draft, published, or archived), set the Publish Date, and optionally check Pinned.
  3. Enter the Title, Summary, and Content across the BM, EN, and AR tabs, then click Save.

3. Managing Articles, Events & Photo Galleries (/mosque-admin/editorial)

  1. Open /{lang}/mosque-admin/editorial and choose the content type tab: Announcements, Articles, Events, or Gallery.
  2. Set the Status, upload a Cover Image (and up to 12 album photos for Gallery items), complete the trilingual fields, and click Save.
Mosque Committee (AJK) management (/mosque-admin/committee), Announcements, and Editorial Content.
Mosque Committee (AJK) management (/mosque-admin/committee), Announcements, and Editorial Content.

Input Fields & Options Reference

Content ModuleAdmin RoutePublic Microsite Route
Committee Directory (AJK)/mosque-admin/committee/masjid/{slug}/committee
Mosque Announcements/mosque-admin/announcements/masjid/{slug}/announcements
Articles, Events & Galleries/mosque-admin/editorial/masjid/{slug}/articles, /events, /gallery
Expected Results: Committee members, announcements, articles, events, and photo galleries are published in BM, EN, and AR on the mosque microsite.
Important Notes & Data Boundaries: All rich editorial bodies are server-side sanitized before storage.

Common Errors & Troubleshooting

If a saved item does not appear on the public microsite, verify that its status is published and that the corresponding visibility toggle is enabled in /mosque-admin/website.

SEC-05E · Section 5: Mosque Registration and Management ✓ Fully Implemented

Managing Mosque Administrators, Workspace Staff & Tenant Isolation (/mosque-admin/members)

How to assign, update, or deactivate Mosque Administrators, Editors, and Workspace Members at /mosque-admin/members, including last-Mosque-Admin protection and multi-tenant isolation rules.

Purpose of Function Allow Mosque Administrators to delegate workspace access to authorized mosque staff while enforcing strict tenant isolation.
Prerequisites The target user must already have an account in the `users` table.
Required User Permissions Mosque Scope: mosque.manage (/mosque-admin/members)

1. Assigning a User to the Mosque Workspace (/mosque-admin/members)

  1. Sign in as mosque_admin and open /{lang}/mosque-admin/members.
  2. In the assignment form:
    • Enter the existing user’s Email address.
    • Select the Mosque Role: Mosque Admin (mosque_admin), Mosque Editor (mosque_editor), or Mosque Member (mosque_member).
    • Select the Status (active or inactive).
  3. Click Save. The assignment is stored in mosque_users for the active mosque_id.

2. Last Mosque Administrator Safeguard

The system prevents demoting or deactivating the last active mosque_admin for a mosque. Always assign and activate a replacement mosque_admin before removing or downgrading the existing administrator.

3. Multi-Tenant Independence & Data Boundaries

  • Role grants in mosque_users apply exclusively to the specified mosque_id.
  • Each mosque tenant can access only its own profile, microsite, activities, kariah areas, kariah members, and billing records.
Managing Mosque Administrators, Editors, and Workspace Staff (/mosque-admin/members).
Managing Mosque Administrators, Editors, and Workspace Staff (/mosque-admin/members).

Input Fields & Options Reference

FieldAllowed ValuesDescription
emailRegistered user emailMust match an existing account in the users table.
role_idmosque_admin, mosque_editor, mosque_memberOnly scope = 'mosque' roles are accepted.
statusactive / inactiveControls whether the assignment is active for this mosque.
Expected Results: The user role assignment for the mosque is updated in `mosque_users` and logged in `audit_logs` (`mosque.user.assigned`).
Important Notes & Data Boundaries: Note the distinction: `/mosque-admin/members` manages administrative workspace users (`mosque_users`), whereas `/mosque-admin/kariah-members` manages community kariah membership (`kariah_members`).

Common Errors & Troubleshooting

If you see "Unable to assign that user and role", verify that the email exists in users and that at least one active mosque_admin remains assigned to the mosque.