NL-ConvertToPHP, Dynamic Includes & Skinning
If you want the Enthusiast Anti-Spam Addon to work with NL-ConvertToPHP you need to add the following before header.php
if ($_SERVER['QUERY_STRING'] == "join") { // the following config.php is your Enthusiast config.php file, use a full path if necessary. include 'config.php'; $pathtofooterfile = '/path/to/your/footer/file/footer.php'; include $path . 'show_antispam.php'; if(!isset($_POST['join'])) { $antispam = antispam('Y', $path); } }
Use with other dynamic includes scripts would be similar. Send me an e-mail if you cannot get it to work with your particular method of using includes.
Skinning would be similar. Include:
// the following config.php is your Enthusiast config.php file, use a full path if necessary. include 'config.php'; $pathtofooterfile = '/path/to/your/footer/file/footer.php'; include $path . 'show_antispam.php'; if(!isset($_POST['join'])) { $antispam = antispam('Y', $path); }
before any skinning code or any HTML.