Log in

View Full Version : plugin gone awry?


lukemax
06-04-2007, 04:53 AM
Is there a way to check a plugin to see if its working? In a hook I trying to get to work, I have this

ob_start();
include('../reviewform_hook.php');
$reviewform = ob_get_contents();
ob_end_clean();
I can get to the included file via the browser, but when I try to use the variable

$reviewform
in a template, I get nothing?
What is wrong?

Dismounted
06-04-2007, 07:21 AM
Where are you hooking the plugin at?

lukemax
06-04-2007, 03:29 PM
global_start, is the hook location

Dismounted
06-05-2007, 07:46 AM
Replace the include with this and see if it spits out an error:
require('../reviewform_hook.php');