Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - alti

Pages: [1]
1
hey!

i have adopted the upload2.php script now by myself. maybe this information is usefull to anyone...

the following lines had to be changed as follows:
Code: [Select]
include('./pclzip.lib.php');
 $tmp_dir = ROOT_PATH.'data/tmp_media/';
 $uploadDir = ROOT_PATH.'data/media/'.$cat_id.'/';
 $archive = new PclZip($tmp_dir.$new_name);

i thought that it would also be nice if the admin gets an email when users add images to the gallery.
so this is the complete code replacement i have done:
Code: [Select]
include('./pclzip.lib.php');
 $tmp_dir = ROOT_PATH.'data/tmp_media/';
 $uploadDir = ROOT_PATH.'data/media/'.$cat_id.'/';
 $archive = new PclZip($tmp_dir.$new_name);
  if ($archive->extract(PCLZIP_OPT_PATH, $uploadDir,
                        PCLZIP_OPT_REMOVE_ALL_PATH) == 0) {
  die("Error : ".$archive->errorInfo(true));
 }else{

//send mail to admin (info that there are new images)
include(ROOT_PATH.'includes/email.php');
$myEmail = new Email();
//siteemail
$myEmail->set_to('webmaster@myGallerysite.net');
$myEmail->set_subject('new images in gallery');
$txt="Please check admin section of the gallery to insert users images. ";
$txt .= "from User: " .$user_info[$user_table_fields['user_name']];
$myEmail->set_simple_body($txt);
$myEmail->send_email();

don't forget to adopt the email address!!
this is for sure not the best solution but it was quick to implement and it works!

greetings!

2
hi!

sorry for my late response, had some troubles with my internet connection at home....

yes, the file is uploaded! you are completely right. it is in the data/tmp_media/ folder.

any fixes?

thx

3
hi!

I just implemented your mod in my gallery.

zip-Upload with admin user works well!

zip-upload with normal user gives the following error:
Error : PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file './../data/media/2/XPreston_10.zip'
User has permission to upload and directupload.

the file doesn't exist on the server, but why is it working with admin users?
anyone has a hint for me?

thx!!

4
Feedback & Suggestions / Re: search for 404 error files
« on: November 14, 2005, 03:03:42 PM »
wow!

that's exactly what i was looking for! 4images is even more powerfull... cool

soory...but i coudn't find this page.. i really tried to find something...
however thx for your help!

5
Feedback & Suggestions / search for 404 error files
« on: November 14, 2005, 03:14:13 AM »
hi!

I'm using 4images for a short time now and i really like it! the features are amazing and its easy to use!

however i noticed that there is no possibility in the admin section to search for images which endup with a 404 file or thumbnail...
i think this would be a really handy feature! hopefully we'll see this enhancement in the next version ;-)

what do you think about the idea?!

Pages: [1]