My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
phpBBStore  
Give phpBB some AtomPub support.
Updated Feb 4, 2010 by jeroenho...@gmail.com

Introduction

This article provides an overview of the code needed to use php-atompub-server with phpBB (tested with 3.0.1). The code is in the examples subdirectory.

There is no support for foreign markup in atom entries and posting will not preserve markup in the content, only plain text.

Details

phpBB stores data in a database, usually MySQL. This means we have to use a custom store that talks to the database. To do this, we need to set up a custom collection that creates the store, in this case named phpbb, so its location will be {base}/phpbb/. Make sure the includes point to the right files. The parameters that need to be changed are the forum you want to use as a store and the base URI of the AtomPub server.

The list store and the atom store talk to the forum class. That class uses a BBCode parser. I have used this one, but others should also work fine. The standard phpBB one is unusable, since it requires code from all over the phpBB-place. You also might want to change the database driver and password.

The last thing to do is to add the collection to the service document:

	<collection href="phpbb/">
		<atom:title>AtomPub Test: PHPBB</atom:title>
	</collection>

Now you can use at least Windows Live Writer to add topics to the forum.


Sign in to add a comment
Powered by Google Project Hosting