VaultWiki 2.5.5
by
Published on October 16, 2009 12:49 AM
The newest version of
VaultWiki, 2.5.5, breaks the pattern from the last few updates by introducing some new and improved features, increased efficiency, and of course a bunch of bug fixes.
Custom Tab API
While not an entirely "new" feature, the API has been improved so that you can add your own custom tabs without modifying any of VaultWiki's templates. See the following example:
Code:
$content_actions['tab_id'] = array(
'href' => 'url?do=tab_id',
'text' => 'tab_label',
'class' => ($vault->postbit['selected'] == 'tab_id' ? 'selected' : ''),
// tab_id of default tab that appears immediately before this tab
'custom' => 'ref_id',
// true to follow the link when clicked, or
// false to load tab via AJAX (default)
'nojs' => false
);
Note: This only adds the clickable part of the tab (if placed in hook
vault_contentaction_prepare). You will still need to write your own script to load the tab's content and register it at hook
vault_showthread_default in
showwiki.php.
You can now set a different path to your wiki's editor buttons for each style. If you wanted to design your own "Book" or "Table" BB-Code icons, now you can do so. At first glance, you may think that the stylevar would conflict with vBulletin's Stylevar for the same purpose, or interfere with your other custom BB-Codes. But the "Wiki" Editor Stylevar will only apply to BB-Codes that have been added to the "Wiki Code Group" in the
Wiki Code Manager.
Synchronized Display Order
The Display Order of a Namespace and the Display Order of its "Top-Level" forum are now one and the same. In previous versions, the value displayed in the Namespace Manager replaced whatever value appeared in the Forum Manager. This was especially confusing when trying to reorder the forums. Now the Display Order in both places have been synchronized and can be modified using either form.
Other Changes
The "Discussion" tab now shows the number of posts in the tab's label. Keeping this count in such a visible place (it used to be only at the bottom of the article) should help improve the number of users who click through to read and post comments.