Author Topic: [Mod] Multiupload with jQuery  (Read 199022 times)

0 Members and 1 Guest are viewing this topic.

Rembrandt

  • Guest
Re: [Mod] Multiupload with jQuery
« Reply #15 on: August 18, 2012, 02:09:03 PM »
i think not, it on the "member.php" lies..
maybe it's the 4images version, or your HTML Declaration, or because you have the most HTML code within the "head" section, what 100% wrong is.
or the js error on your page. ( IE see the left bottom corner).

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [Mod] Multiupload with jQuery
« Reply #16 on: August 28, 2012, 05:15:16 PM »
Hi!

First of all, thanks for this great MOD!! Is is the best multi upload MOD!

I think, I've found two bugs (one important and one trivial) in member.php:

- Error occurs, if category ID '0' is selected:
search:
Code: [Select]
  $cat_id = ($cat_id) ? $cat_id : (isset($HTTP_POST_VARS['cat_id']) ?  intvall($HTTP_POST_VARS['cat_id']) : intvall($HTTP_GET_VARS['cat_id'])); and replace with:
Code: [Select]
  $cat_id = ($cat_id) ? $cat_id : (isset($HTTP_POST_VARS['cat_id']) ?  intval($HTTP_POST_VARS['cat_id']) : intval($HTTP_GET_VARS['cat_id']));
search:
Code: [Select]
$sql = "DELETE FROM ".IMAGES_TEMP_TABLE."
              WHERE image_id = $image_id
             ";
      $site_db->query($sql);
      @unlink($old_media_path);
      @unlink($old_thumb_path);
      $msg .=  "<br><b>".$i.".)</b>&nbsp;".$lang['image_delete_success'].":";
and insert above:
Code: [Select]
$image_name = un_htmlspecialchars(trim($HTTP_POST_VARS['image_name_'.$i]));

Finally, I've got two question:

Is it possible to sort the images like this (in the form before the button 'send' is pressed):
- First added/selected image is number 1.)
- Second added/selected image is number 2.)
and not vice versa?

Can you create an automatically generation of the image names of all added images like this:
imagename_001, imagename_002, imagename_003, ...
You should only enter the base name 'imagename' and the numbers are added. Maybe with a checkbox to select this option.

Thanks!
Greetings


PS: Email file 'email/multi_upload_notify.html' is missing...!

Rembrandt

  • Guest
Re: [Mod] Multiupload with jQuery
« Reply #17 on: August 28, 2012, 08:06:20 PM »
Hi!
..
I think, I've found two bugs (one important and one trivial) in member.php:
...PS: Email file 'email/multi_upload_notify.html' is missing...!

Thank you for the hints, i have updated step 10.) and added step 12.)

mfg Andi

Offline ante226

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: [Mod] Multiupload with jQuery
« Reply #18 on: September 23, 2012, 06:41:52 PM »
bei mir wird der select button nicht richtig angezeigt

Rembrandt

  • Guest
Re: [Mod] Multiupload with jQuery
« Reply #19 on: September 23, 2012, 07:02:45 PM »
bei mir wird der select button nicht richtig angezeigt
und was soll ich jetzt machen deiner Meinung nach?
in deine Profil steht auch keine Webseite..

Offline ante226

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: [Mod] Multiupload with jQuery
« Reply #20 on: September 24, 2012, 06:31:51 PM »
alles gut zeigt seit heute an
vielleicht lag es am cache

Rembrandt

  • Guest
Re: [Mod] Multiupload with jQuery
« Reply #21 on: September 24, 2012, 06:37:20 PM »

Offline ante226

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: [Mod] Multiupload with jQuery
« Reply #22 on: September 27, 2012, 07:29:02 PM »
ich bekomnme wenn ich auf Mutiupload klicke und bilder hochladen möchte ein Http Error 401 fehler
habe ich was vergessen an rechte

m-f-g
ante

Offline clubbu

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: [Mod] Multiupload with jQuery
« Reply #23 on: October 28, 2012, 07:07:16 PM »
Hello Rembrandt,
i have a problem with your component.

When i upload an image or images with extension PNG i have a problem, this page was charging without giving the possibility to insert descriptions or save the photo.

Have a solution?

Rembrandt

  • Guest
Re: [Mod] Multiupload with jQuery
« Reply #24 on: October 28, 2012, 07:25:49 PM »
I have just tested, it works without problems
Is in ACP / General / Settings / upload settings / Valid file extensions: "png" ?

Edit: Search in upload_definitions.php:

$mime_type_match
['png'] = array("image/png""image/x-png");

and replace:

$mime_type_match
['png'] = array("image/png""image/x-png","application/octet-stream");


mfg Andi

Offline de_jeans

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [Mod] Multiupload with jQuery
« Reply #25 on: December 18, 2012, 06:21:01 PM »
Hallo Ante,

wenn Du einen 407 (401 nicht) bekommst, tirtt das auf, weil Du Dich wahrscheinlich hinter einem Proxy befindest.
Gleiches Problem hatte ich auch gerade.
Ohne Proxy gehts sofort!

@Rembrand DANKE für dieses geniale MOD!

J.

Rembrandt

  • Guest
Re: [Mod] Multiupload with jQuery
« Reply #26 on: December 18, 2012, 06:59:49 PM »
Willkommen im Forum!
...
wenn Du einen 407 (401 nicht) bekommst, tirtt das auf, weil Du Dich wahrscheinlich hinter einem Proxy befindest.
Gleiches Problem hatte ich auch gerade.
Ohne Proxy gehts sofort!
..

Das wusste ich ehrlich gesagt auch nicht, Danke für die Info.

mfg Andi

Offline malwin23

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] Multiupload with jQuery
« Reply #27 on: December 19, 2012, 07:08:10 PM »
Hello to all :)

That's mod is really great but i can't use him :(

Can You please help ??

First error what i get is:

Call to undefined function csrf_token() in .../member.php on line 1011

I have deleted that line:
"token" => (string)csrf_token(),

After i try upload pictures and save them i have another errors:

Warning: array_walk() expects parameter 2 to be a valid callback, function 'trim_value' not found or invalid function name in .../member.php on line 876

Fatal error: Call to undefined function filterFileName() in .../functions.php on line 2788

My version of 4images is 1.7.7

Please help Friends :)

Rembrandt

  • Guest
Re: [Mod] Multiupload with jQuery
« Reply #28 on: December 19, 2012, 07:26:47 PM »
Hi!

@malvin23, your 4images version is too old, you found all the new functions  in the current 4images Version.
csrf_token() -> csrf_utlis.php
trim_value, - filterFileName -> functions.php

mfg Andi

Offline malwin23

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] Multiupload with jQuery
« Reply #29 on: December 19, 2012, 07:35:29 PM »
I see Andi :)

I will try to download new version and copy missing functions to my old function.php file

I have to many modifcations to replace files :(

But thank You much for explain:)