lichengkun135 that's not a feature of the extension at this time.
FriendsOfFlarum Follow Tags
Version 1.1.7
- Specify which table to select data from in join query by @iPurpl3x in FriendsOfFlarum/follow-tags55
I enabled fof/follow-tags, but I don't see a way follow a tag. There's no Follow
button/dropdown on any of my tag pages. Any ideas?
What is the difference between "Following: be notified of all new discussions", and, "Lurking: be notified of all new discussions and replies" ?
They sound quite the same, so what new functionality does this extension add?
1.2.0
What's changed?
- feat: extensible subscriptions by @IanM in FriendsOfFlarum/follow-tags63
- Introduces a new extensible
SubscriptionModal
to select the tag subscription options, in place of the old menu. - Added a new event
SubscriptionChanging
, which developers can listen for in order to extend the subscription behaviour - Removes
SubscriptionMenuItem
andSubscriptionMenu
- Introduces a new extensible
Screenshot
Updating
composer update fof/follow-tags
php flarum cache:clear
IanM This is broken on mobile: FriendsOfFlarum/follow-tags64
- Edited
rafaucau I use css some solved steps..
@media (max-width: 767.98px) {
.App--index {
/**Enable Search Menu Mobi**/
& .Header-controls {
& .item-search {
display: block !important;
}
}
/**Enable Follow Mobi **/
& .item-subscriptionButton {
& .SubscriptionButton {
width: auto !important;
right: 10%;
margin-top: 5px !important;
}
}
/**Disable Icon checkin**/
& .item-forum-checkin-1 .App-primaryControl {
display: none;
}
}
}
}
OR
@media (max-width: 767.98px) {
.App--index {
/**Enable Search Menu Mobi**/
/**Enable Follow Mobi **/
& .item-subscriptionButton {
& .SubscriptionButton {
margin-top: 5px !important;
}
& .App-primaryControl {
top: unset !important;
position: relative !important;
border-radius: 4px;
flex: 1;
padding-left: 20px;
padding-right: 20px;
}
}
/**Disable Icon checkin**/
}
}
- Edited
Depending on how the icon is displayed, you should adjust it like this to make the icon look beautiful
@media @phone {
.IndexPage-nav {
& .SubscriptionButton {
background: transparent;
width: auto;
height: var(--header-height-phone);
right: 35px;
i {
font-size: 20px;
display: block;
margin: 0;
}
.Button-label {
display: none;
}
}
}
}
Located on the Discussion button
@media @phone {
.App--index {
/**Enable Search Menu Mobi**/
/**Enable Follow Mobi **/
& .item-subscriptionButton {
& .SubscriptionButton {
margin-top: 5px !important;
}
& .App-primaryControl {
top: unset !important;
position: relative !important;
border-radius: 4px;
flex: 1;
padding-left: 20px;
padding-right: 20px;
}
}
/**Disable Icon checkin**/
}
}
- Edited
Thanks for coming up with a solution for this. Feel free to PR it to the repository: FriendsOfFlarum/follow-tags
1.2.1
- fix: mobile SubscriptionButton styles by @rafaucau in FriendsOfFlarum/follow-tags66
Full Changelog: FriendsOfFlarum/follow-tags1.2.0 → 1.2.1
Updating
composer update fof/follow-tags
php flarum cache:clear
Hello,
Thank you for this superb application, which works wonders when coupled with email discussion lists (Sympa works very well together).
Only, I have a small problem when I want to change the translation string of flarum-mentions.email.user_mentioned.subject
If I leave the original value, the subject of the email is displayed correctly. But if I save a new value in FoF-Linguist (even for an identical value): the subject is displayed with a brace at the end -> }
Same problem for other character strings, for example with fof-follow-tags.email.body.newPostInTag, {recipient_display_name} {actor_display_name} (etc) are replaced by their value but surrounded by braces -> { }
Thank you very much & happy new year !
ToneLune I have run into this also already a couple of times. In the case of email translations within fof/follow-tags
you can just not include them, and it will still parse correctly. For these sorts of situations, you can always check out the Blade Templates and verify how it's being parsed; in your case it would be /resources/views/emails/newPost.blade.php
. Hope this helps!
- Edited
Hello, thanks for your help !
Unfortunately, I didn't quite understand how to resolve my problem with your instructions?
In /resources/views/emails/newPost.blade.php :
{!! $translator->trans('fof-follow-tags.email.body.newPostInTag', [
'recipient_display_name' => $user->display_name,
'actor_display_name' => $blueprint->post->user->display_name,
'discussion_title' => $blueprint->post->discussion->title,
'post_url' => $url->to('forum')->route('discussion', ['id' => $blueprint->post->discussion_id, 'near' => $blueprint->post->number]),
'post_content' => $blueprint->post->content,
]) !!}
What should I modify?
Edit : I simply modified the translation lines in the .yml file of my language pack (/vendor/flarum-lang/french/locale/fof-follow-tags.yml for me), everything is displayed correctly.
1.2.4
- Improve performance when loading the user's state for tags
- There's some instances when the data loaded by Flarum is not for the current user, and so the state is incorrect, needing another query to find the right one
- See FriendsOfFlarum/follow-tags72 and flarum/framework4007
- 1.2.2 Support GDPR export (FriendsOfFlarum/follow-tags69)
xhz588 you should disable PHP Warnings in production.