This help topic covers some of the considerations addon authors have to consider in order to upload their addons to Vanilla's addon site at vanillaforums.org/addons.
$PluginInfo['PluginKey'] = array( // The plugin key must match the folder the plugin is in.
'Name' => 'The name of the plugin.',
'Description' => 'Plugin description goes here.', // Be as descriptive as possible.
'Version' => '1.0', // A version number compatible with php's version_compare().
'RequiredApplications' => array('ApplicationKey' => MinVersion),
'RequiredTheme' => array('ThemeKey' => MinVersion),
'RequiredPlugins' => array('PluginKey' => MinVersion),
'HasLocale' => FALSE,
'Author' => 'Your name here.',
'AuthorEmail' => 'Your email here', // optional
'AuthorUrl' => 'Your url here' // optional
);
$ThemeInfo['ThemeKey'] = array( // The theme key should match the folder the theme is in.
'Name' => 'The name of the theme.'
'Description' => 'Theme description goes here.', // Be as descriptive as possible.
'Version' => '1.0', // A version number compatible with php's version_compare().
'RequiredApplications' => array('ApplicationKey' => MinVersion),
'RequiredTheme' => array('ThemeKey' => MinVersion),
'RequiredPlugins' => array('PluginKey' => MinVersion),
'HasLocale' => FALSE,
'Author' => 'Your name here.',
'AuthorEmail' => 'Your email here', // optional
'AuthorUrl' => 'Your url here' // optional
);
$ApplicationInfo['ApplicationKey'] = array( // The application key must match its folder name.
'Name' => 'The name of the application.'
'Description' => 'Application description goes here.', // Be as descriptive as possible.
'Version' => '1.0', // A version number compatible with php's version_compare().
'RequiredApplications' => array('ApplicationKey' => MinVersion),
'RequiredTheme' => array('ThemeKey' => MinVersion),
'RequiredPlugins' => array('PluginKey' => MinVersion),
'HasLocale' => FALSE,
'Author' => 'Your name here.',
'AuthorEmail' => 'Your email here', // optional
'AuthorUrl' => 'Your url here' // optional
);
Support for locale packs was added to Vanilla 2.0.11. Locales are located in your /locales folder. Each locale must contain a file called definitions.php. The info array goes at the top of this file. It has the following format:
$LocaleInfo['LocaleKey'] = array( // The locale key must match the folder the locale is in. 'Locale' => 'en-CA' // The code of the locale 'Name' => 'The name of the locale.' 'Description' => 'Locale description goes here.', // Be as descriptive as possible. 'Version' => '1.0', // A version number compatible with php's version_compare(). 'Author' => 'Your name here.', 'AuthorEmail' => 'Your email here', // optional 'AuthorUrl' => 'Your url here' // optional );
Please do not use a locale code like 'en-CA' for your locale. Different people may make a locale pack with the same locale as you and both must be able to co-exist on the addons site and even in an application.
If you have language definitions from before and you want to convert them to the new format you can get some help here.
| Edited October 2010 by Todd |