HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Forum drivers

There are no pages beneath this page

Submitted by Chris Graham
ocPortal supports third-party forums. This is so people who have an existing/preferred forum and need a CMS for it, can still benefit from ocPortal. For example, comment topics for news are stored on the forum, even if it's a third-party forum.

The user picks a forum driver when the install, which maps to a sources/forum/*.php file. A forum driver is basically an implementation to a standardised interface, and is accessed from ocPortal via $GLOBALS['FORUM_DRIVER'].

In the case of OCF, the forum driver just ties into the lower-level OCF API. In the case of others, it's a basic clean-room implementation of accessing the relevant forum software's DB and files.

Stuff that is not an OCF feature but uses the forum, has to go through the official forum driver interface. We can supplement functionality exclusively targeted for OCF with a if (get_forum_type()=='ocf') guard. If we are coding functionality that is directly a part of OCF (i.e. accessed in some OCF-only part of the system, like the forum zone), then we don't need to worry about any of this.
CEDI change-log Post