Tags Color Generator

GitHub Packagist Version

Images

Install

composer require nearata/flarum-ext-tags-color-generator:"*"

Update

composer update nearata/flarum-ext-tags-color-generator:"*"
php flarum cache:clear

Remove

composer remove nearata/flarum-ext-tags-color-generator
php flarum cache:clear

Links

    Version 1.1.0 - 2020-08-07


    Added

    • Luminosity options
      • Random
      • Light
      • Bright
      • Dark
    • Hue options
      • Random
      • Red
      • Orange
      • Yellow
      • Green
      • Blue
      • Purple
      • Pink
      • Monochrome

    Updated

    • Translations

    I LOVE seeing useful utilities just like these 💗 keep up the amazing work!!

    2 months later

    Love it! One thing, though ... it would be awesome if you could change the text color as well, in addition to the background color. Currently, the text is always white, which won't always work. For example, the yellow looks awesome in the sidebar for the button color, tag label, icon, etc. But then, there's that Hero bar at the top 🙂

    Version 1.2.0


    Updated to beta 14

    5 months later

    1.3.0

    • Added ability to customize tags text color.
    composer update nearata/flarum-ext-tags-color-generator
    php flarum cache:clear
    php flarum migrate

    @sburkett

    • [deleted]

    Thanks for update! 👍

    Nearata
    It's not working for me. I just installed latest flarum (no upgrade, fresh install). Creating tags modal does not have generate random color button

    • [deleted]

    Stupid question perhaps, but have you enabled the extension ?

      [deleted] Yes, it is enabled. You can see the green circle next to it on the left bottom side of the screenshot I shared. I tried turning it off and on, didn't help.

      Composer.json require section

      "require": {
      "flarum/approval": "^0.1.0",
      "flarum/bbcode": "^0.1.0",
      "flarum/core": "^0.1.0",
      "flarum/emoji": "^0.1.0",
      "flarum/flags": "^0.1.0",
      "flarum/lang-english": "^0.1.0",
      "flarum/likes": "^0.1.0",
      "flarum/lock": "^0.1.0",
      "flarum/markdown": "^0.1.0",
      "flarum/mentions": "^0.1.0",
      "flarum/nicknames": "^0.1.0",
      "flarum/pusher": "^0.1.0",
      "flarum/statistics": "^0.1.0",
      "flarum/sticky": "^0.1.0",
      "flarum/subscriptions": "^0.1.0",
      "flarum/suspend": "^0.1.0",
      "flarum/tags": "^0.1.0",
      "marketplace/flarum-l10n-core-russian": "^0.1.0@beta",
      "nearata/flarum-ext-tags-color-generator": "^1.4"
      },

        • [deleted]

        arman did you clear the cache ? php flarum cache:clear

          [deleted] I just ran php flarum cache:clear and it completely broke my site. I ran it from the directory where composer.json is located. When I go to my site, it returns 500 now, tried restarting nginx, still broken.

            • [deleted]

            • Edited

            arman what permissions are set for storage/cache ? This happens to me all the time and it's usually because the permissions are incorrect. They need to match that of the user your nginx runs under.

            Anything in storage/logs ?

              [deleted] You were right, it was a permissions issue. sudo chown -R www-data:www-data /path/to/flarum fixed the 500 as well as the extension (can generate random colors now). Thanks for the help!