FrontPage by FriendsOfFlarum

License Latest Stable Version OpenCollective

Extiverse

A Flarum extension. Push discussions to the front of your Flarum forum index!

Installation

Using composer:

composer require fof/frontpage

Updating

Using composer:

composer update fof/frontpage
php flarum cache:clear

Screenshots







Features to Add by Fixer112

  • Added a "FrontPage" sort order option for discussions marked as "FrontPage".
  • Add an option to add FrontPage as the default sort order on the index page.

Features to Add by Friends of Flarum

  • Add "Push to FrontPage" and "Pull from FrontPage" discussion controls to IndexPage instead of post controls (should behave like the Sticky extension).
  • Refactor to add redraw() functionality to dynamically update the DOM after the push/pulls
    buttons are clicked on so no page refresh will be needed.

Links

OpenCollective

An extension by FriendsOfFlarum, revival requested by...a VERY eager client!!

    0.1.1

    • Added better screenshots to README.

    Updating

    composer update fof/frontpage

      Is this a way to permanently stick a discussion at top, but only in the "All Discussions" page? It's not very clear, honestly 🤔

        matteocontrini this extension is designed with the intention that in the near future, a feature will be added where you can make the default sort order only list those discussions marked as “FrontPage” by setting the default home page to this custom filter 🙂

        This is not a “Super Sticky” extension.

          Ralkage Wow, this idea is very good. It would be better if the default homepage has more layout styles.

          Quick question.

          Would it be possible to hook this into FoF Pages? In the sense that I would be interested in a custom "featured posts" page, which contains the posts marked for "front page" by this addin.

          Hope that that makes sense! 🙂

          Sorry, I think I may have encountered some problems.

          Error booting Flarum: Class FoF\FrontPage\Listeners\AddFrontpage does not exist

          My php version is 7.2

            t00r make sure you installed the extension. Otherwise delete the vendor folder and run composer install again.

              0.1.2

              • Capitalized "Page" in AddFrontPage.php (Thanks, @OrdinaryJellyfish, for noticing and submitting this PR!)
              1. You'd figure PHPStorm would have picked this up.
              2. You'd figure my eyes would have picked this up.
              3. You'd figured my own local install would have picked this up.
              4. But nope 😂

              That's why it's always recommended to have a second pair of 👀 to look at your work every now and then.

              Updating

              composer update fof/frontpage

              You know the drill folks!

                luceos yessir, would make the switch to Linux but most of what I do at home and at work constitutes constant Windows OS usage ⚰️

                Edit: Just understood your Discord DM to me, so much for me being a Windows OS pleb and not knowing about case-sensitive development 🤦 🤣

                New motto: "You live, you learn, you get RIGGITY REKT".

                0.1.3

                • Added "Push to FrontPage" and "Pull from FrontPage" to DiscussionControls instead of PostControls because this extension pushes Discussions (NOT POSTS) to the "FrontPage" ❤️

                Updating

                composer update fof/frontpage

                  So to understand this (Might be a dumb question)
                  Is this some kind of a "Featured Discussion"?

                  I think the name "FrontPage" confuses me

                    randomphp yes, this extension basically allows you to push/pull discussions from the new sort order option that is added. This is an extension revival, thus, tlc will be needed in all aspects. The reason why I didn't change the name of this extension entirely is because:

                    1. I want to respect the original dev's work.
                    2. I want people to know this is an extension revival and not a true "fork".
                    3. That I have plans to add the home page option that was mentioned in the original README.

                    When number 3 gets addressed and added, this extension would have served its true purpose which to put it simply is to say that it will act like a "controlled content" forum index view.