location of thumbs and photos
I have two sites installed. The main site is installed in the root of my hosting account. The second site is installed in a directory within the main site. I did this as I wanted a different look for the second site, but wanted to use the same database that the first one uses. Everything works great EXCEPT for the photos and thumbnail images.
Does anyone know how to hardcode the path to the main photos and thumbs directory into the second install so that it puts those images into the main sites photos and thumbs directories?
I think it would be in the .... includes\classes\images\class_upload.php file. That file writes a temp file first and then moves the file to the destination. .....
// Move the file to the given location
function moveFile($source, $destination) {
$this->debug("<b>Moving the file to the destination</b><br/>");
// Check if you have write permissions
$this->debug("Checking permissions<br/>");
if (is_writeable($this->path)) {
if (move_uploaded_file($source, $destination)) {
// Change file permissions
@chmod($destination, 0644);
// Add filename to array with done files
$this->done[] = $destination;
$this->debug("file moved to <font color=\"#000099\"><b>".$destination."</b></font><br/>");
} else {
// Give an error if no write permissions
$this->error('writePerm', $destination);
}
} else {
// Give an error if no write permissions
$this->error('writePerm', $destination);
}
}
-----------------------------------------------------------
Would anyone know how to hardcode the $destination into the code above, or know where to change the "$path" to the photos and thumbs directory for the second install so it uses those directories to save it's files in? Your help would be greatly appreciated.
Thanks you.
__________________
MrGForce
Currently running 68Classifieds v4.1.5 Developer Edition ... Purple Template
Last edited by MrGForce; 02-03-2010 at 07:48 AM.
|