Hi,
I have my WordPress install working sweetly and my ZenPhoto is working great too.
I had a Random Thumbnail working well too, until I moved it to our new server and it's gone a bit mad
It will still display the thumb when I visit the 'test.php' page.
It uses the code:
`
<?php
define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'zenphoto');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
echo '<div class="random_pic">';
echo '
';
printRandomImages(1);
echo '';
?>
`
but when I include the test.php page in my WP 'header.php' and visit www.testsite.co.uk/zenphoto/, I get errors:
`Warning: require_once(/zenphoto/zp-core/template-functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/bla/bla/bla.co.uk/user/htdocs/test.php on line 4`
My 'test.php' is in the root, under htdocs
My 'header.php' is under htdocs/wp-content/themes/default
My 'template-functions.php'(which has the printRandomImages function) is under htdocs/zenphoto/zp-core/template-functions.php
What am I doing wrong?