first take care if you get the proper update of photopost. I get an old archive first with an old upgrade.php. After getting a new archiv my databaseproblems are gone.
second: the is a third line to modify in feature.tmpl that point to main.inc.php from ubbthreads. Serverpath is setup properly too.
third: in your hacking instruction for pp-inc.php there are some differences due the changed scripts in 4.6. You wrote:
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.