Finally, you can change the forum icons to the one you like!

🚀 Installation

To download the extension you can use Bazaar or install it through composer:

composer require fajuu/flarum-icons

✨ Demo

Screenshot from forum:

Screenshot from admin:

👋 A few words from me

I would like to apologise because I said that enlargement would be ready sooner.
In any case, the extension is ready and will certainly be used in many forums 😃
I would also like to thank @clarkwinkelmann for helping me to solve a minor error.

🔗 Links

📝 License

Copyright © 2019 Fajuu.
This project is MIT licensed.


Extension created by @Fajuu, the owner of My Kill

    Very nice extension. 🙂 Will certainly make replacing forum icons clearer, and easier to modify or revert changes afterwards.

    I would also suggest adding some default, demo changes (maybe disabled?) to your extension's main page, so that people can see and try how it works. One may get a little bit confused by just looking at it. 😆

      Artuu it took me a few minutes to see what you changed in your first screenshot; I'd suggest changing all icons on the frontpage to very unusual ones, that makes it easier to understand the power of your extension.

      Great job by the way, nice one.

        Nice extension ? you covered some usages here.. Might i add a couple small things to the first file i opened?

        https://github.com/Fajuu/flarum-icons/blob/master/js/src/admin/components/IconCreate.js
        You should probably move the createRecord method into the component init(), also things like this are probably error-prone:

        id: m.prop(0),
        elementPath: m.prop(null),

        Your defined migration script doesn't define element_path as nullable, so this will fail for some users trying to install. Since you aren't loading any saved data in the eloquent model you should probably just go with something like

        this.newIcon = app.store.createRecord('icons');

        and then call the save method in your button listener, which you should probably also use conventional means like:

        e.preventDefault();
        this.loading = true;
        this.newIcon.save ( ...

        And maybe not best to set is_active column to default as true with null values? ` Can't imagine why any blank attributes would be enabled

        (if i could) i would mark this as incompatible wiith breaking changes in its migrations + model access alone (havent looked further)

          Veriael I know, that's why I created the default icon function. So that every user can see how it works. Just click on the Import icons and Restore the default icons.

          luceos Oh, thank you! No problem, I'll change it right away. There is a very nice style Font Awesome Duotone that I'm going to use for screenshots.

          cmcjacob I see what you mean. Thank you for the hint, but I don't know if this is required. If you think so, you could modify my code and send it to github?

          Nice extension!

          Any particular reason why you used so many "#" signs in your code? IDE/Editor issues? 🤔

            Thanks! Great to have your extension to make Flarum's frontend even more customizable. Cheers 😆

            9 days later

            For what is Import Icon used? For importng icon images or for loading in more settings?
            Nevermind I see 😛 great extension!

            7 days later

            Update 0.1.1 🏷️


            🔨 Added

            • Loading animation for: import, export, create and delete items.
            • Link to Font Awesome in the text on the homepage.

            🐛 Fixed

            • Create and edit elements.

            🚀 Updating

            composer update fajuu/flarum-icons
            php flarum cahce:clear


            cmcjacob I applied the solution you proposed. I hope that is what you meant.

            9 days later

            Update 0.1.2 🏷️


            ⚡ Improved

            • Icons demo.

            🐛 Fixed

            • Validator original_icon.

            🚀 Updating

            composer update fajuu/flarum-icons
            php flarum cahce:clear


            Extension created by @Fajuu, the owner of My Kill

            5 months later

            Great idea for extension. But unfortunately, pressing the create button does not always create a new field. it just zeroes the fields and everything - with no error message. Also, the already created fields disappear when you add the new one (sometimes)... it is also unclear what level the selector nesting is required.

            3 months later
            jordanjay29 changed the title to Icons by Artuu .
            4 months later

            Hello. Can u help me please?
            I can't install, because of this
            Your requirements could not be resolved to an installable set of packages.

             Problem 1
                - Installation request for fajuu/flarum-icons ^0.1.2 -> satisfiable by fajuu                                                                                                                                                             /flarum-icons[0.1.2].
                - Conclusion: remove flarum/core v0.1.0-beta.13
                - Conclusion: don't install flarum/core v0.1.0-beta.13
                - fajuu/flarum-icons 0.1.2 requires flarum/core >=0.1.0-beta.10 <0.1.0-beta.                                                                                                                                                             12 -> satisfiable by flarum/core[v0.1.0-beta.10, v0.1.0-beta.11, v0.1.0-beta.11.                                                                                                                                                             1].
                - Can only install one of: flarum/core[v0.1.0-beta.10, v0.1.0-beta.13].
                - Can only install one of: flarum/core[v0.1.0-beta.11, v0.1.0-beta.13].
                - Can only install one of: flarum/core[v0.1.0-beta.11.1, v0.1.0-beta.13].
                - Installation request for flarum/core (locked at v0.1.0-beta.13, required a                                                                                                                                                             s ^0.1.0) -> satisfiable by flarum/core[v0.1.0-beta.13].
            
            
            Installation failed, reverting ./composer.json to its original content.

            As reported by TOWUK above the extension currently can't be installed on beta 13.

            I'm going to add the incompatible tag until the author fixes it.