7 days later
4 months later

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?

3 months later

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?

    mrXmr This is the feature about following a tag. "following" only notifies you for every new discussion in the tag you are followed. "lurking" notifies you every new discussions and every new posts under every discussions.

    4 months later

    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 and SubscriptionMenu

    Screenshot

    image

    Updating

    composer update fof/follow-tags
    php flarum cache:clear
      19 days later

      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**/
           
          }
      
      }

        Litalino

          @media @phone {
            .IndexPage-nav .SubscriptionButton {
              background: transparent;
              width: auto;
              height: var(--header-height-phone);
              right: 46px;
        
              i {
                margin-right: 0;
              }
        
              .Button-label {
                display: none;
              }
            }
          }

          rafaucau

          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;
                      }
                  }
              }
            }

          DEMO ICON

          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**/
               
              }
          }

          DEMO BUTTON

          • IanM replied to this.
            3 months later

            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!

              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.

              6 months later

              datitisev

              Warning: Attempt to read property "user_id" on null in exmaple.com/vendor/fof/follow-tags/src/AddTagSubscriptionAttribute.php on line 41

              I got this problem

                xhz588 Clark is correct - PHP warnings should be disabled in prod. But the report is still helpful.

                I've released v1.2.5 also addressing this.