Well actually this is not my hack. This hack was written by Michael Pierce the creator of Photopost. I merely did XHTML compliance and a few minor other things. I posted it here from the beta modifications when Josh made this wonderful new Modification Index.
The instructions are a fine from what I see. They clearly state to change PATH INFORMATION to your own. I see he put his own path information which was an example. I updated them to make it even more clearer so the example Michael gave of
UBBTPRINT;
//
// PhotoPost and ReviewPost inserts
//
require("/home/sites/viperalley/web/templates/default/ubbt_photopost.tmpl"); require("/home/sites/viperalley/web/templates/default/ubbt_reviewpost.tmpl"); echo <<<UBBTPRINT
UBBTPRINT;
//
// PhotoPost and ReviewPost inserts
//
require("/path/to/templates/default/ubbt_photopost.tmpl");
require("/path/to/templates/default/ubbt_reviewpost.tmpl");
echo <<<UBBTPRINT
Okay well if you get a MYSQL error that is easy.
Double check to see you did instruction #1
1) Edit the photopost.inc.php and reviewpost.inc.php files with your settings and upload to your config.inc.php location
If you did that then double check instructions #2
2) Edit the ubbt_photopost.tmpl and/or ubbt_reviewpost.tmpl to change the first line:
For ubbt_photopost.tmpl:
require ("/path/to/photopost.inc.php");
For ubbt_reviewpost.tmpl
require ("/path/to/reviewpost.inc.php");
THE ERROR YOU DESCRIBE IS CAUSED BY NOT DOING ONE OF THESE TWO STEPS CORRECTLY.