Author Topic: [Mod] Multiupload V.3.1.1  (Read 124462 times)

0 Members and 1 Guest are viewing this topic.

Offline gerbert

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: [Mod] Multiupload V.3.1.1
« Reply #75 on: September 07, 2011, 08:18:10 AM »
Hi Rembrandt,

I am having the same problem as others where Auto-create thumbnail is not working with this mod.  :(  Any suggestions? I am using GD library.

Thanks for any help!
gerbert

Offline clubbu

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: [Mod] Multiupload V.3.1.1
« Reply #76 on: September 07, 2011, 03:08:10 PM »

Rembrandt

  • Guest
Re: [Mod] Multiupload V.3.1.1
« Reply #77 on: September 07, 2011, 07:07:58 PM »
..I am having the same problem as others where Auto-create thumbnail is not working with this mod.  :(  Any suggestions? I am using GD library.
...
i am understanding this not, i have a new installation from 4images and only this mod includet and it works.
you can test:
http://test.vienna-pictures.com/member_multi_upload.php?action=multi_upload&cat_id=20
user: testuser
passw:4images


@clubbu
search:
Code: [Select]
/*   if ($image_name == "")  {
insert above:

    $image_description 
un_htmlspecialchars(trim($HTTP_POST_VARS['image_description_'.$i]));
    
$image_keywords un_htmlspecialchars(trim($HTTP_POST_VARS['image_keywords_'.$i]));  
    if (
$image_description == "")  {
      
$error['image_description_'.$i] = 1;
      
$field_error preg_replace("/".$site_template->start."field_name".$site_template->end."/siU"str_replace(":"""$lang['description']), $lang['field_required']);
      
$msg .= (($msg != "") ? "<br />" "").$lang['description']." ".$i." ".$field_error;
    }
    if (
$image_keywords == "")  {
      
$error['image_description_'.$i] = 1;
      
$field_error preg_replace("/".$site_template->start."field_name".$site_template->end."/siU"str_replace(":"""$lang['keywords']), $lang['field_required']);
      
$msg .= (($msg != "") ? "<br />" "").$lang['keywords']." ".$i." ".$field_error;
    }
« Last Edit: September 07, 2011, 07:35:54 PM by Rembrandt »

Offline clubbu

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: [Mod] Multiupload V.3.1.1
« Reply #78 on: September 07, 2011, 09:46:44 PM »
Thanks .. work

Offline gerbert

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: [Mod] Multiupload V.3.1.1
« Reply #79 on: September 09, 2011, 03:00:05 AM »
..I am having the same problem as others where Auto-create thumbnail is not working with this mod.  :(  Any suggestions? I am using GD library.
...
i am understanding this not, i have a new installation from 4images and only this mod includet and it works.
you can test:
http://test.vienna-pictures.com/member_multi_upload.php?action=multi_upload&cat_id=20
user: testuser
passw:4images
Thank you for the help Rembrandt, I think I see the problem, my site is hosting Animated Gifs  :roll:. They fail on your test site as well. http://test.vienna-pictures.com/categories.php?cat_id=20
Is there any way to get the mod to work with animated gifs? Regular 4images upload creates single frame thumbnails of the gifs.
Thanks! Gerbert 

Rembrandt

  • Guest
Re: [Mod] Multiupload V.3.1.1
« Reply #80 on: September 09, 2011, 11:11:03 AM »
..Is there any way to get the mod to work with animated gifs? Regular 4images upload creates single frame thumbnails of the gifs.
...
Thank You for your feedback, i think now it works.
Please Test it again.

mfg Andi

Offline gerbert

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: [Mod] Multiupload V.3.1.1
« Reply #81 on: September 23, 2011, 07:21:40 AM »
Thank You for your feedback, i think now it works.
Please Test it again.
mfg Andi
Thanks for the fix! It works. Just one little typo on the member_multi_upload.php edit

Parse error: syntax error, unexpected '^' in /home/gerbert/jigglegifs.com/member_multi_upload.php on line 150

Rembrandt

  • Guest
Re: [Mod] Multiupload V.3.1.1
« Reply #82 on: September 23, 2011, 07:34:09 AM »
 remove the '^' , it's a bug from copy and paste

Offline juewei

  • Full Member
  • ***
  • Posts: 162
    • View Profile
Re: [Mod] Multiupload V.3.1.1
« Reply #83 on: November 13, 2011, 10:16:20 AM »
habe es eingebaut läuft super  :D

allerdings habe ich ein Problem.
Ich habe auch noch das Modul member_multi_upload.php
eingebaut.
Jetzt können meine User über den normalen Upload nur noch 7 Fotos 24 Stunden uploaden  über den normalen upload. Aber über member_multi_upload.php können sie dann leider noch weitere Fotos online stellen.

Kann mir einer helfen?

Danke und schönen Sonntag

Rembrandt

  • Guest
Re: [Mod] Multiupload V.3.1.1
« Reply #84 on: November 13, 2011, 04:47:18 PM »
....Aber über member_multi_upload.php können sie dann leider noch weitere Fotos online stellen.
....
suche in step 6.):
if ($action == "multi_upload") {

füge darunter ein:

//############ Uploadlimit ####################################################################
//http://www.4homepages.de/forum/index.php?topic=4231.msg156003#msg156003
  
if ($user_info['user_level'] > GUEST && $user_info['user_level'] != ADMIN)
  {
    
$sql "SELECT COUNT(image_id) AS num
            FROM "
.IMAGES_TABLE."
            WHERE user_id = "
.$user_info['user_id']." AND image_date > ".(time()-60*60*24);
    if (
$result $site_db->query_firstrow($sql))
    {
    
print_R($result['num']);
      if (
$result['num'] >= 7
      {
        
$lang['upload_limit_reached'] = "Sorry, Dein Uploadlimit für 24 Stunden ist aktiv";
        
show_error_page($lang['upload_limit_reached']);
        exit;
      }
    }
  }
//############ End Uploadlimit ####################################################################

Offline cch

  • Jr. Member
  • **
  • Posts: 95
    • View Profile
Re: [Mod] Multiupload V.3.1.1
« Reply #85 on: February 09, 2012, 01:37:56 PM »
Hi Rembrandt

How do you allow this Mod to upload to Sub Categories? All I have available to upload into is Parent Category?

Rembrandt

  • Guest
Re: [Mod] Multiupload V.3.1.1
« Reply #86 on: February 09, 2012, 03:24:26 PM »
Hi!
..How do you allow this Mod to upload to Sub Categories? All I have available to upload into is Parent Category?

there is no restriction...

mfg Andi

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: [Mod] Multiupload V.3.1.1
« Reply #87 on: August 20, 2012, 09:36:26 PM »
Rembrandt, Hi! Thanks for this MOD! Please, compare your MOD with this V@no code. With this V@no code, I`m put all uploaded images, to the BIG folder. Your multi-upload, resize photos correct, but didn`t put original into BIG folder! If not difficult, please, make a corrections! MAny Thanks!!!

//--------------------------------------------
//--------- Auto Image Resizing --------------
//--------------------------------------------
                  
if ($config['auto_image'] && !$uploaderror) {
                     
$src_copy MEDIA_PATH."/".$cat_id."/big";
                     if (
$direct_upload) {
                        
$src MEDIA_PATH."/".$cat_id."/".$new_name;
                        
$src_copy MEDIA_PATH."/".$cat_id."/big";
                    }
                    else {
                        
$src MEDIA_TEMP_PATH."/".$new_name;
                    }
                    
$do_resize 0;
               
	
	
	
if (
$image_info = @getimagesize($src)) {
                       if (
$image_info[2] == || $image_info[2] == || $image_info[2] == 3) {
                          
$do_resize 1;
                    
	
	
}
                  
	
}
                  
	
if (
$do_resize) {
                     if (!
function_exists(init_convert_options)) {
                           require(
ROOT_PATH.'includes/image_utils.php');
                        }
                        
$convert_options init_convert_options();
        
	
	
	
	
	
	
	
	
if (!
$convert_options['convert_error']) {
	
	
	
	
	
	
	
	
	
	
	
	
	
if (
$image_info[0] > $config['max_image_width'] || $image_info[1] > $config['max_image_height']) {
	
	
	
	
	
	
	
	
	
	
	
	
	
	
$result true;
	
	
	
	
	
	
	
	
	
	
	
	
	
  if (!@
is_dir($src_copy)) {
	
	
	
	
	
	
	
	
	
	
	
	
	
    
$oldumask umask(0);
	
	
	
	
	
	
	
	
	
	
	
	
	
    
$result mkdir($src_copy);
	
	
	
	
	
	
	
	
	
	
	
	
	
    
umask($oldumask);
	
	
	
	
	
	
	
	
	
	
	
	
	
    if (!@
is_dir($src_copy) || !$result) {
	
	
	
	
	
	
	
	
	
	
	
	
	
      
$result mkdir($src_copy0755);

	
	
	
	
	
	
	
	
	
	
	
	
	
    }
	
	
	
	
	
	
	
	
	
	
	
	
	
  }
	
	
	
	
	
	
	
	
	
	
	
	
	
	
if (
$result == true){
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
copy($src$src_copy."/".$new_name);
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
	
	
	
                      
$convert_options init_convert_options();
	
	
	
                      if (!
$convert_options['convert_error']) {
	
	
	
                        
$quality = (intval($config['auto_image_quality']) && intval($config['auto_image_quality']) <= 100) ? intval($config['auto_image_quality']) : 100;
	
	
	
                       
	
if (!
resize_image($src$quality$config['max_image_width'], 1)) {
	
	
	
                         
	
 
$msg .= (($msg != "") ? "<br />" "")."<b>".$lang['file_upload_error'].": ".$new_name;
	
	
	
                            
$uploaderror 1;
	
	
	
                         }
	
	
	
                
	
     }
	
	
	
	
                   }else{
	
	
	
	
                   
	
	
$do_resize 0;
	
	
	
	
                   }
                      
	
}
                     }
                  }
//-------------------------------------------


Best Regards,
Andrew

Rembrandt

  • Guest
Re: [Mod] Multiupload V.3.1.1
« Reply #88 on: August 25, 2012, 07:02:32 AM »
Hi!

test it:

search in member_multi_upload.php:

          
if (!$convert_options['convert_error']&& $image_info[2] == 2||$image_info[2] == 3){
            
$quality 100;

insert below:

//############ Start Upload to Big folder #######################          
          
	
if (
$image_info && $config['auto_image']) {
              
$src_copy MEDIA_PATH."/".$cat_id."/big";
              
$result true;
              if (!@
is_dir($src_copy)) {
                
$oldumask umask(0);
                
$result mkdir($src_copy);
                
umask($oldumask);
                if (!@
is_dir($src_copy) || !$result) {
                  
$result mkdir($src_copy0755);
                }
              }
              if (
$result == true){
                
copy($src$src_copy."/".$new_name);
              }
            }
//############ End Upload to Big folder #######################


mfg Andi

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: [Mod] Multiupload V.3.1.1
« Reply #89 on: August 25, 2012, 08:07:29 AM »
Yes, it is! Work perfectly!