[Mod] Activity

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

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Deaks

Activity Stream v1.1.2
Catch up on new discussions, follow favourite contributors and build a timeline around the boards you read.

By BoredSkull
SMF 2.1.x | PHP 7.0 or newer | ISC Licence



What's been happening on your forum?

A member returns after a few days away. One of their favourite contributors has started a topic, an older discussion is picking up replies, and several people have liked a post they missed. Activity Stream brings all of that into one timeline, with a short preview so they can decide which conversation to open.

The timeline uses topics, replies, likes and registrations that SMF already stores, so members can browse existing activity as soon as the mod is installed. Entries are grouped by day, quoted text is stripped from post previews, and likes on the same item can be grouped into a single entry. Select Load More to keep reading.



What's new in v1.1.2?

  • Settings are easier to find. Activity Stream now lives under Admin → Configuration → Modification Settings → Activity Stream. Admin search can find it, and bookmarks to the old settings page redirect there.
  • Fixed an Activity profile error. Viewing a member's Activity page could trigger a database error if the viewer had anyone on their ignore list.
  • The timeline respects your forum's word censor. Censoring now applies to topic titles in both the timeline and the Popular list.
  • Popular respects the likes setting. When likes are switched off, they no longer count towards a topic's popularity.
  • Saved stream names keep their full text. Names containing an ampersand or quotation marks are no longer cut short when saved. Custom navigation button labels are also escaped correctly when displayed.
  • Your default stream is easier to manage. When you edit your default stream, Open this stream by default is already ticked. Untick it and save to return to All Activity as your default.
  • Clearer status messages. The follow-limit message now shows the actual limit, and Who's Online identifies visitors on the timeline as "Viewing the Activity Stream".
  • Direct upgrade from v1.1.1. The package also supports upgrades from v1.1.0 and v1.0.x.



Five ways to browse

  • All Activity brings together new topics, replies, likes, registrations and activity supplied by compatible mods. Each visitor sees only the activity they have permission to view.
  • Following shows contributions from the members you follow. Follow or unfollow someone from their Activity profile without reloading the page. Open People I Follow to search by name, manage your list, see who follows you or follow someone back.
  • Popular highlights discussions attracting replies and likes during a period set by the administrator.
  • My Activity puts your own contributions in one place, including posts and likes.
  • Custom Streams let you combine activity types, boards, people and a time period. Each saved stream gets its own tab, and you can choose which stream opens by default.

For example, on a mod support forum you could save a Support this week tab showing only new topics and replies from the support boards over the past seven days. You can still switch back to All Activity whenever you want the wider picture.



Permissions and privacy

The timeline respects board visibility, ignored boards and ignored members. Unapproved posts and recycle bin activity are excluded. Administrators can also leave selected boards out of every stream.

Two membergroup permissions control access:

  • View the Activity Stream controls who can open the timeline. Guests receive this permission by default on a fresh installation. Administrators can change it in SMF's membergroup permissions.
  • Follow Members and Build Activity Streams controls who can follow other members and create personalised streams.



Installation and configuration

  • Back up your forum files and database, then open Admin → Packages → Download Packages → Upload Package and upload the ZIP.
  • Choose Install Now for a fresh installation or Upgrade for a supported existing version. Upgrades preserve Activity Stream data and member preferences.
  • Open Admin → Configuration → Modification Settings → Activity Stream. Choose the activity types, items per page, Popular time period, excluded boards and navigation button settings.
  • Set how many custom streams each member can save. A limit of zero disables custom streams while retaining saved preferences for later use.

Activity Stream uses SMF integration hooks throughout. Installation requires no edits to SMF core files or existing theme templates.



Integration hooks for other mods

Compatible mods can add their own activity to the timeline. For example, a profile wall mod could register "Wall posts" as an activity type and supply entries when members publish them.

integrate_activity_stream_types(&$types)
integrate_activity_stream_fetch(&$items, $config, $before, $limit)

The first hook registers the activity type. The second supplies its entries. Return entries older than the supplied pagination cursor, newest first, up to the requested limit. Give each entry a stable key so items posted in the same second can be distinguished.



Earlier releases

  • v1.1.1 fixed the [tt]Undefined array key cannot_as_view[/tt] warning for guests without viewing permission. Activity Stream now loads its language strings before the permission check so SMF can show the access-denied message. Existing membergroup permissions are preserved.
  • v1.1.0 fixed custom stream name escaping in edit forms and made Load More reliable when several entries share a timestamp. Older pagination links still work. The release also improved handling of saved board exclusions and retained members' saved streams when administrators lowered the limit or disabled the feature.
  • v1.0.0 introduced the timeline, member following, custom streams, permission controls and integration hooks. No separate changelog was kept for the intervening v1.0.x releases.

  • 0 reactions

    Members who reacted


Deaks

Version 1.1.2
  • Settings moved to Admin > Configuration > Modification Settings > Activity Stream.
  • The settings can now be found with the admin search.
  • Old links and bookmarks to the previous settings page now go to the new one.
  • Fixed a database error on a member's Activity profile page when the viewer has anyone on their ignore list.
  • Topic titles in the timeline and the Popular list now use the forum's word censoring.
  • Popular no longer counts likes when likes are turned off.
  • Stream names with characters such as & or quotes are no longer cut short when saved.
  • A custom menu button label is now escaped when shown.
  • "Open this stream by default" is ticked when you edit your default stream, and unticking it goes back to All activity.
  • The "follow limit reached" message now shows the number instead of a placeholder.
  • Who's Online now shows "Viewing the Activity Stream".
  • Upgrading from 1.1.1 is now supported, as well as from 1.1.0 and 1.0.x.
  • 0 reactions

    Members who reacted