Download the PHP package fof/follow-tags without Composer
On this page you can find all versions of the php package fof/follow-tags. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fof/follow-tags
More information about fof/follow-tags
Files in fof/follow-tags
Package follow-tags
Short Description Follow tags and be notified of new discussions and replies
License MIT
Homepage https://friendsofflarum.org
Informations about the package follow-tags
Follow Tags by FriendsOfFlarum
A Flarum extension. Follow tags and be notified of new discussions.
Features
- Follow, lurk, hide or ignore tags, and be notified of new discussions and replies.
- Optionally prompt new users to choose tags to follow after registration (off by default). The list of tags offered in the prompt is configurable, and the prompt can also be reopened from a button on the Following page.
- Optionally show all discussions on the Following page for guests, and offer the Following page as a homepage option (under Basics).
This extension includes the functionality previously provided by clarkwinkelmann/flarum-ext-follow-tags-prompt, and declares replace on that package so the two can never be installed at once. If you were using it, a regular composer update followed by php flarum migrate && php flarum cache:clear swaps it out and imports its settings and per-user state automatically; you can then remove the old package from your composer.json requirements with composer remove clarkwinkelmann/flarum-ext-follow-tags-prompt.
Screenshots
For developers
Other extensions can save their own fields alongside a user's tag subscription.
Backend. Users who cannot edit a tag may only send subscription when they PATCH /api/tags/{id}. To let them send your attribute with it, add the attribute to TagResource with a writable() check that refuses guests, then allow it:
Requests must still include subscription, and may not change the tag's own fields or relationships.
Events. FoF\FollowTags\Event\SubscriptionChanging is dispatched before a subscription is saved: listeners can change $event->state, and $event->request holds the request. FoF\FollowTags\Event\SubscriptionChanged is dispatched after it is saved.
Frontend. Extend requestData() on the subscription modal to send your attribute:
formOptionItems() is an ItemList for adding your own controls to the modal.
Installation
Install with composer:
Updating
Links
An extension by FriendsOfFlarum.