[Mods] Clubs

Started by Deaks, Nov 19, 2026, 05:09 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Deaks

Clubs 1.1.5
by BoredSkull for SMF 2.1.x · ISC licence

Member-created spaces inside your forum, inspired by Invision Community's Clubs. Unlike membergroups, clubs are run by members: they start clubs for their interests, choose leaders, approve applications, hold private discussions, and share media and events. Hooks only, with no core or theme edits.



Built on SMF itself
Each club is a real SMF board (or several) in a "Clubs" category, with its own hidden membergroup. The mod keeps board access, permissions and moderators in step with the club's type and roles. So club discussions get everything SMF offers (topics, replies, attachments, polls, likes, search, notifications, drafts, moderation tools), and SMF enforces privacy everywhere: recent posts, search, feeds, the calendar and other mods.

Club types
  • Open: everyone can see the club and its posts. Anyone can join.
  • Closed: everyone can see the club and who's in it, but only members see posts. Members join by request.
  • Private: only members can find the club. Members join by invitation.
  • Read only: everyone can read, and only leaders post. Members join by invitation.

Roles
Owner, leaders and members. Leaders automatically become moderators of the club's boards. They approve or deny requests, invite members by name, remove or ban members, add extra boards, create events and edit the club. Only the owner can appoint leaders, change the club type, choose whether guests can see the club, transfer ownership or delete the club.

Each club has
  • Overview: description, latest discussions, upcoming events, leaders, newest members and stats
  • Discussions: the club's own board, plus optional extra boards
  • Members: roles, requests with messages, invitations and bans
  • Media: a gallery of every image shared in the club's discussions
  • Events: events in SMF's calendar with RSVP (going, maybe, not going). Each event gets a discussion topic.
  • Manage: name, description, type, visibility to guests, colour, icon, boards, ownership transfer and deletion
A colourful club banner with tabs also appears above the club's boards and topics.

Alerts
Join requests (to leaders), approvals and refusals, and invitations.

Admin
Admin > Configuration > Clubs: which types members can create, approval of new clubs, clubs per member, extra boards per club, guest reading, global moderator access to private clubs, events, alerts, and hiding the club boards from the board index. The list of all clubs lets you approve, delete and repair access.
New permissions: View clubs, Join clubs, Start clubs and Manage all clubs.

Uninstalling
Removing the mod's data keeps the club boards, their topics and the club membergroups as normal SMF boards and groups, so no posts are lost.

Requirements
SMF 2.1.x and PHP 7.0+. GD is needed for club icons. Events need SMF's calendar turned on.



New in 1.1.5
  • Guests or members only: when creating a club, the owner can now choose whether it's visible to guests as well, or only to logged-in members. A members-only club is left out of the clubs list for guests, its boards are hidden from them, and a guest following a link to it is asked to log in. The owner can change this later under Manage.
  • The admin setting "Guests can read open and read-only clubs" still applies to every club. If it's off, guests can't read any club, whatever the club's own setting.
  • Upgrading keeps every existing club visible to guests, as before.

New in 1.1.4 (fixes)
  • Deleting clubs and extra boards: members with Manage all clubs can now delete clubs and boards they can't see. SMF's board deletion had the same hidden-board problem that 1.1.3 fixed for creation, and could stop with an error.
  • Upgrading from 1.1.1 or older no longer stops with an error. During the upgrade the package manager still has the old Clubs code loaded, so the data repairs now finish on the Clubs admin page it sends you to.
  • No duplicate boards: the 1.1.3 repair now reuses the empty board a failed club creation left behind, instead of making a second one.
  • The 1.1.2 membership repair no longer uses a MySQL-only query, so it also works on PostgreSQL.
  • Topic, media and event titles on club pages now use the forum's word censoring.
  • Ban group and permission profile names are now stored escaped, the same way SMF stores its own.
  • Fixed the 1.1.2 and 1.1.3 notes in this readme not displaying as lists.

New in 1.1.3 (fix)
  • Club creation for regular members: SMF's board tree must include the newly inserted board while the forum's createBoard/modifyBoard operation is running. Temporarily use the full tree inside this trusted operation, then restore the user's normal visibility rules. This prevents the misleading "The board you specified doesn't exist" error and incomplete club boards.
  • Existing affected clubs: the upgrade restores missing main boards for active club entries which were left without a board by the failed operation. No existing club boards or posts are deleted.

