MenuCoranto Docs
Coranto LinksPmWiki Home |
Addons /
vBulletin 3.x Comments - Create threads on a vBulletin 3 forum with CorantoOn this page... (hide) IntroductionThe vBulletin (3.x) Comments addon provides Coranto with the capability to generate articles as threads in a vBulletin forum. Versions of vBulletin greater than 3.0.7 are explicitly supported by this addon although I expect that it will work with any version of vBulletin 3. There are a number of reasons why you may want to do this with the most obvious being the addition of a comments facility to your Coranto driven pages. To assist in this aim, this addon also comes with two different mechanisms for displaying the number of entries for a given thread referenced from your Coranto 'news' database. ConfigurationDatabase SettingsEnabling this addon in the 'Addon Manager' will add a new 'vB3Comments Settings' option to the 'Administration' menu of Coranto. This page provides access to the central configuration options provided by the addon. As vBulletin is basically a PHP/MySQL database, the most important information required by this addon is the details of the MySQL database used by vB. The vBulletin DB Settings section of the configuration page provides for entry of all of this information. If you don't have access to enough data to fill all of these fields, the vB Comments addon will not function! Addon SettingsThe second half of the addon configuration page provides for setting up the default behavior of the vB3Comments addon. These are described in some detail below:
ProfilesCoranto sourced vBulletin comments are not limited to a single board within your vB forum but for each type of comment entry you want to make, you'll need to create a separate profile. Once created (on the Edit News Profiles page), each profile requires individual configuration before it can be enabled and used. Many of the configuration parameters are identical to those defined in the Configuration section (above) and the values defined there will be used for each profile by default. Any of these parameters may be locally overridden, however, allowing each profile to be configured as required.
News SubmissionDay-to-day, the vBulletin 3 Comments addon makes its presence known by the addition of three controls to the Submit/Modify News pages. It is via these fields that the user may manipulate how Coranto interacts with vBulletin for each news entry. These controls are:
When editing news that already has a linked vBulletin thread, the controls displayed will be slightly different. The vB Profile popup will still be there (and may be modified), but in place of the other controls will be a single new checkbox:
News DisplayAs stated at the front of this article, one of the obvious reasons for linking Coranto output with a vBulletin forum is to use the forum facilities to provide a comments facility for Coranto. In order to make this useful, however, a mechanism is required to indicate the existence of comments for each article. Two methods of achieving this goal are provided within this Addon package, each with their own advantages and disadvantages. 'Build News' MethodThe Addon itself contains code that determines the number of comments for each news item every time that news is built. A code snippet is provided that, when inserted into a News Style, will display these calculated counts. The main disadvantage to this method is that counts are only updated on a 'Build News' action. Unless you have an automated Cron task building news regularly, using this method will require a manual overhead regularly building news to ensure the counters are kept updated. Live MethodA vBulletin extension is provided that may be called from the news page to determine the current comment count 'live' when the page is displayed. Again, a code snippet is provided for pasting into the appropriate news style to call this routine and display the results. The advantage of this method is that the comment counts, being live, are always updated whenever a page is refreshed. This is also its main disadvantage, however, as described in the warning below. Warning: This vBulletin routine is called for each news item on a page, every time that page is displayed somewhere. Thus, it may become a very processor intensive task on sites with large viewing figures CompatibilityTo date, the vBulletin 3.x Comments addon has been tested with Coranto versions 1.24 and 1.31.2Beta. In vBulletin terms, it has been tested with the following versions of vBulletin: 3.0.7, 3.0.8, 3.0.9, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.5.4 and 3.6.4. You can leave comments using this form. |