Support Forums

location of thumbs and photos

This is a discussion on location of thumbs and photos within the Customizations forums, part of the Developer Forums category; I have two sites installed. The main site is installed in the root of my hosting account. The second site ...


Go Back   68 Classifieds Forums > Developer Forums > Customizations

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-31-2010, 07:35 PM   #1
Senior Member
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 219
Rep Power: 11
MrGForce is on a distinguished road
Default 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.
MrGForce is offline   Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
photos oteenc Pre Sales Questions 2 07-31-2008 07:15 PM


All times are GMT -4. The time now is 04:50 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0