I'm not Omegatron but I try to help

You have to edit the pppanel.php. On top you find:
// configure your database settings
$host = "ip or dnsname of host for pp"; // Server Name
$user= "username for pp db"; // Username
$password= "password for pp db"; // Password
$database="databasename of pp db"; // Photopost database name or forum database name
// Connecting, selecting database
$link = mysql_connect ("$host", "$user", "$password") or die ("I cannot connect to the database.");
//mysql_select_db ("$database")or die("Could not select database");
require ("./includes/main.inc.php");
$pp_prefix="pp_";
$data_dir = "http://insert your url here/photopost/data" ; //URL of your photo dir where those jpeg stored (with n
### search for:
else {
$nextpage = $page + 1;
if ( $page > 1 ) $prevpage = $page - 1;
else $prevpage = 0;
$page = ($page*16);
}
### insert under it:
mysql_select_db ("name of your PP DB here")or die("Could not select database");
### now, search for the following:
$i=0;
$color = "lighttable";
$photorow="";
$photopanel="";
### under it insert:
mysql_select_db ("name of your THREADS db here")or die("Could not select database");
on bottom of the file you have:
//mysql_select_db ("UBBTHREADSDATABASE")or die("Could not select database");
leave it with // or delete the line.
It should work now.