Synopsis by IanM

License Latest Stable Version

Extiverse

An extension which adds summary excerpts to the discussion list. This is essentially the same as jordanjay29's Summaries, with extra customisable options. If you don't need the extra options, I recommend using Summaries instead.

Features

As well as displaying an excerpt as a summary (with configurable length):

  • All display strings are translatable
  • Toggle between displaying plain or rich content in the summary (admin)
  • Choose from using either the first or latest post in the summary (admin)
  • User preference to show/hide summaries
  • User preference to enable summaries on mobile

Screenshots

Admin settings

image

Rich content in summary

image

User settings

image

Installation

composer require ianm/synopsis

Updating

composer require ianm/synopsis
php flarum migrate
php flarum cache:clear

Credit

Thank you to @[deleted] for helping test this proir to release, and for talking me out of the original name I was going to use!

Links

    IanM First of all thank you very much for yo have been contributing this forum ecosyststem. I would like to ask somethings. Does it effect user profile page? Can we excerpt posts on profile page? Some users and me share long text and I dont want to see all text when I visit the user's profile. Will be added am option for this at next releases?

      fakruzaruret

      I like the idea, though I don't know if it's suitable for this extension or a better fit for a new one. I guess a 'synopsis' could be as general as the author wanted to make it, and potentially control multiple areas where summary posts 'could' be used such as discussion preview, user profile (posts & discussions), and even best answer OR it each could be handled in each individual extension but I guess the behavior and display options between them might not necessarily be consistent. I'm with you though as I think the other areas mentioned would be a nice option to have excerpts for... for example have Best Answers be limited to a preview rather than full post as I find it to be a bit too in your face when the post could be any length (1000 chars in the second post is a lot! even more so when the first post is small and it doesn't look quite right), especially when you can simply click it to take you to the full post.

      @IanM

      Thanks for this extension, I saw the talk in the other thread about the last post option and also thought that would be a nice addition so this extension is going on my forum 🙂 The flarum team and yourself have delivered countless updates and extensions for the holiday season - thank you for the excellent work!!

      You will lose your user settings, but here's some CSS to ensure that the summaries show on mobile too even when logged out. The reason I then hide the new user settings is because this CSS forces the summary to be there no matter what on mobile, essentially breaking the user settings (well, the mobile setting but I hide both new settings because why have one and not the other...).

      If Flarum had something like a logged-out class in the body tag then this could be done without breaking the user settings.

      @media (max-width: 767px) {
      .DiscussionListItem-info .item-excerpt {
          display: block !important;
      }}
      .Settings-Summaries {
          display: none;
      }

      May be there is a bug. Summaries that of last entry disappear on frontpage when I click Load more button.

      21 days later

      ⚠️ 0.1.2

      • Addresses a security issue where active code could be rendered in the post preview

      I strongly recommend installing this update as soon as possible

      Updating

      composer require ianm/synopsis:^0.1.2
      php flarum cache:clear

        IanM I get css problem when first post preview on frontpage. Images overflows..


        Edit: I have solved by this CSS command

        .item-excerpt img {max-width: 100%}
          7 days later

          On this forum, the excerpt shows for only the first 5 discussions. How can we implement same in our forum.

            Ffuser1 They have summaries because of they are sticked. When you sticked a discussion, it will have summaries on homepage.

            6 days later

            @IanM

            FoF Formatting enebled.

            MediaEmbed — Embed content from allowed sites

            If first post is a video from youtube, it does not show <iframe>. Please add if possible.

            Also not working in mobile view. In settings it is on.

            21 days later

            No word on videos showing on Synopsis? How can I enable it manually? Any advice? Ive seen a link on this forum that had it working, i just cant find it.

              13 days later

              Anonymous43 I can confirm that YouTube embed does work. Two things needed for this:

              • Enable rich content in the extension settings
              • Increase the excerpt length to something like 500 characters

                0.1.3

                • Fix issue where excerpts did not show after clicking 'load more', switching between tags, etc and using lastPost as the display choice (@[deleted] )
                • Add CSS to prevent images overflowing when rich mode is used. Thanks @fakruzaruret
                Updating
                composer require ianm/synopsis:"*"
                php flarum cache:clear

                IanM Increase the excerpt length to something like 500 characters

                This DOES fixes the problem. But I really don't want for a non video post, to show 500 characters. Maybe it is, what it is. Thank you.

                  Anonymous43 Yeah, it's kinda 'all or nothing' at the moment. Perhaps in the future I'll look at a way to specify different excerpt lengths for different tags or something. Maybe a 'promote this content' option would work.

                  I'll give it some thought