Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
[]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

Sponsored Links
Entire Thread
Subject Posted By Posted
Finished-[6.5] MyPhotos v2.0 omegatron 03/21/2005 11:05 PM
Re: Finished-[6.5] MyPhotos v2.0 Zarzal 03/22/2005 11:50 AM
Re: Finished-[6.5] MyPhotos v2.0 Sky YYZ 03/22/2005 4:49 PM
Re: Finished-[6.5] MyPhotos v2.0 Zarzal 03/22/2005 5:02 PM
Re: Finished-[6.5] MyPhotos v2.0 Sky YYZ 03/22/2005 5:49 PM
Re: Finished-[6.5] MyPhotos v2.0 Zarzal 03/22/2005 5:56 PM
Re: Finished-[6.5] MyPhotos v2.0 Sky YYZ 03/22/2005 6:03 PM
Re: Finished-[6.5] MyPhotos v2.0 Zarzal 03/22/2005 9:27 PM
Re: Finished-[6.5] MyPhotos v2.0 Sky YYZ 03/23/2005 4:32 AM
Re: Finished-[6.5] MyPhotos v2.0 Sky YYZ 03/23/2005 1:29 PM
Re: Finished-[6.5] MyPhotos v2.0 Zarzal 03/23/2005 8:57 PM
Re: Finished-[6.5] MyPhotos v2.0 Sky YYZ 03/25/2005 6:20 PM
Re: Finished-[6.5] MyPhotos v2.0 atvtrailrider 05/05/2006 10:48 PM
Re: Finished-[6.5] MyPhotos v2.0 Zarzal 05/08/2006 10:52 PM
Re: Finished-[6.5] MyPhotos v2.0 AllenAyres 05/09/2006 5:35 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 4888
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 29
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)