MetaPhilter Doc

« TOC

Multiple Philters

With the release of MetaPhilter .4 comes support for having content from multiple Philters in the same database.

When creating new Philters through the configuration script, at the "Structuring Database" step, you must click the button that reads "A database which requires the addition of new MetaPhilter structure." This will create the extra tables required for a new Philter.

Running multiple Philters requires different index templates for each. Where you would normally insert a call to the MetaPhilter system scripts, an extra variable is optional to specify which Philter tables you will be selecting information from. If this variable is not set, the MetaPhilter system assumes the Philter of ID 1.

Assuming your MetaPhilter path was /mp and your Philter index path was /philter, this works fine for the Philter of ID 1:

<?php include '../mp/metaphilter.php'; ?>

However, the Philter of ID 2 would require you set a $philter variable to 2:

<?php $philter=2; include '../mp/metaphilter.php'; ?>

Etc.

Note: MetaPhilter system scripts (contained in the 'mp' directory) only need to exist once on your server. You just have to make sure your new index templates can find the same system directory your first philter uses.