Guides to help you build your own plugins or contribute to the Hotaru codebase.
Adding a Tweet This! button so you can send your posts to Twitter is incredibly easy. All you would have to do is add this code to the sb_list.php...
Drupal and Wordpress both have a list of guidelines based on the PEAR Coding Standards: Drupal Coding Standards | Wordpress Coding Standards I...
What's the difference between a plugin and a widget? There isn't much difference at all. A Hotaru widget is a plugin which can be displayed in any...
The first ever plugin for Hotaru CMS is, unsurprisingly, Hello World. It's a plugin that does absolutely nothing, except display the words "Hello...
Hotaru provides a built-in method for checking if another plugin is enabled. This is especially helpful if your own plugin depends on that plugin. ...
User profiles in the Users plugin can be extended in three ways: 1. Add a link to the profile menu 2. Add content to the body of the main profile...
Hotaru CMS has a few debugging functions that can help you with testing. This tutorial details how to log results from your plugin to a file in the...
Hotaru CMS allows users to choose their own settings rather than using site-wide settings. One example of a plugin that adds such an option is the...
To demonstrate how you can add extra post information, let's use the Media Select plugin as an example. This plugin does four things: 1. Add a...
Hotaru's ability to extend plugins is one of the best features of this CMS. Without any plugin hooks, you can alter or extend the behavior of other...
Hotaru CMS uses different kinds of caching for different things. Here's an overview of each of them so you can use them appropriately in your...
Part 1: The Basics of Plugin Hooks Plugin hooks allow developers to add functionality to Hotaru CMS or other plugins. A typical plugin hook looks...
This guide gives an overview of the install plugin function, when it is used and potential problems. As of Hotaru 0.8, there is no longer an...
You can dynamically change a page's meta tags from a plugin by including a function for the header_meta hook. Here are two real examples. The...
Here's an overview of the main global constants and variables. Constants Database: DB_USER DB_PASSWORD DB_NAME DB_HOST
Every user is given a role, for example admin or member, and then plugins assign default permissions to those roles. Here's how: 1. Add your...
Hotaru plugins can be as big as you like and do as much as you want them to do. You could build a simple plugin to show the date in the sidebar, or a...
In order for users to save their customizations from unwanted overwrites when plugins are upgraded, Hotaru allows them to move files out of a plugin...
There are two different ways to include code in the header using these plugin hooks: header_include should be used for including css and...
Here's a brief explanation of how Hotaru works: The Hotaru Cycle: Core index → Theme index → Display template → user action → Core index ...
There are various ways to add a settings page to your plugin, but the method described here is preferable because it separates your settings code...
Wherever possible, you should avoid hard-coding raw language into your plugin and put it in a language file instead. There are two obvious benefits...
Hotaru has functions which fade in a red or green div with a given message on it. There are three ways to display messages: Show a single message...
With plugins playing such a large role in Hotaru CMS, it's important that they play nicely with each other. If your plugin relies on other plugins...
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Forum Rules