New in 1.1.2 (fixes)
  • Club creator access: clear SMF's cached membergroup data when a new club is activated, so the owner can open its board immediately.
  • Joining and leaving: clear the affected member's cached groups after approvals, invitations, joining, leaving and bans, so access changes are reflected on the next request.
  • Extra board access: sync newly added sub-boards with the club's current visibility and ban settings.
  • Upgrade repair: fix missing group assignments for active club members and refresh their cache entries. Existing club boards, members and posts are preserved.

New in 1.1.1 (fix)
  • Board visibility is now always applied: SMF 2.1 decides who can see a board from its board_permissions_view table. Clubs now updates it together with the board's access list, so changing a club's type, banning, and the guest setting take effect straight away. Before, a club changed from open to private (or closed) after it was created could stay readable by everyone. Upgrading fixes the visibility of every existing club.

New in 1.1.0 (fixes)
  • Club permissions are separate: each club now has its own permission profile ("Club: name" in Admin > Permissions). In 1.0 all clubs shared one, so joining one club let you post in other public clubs, including read-only ones.
  • Read-only clubs: only leaders can add events, because each event starts a discussion topic.
  • Bans now work on the boards too: a banned member goes into a hidden "Banned from club" group that is denied access to the club's boards (this switches on SMF's "deny board access" option). An admin setting lets banned members keep reading open clubs instead. They can't post either way.
  • Icons: the old icon is only deleted after the club has been saved, and an upload from a form with errors is cleaned up.
  • Moderators: Clubs only adds and removes the moderator entries it created. Moderators an admin assigns to club boards are left alone.
  • Guests aren't shown club content when guest reading is turned off.
  • Upgrading keeps every club, board, member and post.
  • 0 reactions

    Members who reacted


Old Mellow

When social media started taking over more than forums, I've always thought that things like this would help bring them back. My problem is I wasn't sure how to do it and am not good enough at coding.
  • 0 reactions

    Members who reacted


Deaks

v1.1.4
  • Fixed: members with "Manage all clubs" can now delete clubs and extra boards they can't see. SMF's board deletion had the same hidden-board problem 1.1.3 fixed for creation, and could stop with an error.
  • Fixed: upgrading from 1.1.1 or older no longer stops with an error. The data repairs now finish on the Clubs admin page the Package Manager sends you to.
  • Fixed: the 1.1.3 repair no longer creates duplicate boards. It reuses the empty board a failed club creation left behind.
  • Fixed: the 1.1.2 membership repair now works on PostgreSQL as well as MySQL.
  • Fixed: topic, media and event titles on club pages now use the forum's word censoring.
  • Fixed: ban group and permission profile names are now stored the same way SMF stores its own.
  • Fixed: the 1.1.2 and 1.1.3 readme notes now display as lists.
  • Upgrading: install over any version from 1.0.0 to 1.1.3 with the Package Manager. Clubs, boards, members and posts are kept.
  • 0 reactions

    Members who reacted


Pit

Hello
It would be nice if club forums in the forum directory weren't just displayed at the top,
but if you could choose whether to display them at the top or the bottom.
Another thing would be that when you create a new club, you could choose whether the club is visible to guests as well or only to members.
Otherwise, I really like this mod.
  • 👍 1

    Members who reacted


Deaks

Welcome, if your on about the clubs been shown on board index, you can move the boards in normal manage boards index.php?action=admin;area=manageboards

Screenshot.png

As for guest access, i will look into it for next update :)
  • 0 reactions

    Members who reacted


Pit

It's the simplest things you realize last.
Thank you.

  • 0 reactions

    Members who reacted


Deaks

New in 1.1.5

  • Guests or members only: when creating a club, the owner can now choose whether it's visible to guests as well, or only to logged-in members. A members-only club is left out of the clubs list for guests, its boards are hidden from them, and a guest following a link to it is asked to log in. The owner can change this later under Manage.
  • The admin setting "Guests can read open and read-only clubs" still applies to every club. If it's off, guests can't read any club, whatever the club's own setting.
  • Upgrading keeps every existing club visible to guests, as before.
  • 0 reactions

    Members who reacted