[]
Omegatron said: Info/Instructions: Mod assumes PhotoPost and Threads are installed into same database. If you have them in seperate databases, you will need to use a mysql_select_db() to switch to PP and then back to threads in the pppanel.php file.[/]
Hi Omegatron,
I have Threads and Photopost using their own separate databases (database names, ie: fa_threads & fa_photopost), and both programs are installed in different folders on the server (ie:
www.flightattendants.org/ubbthreads/ ... and ...
www.flightattendants.org/photopost/ ...
I've installed the mod, but don't understand where to make the appropriate changes in pppanel.php. When I click on "Insert My Photos Into Post" I get the
could not select database error message.
This is how I've currently got it set up in pppanel.php:
//Connecting, selecting database
$link = mysql_connect ("$host", "$user", "$password") or die ('I cannot connect to the database.');
mysql_select_db ("mysql_connect")or die("Could not select database. This feature has not yet been enabled. Please try again later.");
require ("/includes/main.inc.php");
$pp_prefix="";
$data_dir = "http://www.flightattendants.org/photopost/data/" ; ....and at the bottom I uncommented the mysql line as instructed.
Thanks for any advice you can offer!
Jason
