SetG
Private members-only community portal for the SETG EDO-team: assignments, trainings, documents, announcements, member profiles and contact.
by Shakib Shown · github.com/shakib6472/setg-edo-portal · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/shakib6472/setg-edo-portal/archive/refs/heads/main.zipSetG — EDO Community Portal
Private, members-only community portal for SETG's EDO-team, as a standalone WordPress plugin. Design: "Rustig" (light). UI language: Dutch.
Setup
- Activate the plugin (Plugins → SetG).
- Permalinks: Settings → Permalinks → choose Post name (or any non-Plain
option) and Save. This makes
/portal/work. (With Plain permalinks the portal is still reachable at/?edo_portal=1.) - The portal lives at
/portal/(and/portal/{view}). - TutorLMS powers the Trainingen tab — keep it active and add courses under Tutor LMS → Courses.
- Email uses
wp_mail(); make sure SMTP is configured on the server.
Roles & access
- Members have the EDO-lid role and need approval (
edo_approved) before they can enter the portal. Admins/editors always have access. - Approve members in Users → Goedkeuren (row action / column "EDO-toegang").
- Self-registration is on by default. To switch to invite-only:
add_filter( 'edo_registration_enabled', '__return_false' ); - Multiple roles per user: the user edit / Add New User screens show a
checkbox list of roles (replacing the single-role dropdown), so an admin
can assign several roles at once (Administrator included). Requires the
promote_userscapability.
Managing content (no code needed)
- *EDO · Opdrachten / Trainingen / Documenten / Mededelingen* in wp-admin. (Trainingen via TutorLMS courses.)
- Members who show interest in an assignment appear under EDO · Interesse (with one-click e-mail) and on the assignment's own edit screen.
- Assignment comments are standard WordPress comments (moderate via Comments).
Notifications
- Members are emailed when a new assignment or Tutor course is published.
- SETG (
admin_email) is emailed on new interest and new registrations. - Approved members get a welcome email.
- Contact-form messages go to
admin_email(filteredo_contact_recipientto change the address; the member's address is set as Reply-To).
Structure
setg-edo-portal.php— bootstrap.includes/— subsystems (EDO_*classes).templates/— front-end views (app shell, login, partials, views).assets/—css/portal.css,js/portal.js,js/admin.js, logo.ROADMAP.md— phased build plan.uninstall.php— removes the role on delete.