NotKanboard is a Kanboard plugin that helps whitelabel Kanboard. It replaces "Kanboard" in page titles, outgoing emails, and a few other places with whatever custom string you set in NotKanboard's config.php file (and optionally a NotKanboard.config.json file in Kanboard's data/ directory).
NotKanboard has no settings page, since its strings live in config.php. This comment notification email shows "NotKanboard" in the "From" name and three times in the footer.
- Extract
NotKanboard.ziptoplugins/NotKanboard/in the Kanboard install. - Edit
plugins/NotKanboard/config.php(or copyNotKanboard.config.jsoninto Kanboard'sdata/directory and edit it there) and set each custom string. Delete or comment out a line to keep Kanboard's original string. - Reload PHP-FPM if opcache is on.
config.phpis cached like any PHP file, so edits don't show until it reloads.
The config file defaults to "NotKanboard" and https://notkanboard.org as an example, so change those right away. INSTALL.md covers conflicts and keeping your custom strings through an update.
| Key | Where it shows up | Kanboard default |
|---|---|---|
product_url |
Optional link target (http or https) for the sign-off name in task notifications and the password reset email | none |
sender_name |
"From" name on every email | Kanboard |
sender_name_via |
"From" name when a logged-in user triggers the email (%s is their name). Empty means always use sender_name |
%s via Kanboard |
footer_name |
Sign-off at the bottom of task and comment notifications | Kanboard |
footer_task_link |
"view the task" link in that footer | view the task on Kanboard |
footer_board_link |
"view the board" link in that footer | view the board on Kanboard |
invite_text |
First line of the invitation email | You have been invited to register on Kanboard. |
invite_link |
Text of the join link in the invitation email | Click here to join your team |
invite_footer_link |
Link text at the bottom of the invitation email | Kanboard |
password_reset_sign |
Sign-off on the password reset email | Kanboard |
password_reset_subject |
Subject of the password reset email | Password Reset for Kanboard |
invite_subject |
Subject of the invitation email | Kanboard Invitation |
plugin_directory_notice |
Warning on the Plugin Directory page when installs from the interface are off | Your Kanboard instance is not configured to install plugins from the user interface. |
remote_users_notice |
Note on a user's authentication page | Remote users do not store their password in Kanboard database, examples: LDAP, Google and Github accounts. |
page_title_prefix |
true puts sender_name in front of every browser tab title, as in "NotKanboard: Login". The page header doesn't change |
false |
A key left out of config.php (or optionally a NotKanboard.config.json file in Kanboard's data/ directory) keeps Kanboard's original string. A key set to your own custom string displays that way in every language.
- Two-factor app label: Kanboard's own
config.phpsets this, and no extra plugin is needed. Adddefine('TOTP_ISSUER', 'NotKanboard');or set theTOTP_ISSUERenvironment variable. It defaults to "Kanboard". - Calendar feeds: core iCal export hardcodes "Kanboard" as the feed's product ID with no hook, and NotKanboard can't change that. The calendar name itself is the Kanboard project or username.
- On the server where only a Kanboard admin can see it, strings are unchanged in the command-line tool name, the HTTP user agent, the database application name, and error log lines.
- Strings that another plugin adds to email (for example an "automated notification" line) aren't changed. Find which plugin is doing that and override it there.
- Replaces the
emailClientservice and three email templates, so it conflicts with any plugin that does the same. Be sure to check this on your server if you're using other email plugins. - With
page_title_prefixon, it also overrides thelayouttemplate. It wraps whatever layout was registered before it (core or a plugin like Customizer) and changes only the title, so the two will work together. A plugin that overrideslayoutlater in its ownonStartup()replaces the prefix. - The replacement
emailClientregisters only the smtp, sendmail, and mail transports, so load order matters. A plugin that resolvesemailClientbefore NotKanboard loads can hit Pimple's frozen-service error or lose its transport. Be sure to check this on your server if you're using other email plugins.
NotKanboard doesn't change any Kanboard core files or other plugin files. It replaces these at runtime:
| Part | Owner | How |
|---|---|---|
emailClient service |
Kanboard | Subclass (Client.php) whose getAuthorName() returns sender_name or sender_name_via. Registers core smtp, sendmail, and mail transports again |
notification/footer, user_invite/email, password_reset/email templates |
Kanboard | Template overrides |
layout template (only with page_title_prefix on) |
Kanboard, or a theme plugin such as Customizer that overrode it first | Wraps the registered layout and changes only $page_title |
| Translation table entries for the four subject and interface keys | Kanboard's translations | Replaced in onStartup(), only for keys set to something other than Kanboard's English |
TagAlong replaces the transports on NotKanboard's mail client after it loads, and NotifyMe reads footer_name and product_url for its own email footer.
NotKanboard works with several other plugins by the same author:
- NotifyMe emails you about your own actions in a project, adds a vacation mode, notifies users of failed login attempts, and gives admins control of how many notifications are shown in the Notifications menu. Its email footer uses NotKanboard's name when both are installed.
- TagAlong supercharges Kanboard email support by filtering autoreplies, email signatures, and quoted text from incoming mail, points Reply-To to the reply-by-email address, and adds a reply token to email subjects, so replies become task comments through Mailmagik.
- Kanboard >= 1.2.20
- No database changes
GNU General Public License v2. See LICENSE for details.
