2017 © Pedro Peláez
 

flarum-extension canned-messages

Use bbcode to display custom and recurring messages

image

flagrow/canned-messages

Use bbcode to display custom and recurring messages

  • Tuesday, March 27, 2018
  • by clarkwinkelmann
  • Repository
  • 1 Watchers
  • 1 Stars
  • 165 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 217 % Grown

The README.md

Canned Messages by Flagrow logo Flagrow, a project of Gravure

MIT license Latest Stable Version Total Downloads Donate Join our Discord server, (*1)

This extension adds a new bbcode which will display predefined messages created by an administrator. The messages can be updated anytime in the admin panel and will immediately reflect the new content on the forum., (*2)

Installation

Use Bazaar or install manually:, (*3)

composer require flagrow/canned-messages

Updating

composer update flagrow/canned-messages
php flarum migrate
php flarum cache:clear

Configuration

You can add new messages under the "Canned Messages" tab of the admin panel. Each message has a unique key that must be inserted along with the bbcode. You can define a different content for different locales. The script will first try to find a message for the given key and locale, then the given key and no locale, and fallbacks to a default text if no message is found., (*4)

By default the extension uses the [CANNED-MESSAGE] bbcode, but you can change it to something else in the "advanced settings". Keep in mind this will break all existing canned messages using a different tag. If you want to use a custom tag name, better set it early., (*5)

Make sure to clear the forum cache with php flarum cache:clear and your browser cache after changing the tag name., (*6)

There are currently no usage permissions. Anybody can use any of the message keys in their posts., (*7)

Messages are not secret, the full list is loaded with the forum in order to provide the live preview. Anybody with knowledge of the Flarum data store can read the list of existing messages., (*8)

Support our work

We prefer to keep our work available to everyone. In order to do so we rely on voluntary contributions on Patreon., (*9)

Security

If you discover a security vulnerability within Canned Messages, please send an email to the Gravure team at security@gravure.io. All security vulnerabilities will be promptly addressed., (*10)

Please include as many details as possible. You can use php flarum info to get the PHP, Flarum and extension versions installed., (*11)

An extension by Flagrow, a project of Gravure., (*12)

The Versions

27/03 2018

dev-master

9999999-dev

Use bbcode to display custom and recurring messages

  Sources   Download

MIT

The Requires

 

extension bbcode messages flarum flagrow

27/03 2018

0.1.0

0.1.0.0

Use bbcode to display custom and recurring messages

  Sources   Download

MIT

The Requires

 

extension bbcode messages flarum flagrow