---Ring
---Turn
---Ray
---AhDo
---AhGo
---AhSa
---AhTa
---SaOnDo
Mathorian Kagodora
🔵 Wallet
Core Framework: Kagodora Engagement & Notification Suite

Core Framework: Kagodora Engagement & Notification Suite

May 15, 2026 | by | 0 comments

Membership engagement is key to keeping the kagodora growing designing a notification system that both tracts site activity and categorizes it fro display and distribution to members is the plan to procure, cultivate and maintain membership activity. Adding a membership message box or display board that notifies the member like the wallets displays points will also need to be created and added o the current code.

Core Framework: Kagodora Engagement & Notification Suite

We will build a single custom plugin (e.g., kagodora-engagement) that integrates with:

The plugin will provide:

  1. Member message board / private inbox (like a lightweight BuddyPress but without bloat).
  2. Points incentives for reading, sending, and helpful replies.
  3. Notification preferences – members choose which events trigger email vs. site‑only, or off.
  4. Admin activity log (enhanced from your PWA tracker) with notification rules.
  5. Front‑end shortcodes for inbox, activity feed, and settings.
  6. NASA API integration – daily image or event alerts sent as notifications.
  7. Abridged email notifications – “You have a new message – click to read on Kagodora.”
  8. Broadcast messages – members can spend points to send a message to all members (with admin approval optional).
  9. Points for reading messages – small reward per message opened.
  10. Points for helpful comments/replies – upvoting or marking as helpful gives points.

1. Database Tables (custom, minimal)

We’ll create three custom tables:

Table NameFieldsPurpose
wp_kagodora_messagesidsender_idrecipient_id (0 = all members for broadcast), subjectcontenttype (private, broadcast, system), points_coststatus (unread, read, deleted), created_atread_atStore all messages (private & system notifications)
wp_kagodora_message_metaidmessage_idmeta_keymeta_valueFor likes, helpful flags, etc.
wp_kagodora_user_preferencesuser_idpref_key (email_notify, site_notify, events_list), pref_value (JSON or serialized)Store notification settings per user

Alternatively, we can use WordPress user meta for preferences (simpler), but custom tables are cleaner for high volume.


2. Points Integration (myCRED Hooks)

We will create custom myCRED hooks for:

All point transactions will be logged with a reference like kagodora_message_read_{message_id}.


3. Notification Types & User Preferences

Users will be able to choose, per event type, how they want to be notified:

Events to include:

EventTriggerDefault Setting
New private messageSomeone sends them a messageBoth
Broadcast messageAdmin or user‑sent broadcast to allSite inbox only (to avoid spam)
New post/page/productWordPress publish actionOff (admin can enable for all)
New user registrationuser_register hookOff
New comment on their postwp_insert_commentBoth
NASA daily imageDaily cron fetchOff (user must opt in)
Admin announcementAdmin creates via pluginBoth (forced for important)

Preferences stored in wp_kagodora_user_preferences as JSON.


4. Frontend Shortcodes & UI

ShortcodePurpose

Please log in to view your inbox.

Displays user’s message inbox, with tabs for unread/read/sent. Includes reply, mark as read, delete, and “broadcast” button (if user has enough points).
[kagodora_activity_feed]Shows a global feed of recent site activities (new posts, broadcasts, etc.) – similar to the admin dashboard but public.

Please log in.

Form for users to adjust their per‑event preferences.
[kagodora_points_summary]Display current points balance and recent transactions related to messaging.

All shortcodes will be fully responsive and work inside the existing Kagodora PWA.


5. Admin Settings Panel

A new sub‑menu under Kagodora → Engagement with:


6. Email Notifications (Abridged Strategy)

Email will be a teaser, not the full content. Example:

Subject: New message on Kagodora from @JohnDoe
Body:
You have a new message in your Kagodora inbox.
Subject: “Meetup tomorrow?”
Snippet: “Hi, would you like to meet tomorrow at the…”
👉 Read full message and reply on Kagodora

This drives traffic back to the site, preserves engagement, and reduces email complexity.


7. NASA API Integration

We will create a scheduled event (once daily) that fetches:

The notification will be a special type = 'nasa' message in the inbox, with a link to the NASA site and an image embed (if PWA supports).

Users can toggle this preference in their settings.


8. Points for Reading & Helpful Replies

We’ll use myCRED’s mycred_add function.


9. Workflow for Broadcast Messages (Cost Points)


10. Integration with Existing Plugins


Implementation Phases (After Agreement)

PhaseDeliverablesEstimated Code Lines
1Database tables, activation, uninstall150
2Basic message CRUD (private messaging) with shortcode 

Please log in to view your inbox.

400
3Points hooks (read, send broadcast)150
4User preferences UI and saving200
5Email notifications (using wp_mail with custom template)100
6Admin settings panel and broadcast approval system200
7Activity feed shortcode [kagodora_activity_feed] (from WordPress events)150
8NASA API integration (daily cron)100
9Points for helpful replies (like system)100
10Full testing, documentation, and refinement

Total ~1550 lines of clean, documented PHP/JS.

Leave a Reply

Your email address will not be published. Required fields are marked *