Fickle
Abandoned
Add a message, announcement, quote, whatever, towards the top of your Flarum forum, which is, well, fickle. It will show when someone first enters your forum, but as soon as they click on a post, it goes away and won't come back until a full page refresh is done. This means it is less annoying, yet will continually remind users about something important as they come back to the forum. Even then, it's small and not too much in your face. Unless you style yours that way.
There are no admin settings. The forum owner must update a text file manually (or via SSH - see "Pro-tip" below!). You will see which file to edit after you install/update and visit your homepage. If you dislike the idea of updating a text file, you could try my other announcement extension which is simply called, Announce.
Install
composer require zerosonesfun/flarum-ext-fickle-announcement
Update
composer update zerosonesfun/flarum-ext-fickle-announcement
- Also, clear your browser cache and cookies.
- Also, clear things like your cloudflare cache if you are using a service like that.
- Basically, clear everything after an upgrade.
Styling
You may add the following to your custom CSS and change colors to get a more official looking announcement:
#fickle {
padding: 10px;
background-color: #396A92;
color: #ffffff;
font-weight: bold;
border-radius: 5px;
}
Pro-tip!
You are already using command line to add and update extensions. Why not use that to update the fickle.txt file. This way it's a faster, less manual process.
Example (your path will start out differently):
cd home/assets/extensions/zerosonesfun-fickle-announcement/
Hit enter.
echo 'This is my announcement' > fickle.txt
Hit enter.
GitHub: https://github.com/zerosonesfun/flarum-ext-fickle-announcement
Packagist: https://packagist.org/packages/zerosonesfun/flarum-ext-fickle-announcement