4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: Rembrandt on January 04, 2011, 09:36:22 PM

Title: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on January 04, 2011, 09:36:22 PM
Hi!

This is my Version...for 4images V.1.7.8 and higher.

New:  Is the image larger than in "General / Settings / upload settings" is specified, it will be automatically resized.
for better quality, they make the point in "includes / constans.php":
Quote
define ('CONVERT_IS_GD2', 1);

New:  if the field "image name" is empty, filename is "image name".

Bug Fix:
Step 6.) Create Thumbnail from Animated Gifs;


1.)  search in root/categories.php:

$upload_button = "<img src=\"".get_gallery_image("upload_off.gif")."\" border=\"0\" alt=\"\" />";

insert below:

  $multi_upload_url = "";
  $multi_upload_button = "<img src=\"".get_gallery_image("multiupload_off.gif")."\" border=\"0\" alt=\"\" />";
1.2) search:

$upload_button = "<a href=\"".$upload_url."\"><img src=\"".get_gallery_image("upload.gif")."\" border=\"0\" alt=\"\" /></a>";

insert below:

  $multi_upload_url = $site_sess->url(ROOT_PATH."member_multi_upload.php?action=multi_upload&amp;".URL_CAT_ID."=".$cat_id);
  $multi_upload_button = "<a href=\"".$multi_upload_url."\"><img src=\"".get_gallery_image("multiupload.gif")."\" border=\"0\" alt=\"\" /></a>";

1.3) search:

"upload_button" => $upload_button,

insert below:

  "multi_upload_url" => $multi_upload_url,
  "multi_upload_button" => $multi_upload_button,


2.) search in lang/your lang/ main.php:

//--- Image Upload ------------------------------------
//-----------------------------------------------------

insert below:
(deutsch)

$lang['num_addnewimages'] = "Wieviele neue Bilder wollen Sie hinzufügen: ";
$lang['image'] = "Bild";

insert below:
(english)

$lang['num_addnewimages'] = "How many pictures you want to add: ";
$lang['image'] = "Image";


3.) create a new file and call it "multi_upload_notify.html" and store in lang/your lang/email:
(deutsch)

Neue Bilder wurden auf "{site_name}" hinzugefügt und muessen freigeschaltet werden.

Kategorie: {cat_name}
Bildnamen: {image_name}
Dateien: {file_name}

{validation_url}

--
Mit freundlichen Grüßen,
{site_name}

(english)

New images has been uploaded to "{site_name}" and awaits validation.

Category: {cat_name}
Image Name: {image_name}
File: {file_name}

{validation_url}

--
Best regards,
{site_name}


4.)  search in your template/categories.html
Code: [Select]
<td align="right" valign="bottom">{upload_button}</td>
replace:
Code: [Select]
<td align="right" valign="bottom">{multi_upload_button}&nbsp;{upload_button}</td>

5.) create a new file and call it "member_multi_uploadform.html" and store in template/your template:
Code: [Select]
<form method="post" action="member_multi_upload.php" enctype="multipart/form-data" onsubmit="uploadbutton.disabled=true;">
<input type="hidden" name="action" value="uploadimage" />
<table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td valign="top" class="head1">
        <table width="100%" border="0" cellpadding="4" cellspacing="0">
          <tr>
            <td colspan="2" valign="top" class="head1">{lang_user_upload}</td>
          </tr>
          {num_new}
          <tr>
            <td class="row2"><b>{lang_category}</b></td>
            <td class="row2">{cat_name}</td>
          </tr>
          {content}
          {if captcha_upload}
          <tr>
            <td class="row1" valign="top"><b>{lang_captcha}</b></td>
            <td class="row1">
 <a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" alt="" id="captcha_image" /></a> <br />
              <input type="text" name="captcha" size="30" value="" class="captchainput" id="captcha_input" />
              <br />
              <table cellpadding="0" cellspacing="0" width="210">
                <tr>
                  <td width="594">{lang_captcha_desc}</td>
                 </tr>
              </table>
</td>
          </tr>
          {endif captcha_upload}
        </table>
      </td>
    </tr>
  </table>
  <p align="center">
    <input type="hidden" name="num_newimages" value="{num_newimages}">
    <input type="submit" name="uploadbutton" value="{lang_submit}" class="button" />
    <input type="reset" value="{lang_reset}" class="button" />
  </p>
</form>

6.) create a new file and call it "member_multi_upload.php" and store in your galerie root:

<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: member_multi_upload.php                              *
 *        Copyright: (C) 2002-2010 Jan Sorgalla                           *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.10                                               *
 *    Fileversion: 3.1.1 by Rembrandt (vienna-pictures.com)               *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$main_template = "member";
define('GET_CACHES', 1);
define('ROOT_PATH', './');
define('MAIN_SCRIPT', __FILE__);
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');
include_once(ROOT_PATH.'includes/upload.php');
$site_upload = new Upload();
include_once(ROOT_PATH.'includes/search_utils.php');


  if ($action == "") {
    $action = "multi_upload";
  }
  $content = "";
  $txt_clickstream = "";
  $sendprocess = 0;


if ($action == "uploadimage") {

  if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_permission("auth_upload", $cat_id))) {
    show_error_page($lang['no_permission']);
    exit;
  }

  $txt_clickstream = "";
  if ($cat_id && isset($cat_cache[$cat_id])) {
    $txt_clickstream .= get_category_path($cat_id, 1).$config['category_separator'];
  }
  $txt_clickstream .= $lang['user_upload'];

  $num_newimages = intval($HTTP_POST_VARS['num_newimages']);
  $captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";
  $direct_upload = (check_permission("auth_directupload", $cat_id)) ? 1 : 0;
  $upload_cat = ($direct_upload) ? $cat_id : 0;

  $error = array();
  $uploaderror = 0;

  if ($cat_id == 0) {
    $error['cat_id'.$i] = 1;
    $field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $lang['category']), $lang['field_required']);
    $msg .= (($msg != "") ? "<br />" : "").$field_error;
  }

  for ($i = 1; $i <= $num_newimages; $i++) {

    $image_name = un_htmlspecialchars(trim($HTTP_POST_VARS['image_name_'.$i]));

    if ((empty($HTTP_POST_FILES['media_file_'.$i]['tmp_name']) || $HTTP_POST_FILES['media_file_'.$i]['tmp_name'] == "none") && ($remote_media_file == "" || !check_remote_media($remote_media_file))) {
       $error['media_file_'.$i] = 1;
      $msg .= (($msg != "") ? "<br />" : "").$lang['image']." ".$i." ".$lang['image_file_required'];
    }
    
    
 /*   if ($image_name == "")  {
      $error['image_name_'.$i] = 1;
      $field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $lang['image_name']), $lang['field_required']);
      $msg .= (($msg != "") ? "<br />" : "").$lang['image']." ".$i." ".$field_error;
    } */

/*     if (!empty($additional_image_fields)) {
      foreach ($additional_image_fields as $key => $val) {
        if (isset($HTTP_POST_VARS[$key.'_'.$i]) && intval($val[2]) == 1 && trim($HTTP_POST_VARS[$key.'_'.$i]) == "") {
          $error[$key.'_'.$i] = 1;
          $field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $val[0]), $lang['field_required']);
          $msg .= (($msg != "") ? "<br />" : "").$lang['image']." ".$i." ".$field_error;
        }
      }
    } */
  }//end for

  if ($captcha_enable_upload && !captcha_validate($captcha)) {
    $msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
    $error = 1;
  }

  if (!$error) {
    for ($i = 1; $i <= $num_newimages; $i++){
      $uploaderror = 0;
      $image_name = un_htmlspecialchars(trim($HTTP_POST_VARS['image_name_'.$i]));
  // Upload Media file
      $new_name = "";
      if (!empty($HTTP_POST_FILES['media_file_'.$i]['tmp_name']) && $HTTP_POST_FILES['media_file_'.$i]['tmp_name'] != "none") {
        $new_name = $site_upload->upload_file("media_file_".$i, "media", $upload_cat);
        if (!$new_name) {
          $msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['file_upload_error'].":<br /> ".$i.".)".$new_name."</b>".$site_upload->get_upload_errors();
          $uploaderror = 1;
        }
      }
      else {
        $new_name = $remote_media_file;
      }
      if(empty($image_name)){
        $image_name = get_file_name($new_name);
      }
   // Upload thumb file
      $new_thumb_name = "";
      if (!empty($HTTP_POST_FILES['thumb_file_'.$i]['tmp_name']) && $HTTP_POST_FILES['thumb_file_'.$i]['tmp_name'] != "none" && !$uploaderror) {
        $new_thumb_name = $site_upload->upload_file("thumb_file_".$i, "thumb", $upload_cat, get_basefile($new_name));

        if (!$new_thumb_name) {
          $msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['thumb_upload_error'].":<br /> ".$i.".)".$new_thumb_name."</b><br />".$site_upload->get_upload_errors();
          @unlink(MEDIA_TEMP_PATH."/".$new_name);
          $uploaderror = 1;
        }
      }
      elseif (check_remote_thumb($remote_thumb_file)) {
        $new_thumb_name = $remote_thumb_file;
      }
      elseif ($config['auto_thumbnail'] == 1 && !empty($HTTP_POST_FILES['media_file_'.$i]['tmp_name']) && $HTTP_POST_FILES['media_file_'.$i]['tmp_name'] != "none" && !$uploaderror) {
        if ($direct_upload) {
          $src = MEDIA_PATH."/".$cat_id."/".$new_name;
          $dest = THUMB_PATH."/".$cat_id."/".$new_name;
        }
        else {
          $src = MEDIA_TEMP_PATH."/".$new_name;
          $dest = THUMB_TEMP_PATH."/".$new_name;
        }
        $do_create = 0;
        
        if ($image_info = @getimagesize($src)) {
        if ($image_info[2] == 1 || $image_info[2] == 2 || $image_info[2] == 3) {
             $do_create = 1;
          }
        }
        if ($do_create) {
          require_once(ROOT_PATH.'includes/image_utils.php');
          $convert_options = init_convert_options();
          if (!$convert_options['convert_error']&& $image_info[2] == 2||$image_info[2] == 3){
            $quality = 100;
            if (!resize_image($src, $quality, $config['max_image_width'], 1, $config['max_image_height'])){
              $msg .= (($msg != "") ? "<br>" : "")."<b>".$lang['file_upload_error'].": ".$new_name;
              $uploaderror = 1;
            }
          }
          if (!$convert_options['convert_error']) {
            $dimension = (intval($config['auto_thumbnail_dimension'])) ? intval($config['auto_thumbnail_dimension']) : 100;
            $resize_type = (intval($config['auto_thumbnail_resize_type'])) ? intval($config['auto_thumbnail_resize_type']) : 1;
            $quality = (intval($config['auto_thumbnail_quality']) && intval($config['auto_thumbnail_quality']) <= 100) ? intval($config['auto_thumbnail_quality']) : 100;
            if (create_thumbnail($src, $dest, $quality, $dimension, $resize_type)) {
              $new_thumb_name = $new_name;
            }
          }
        }
      }

      if (!$uploaderror) {
      // error_reporting(E_ALL);
        $image_description = un_htmlspecialchars(trim($HTTP_POST_VARS['image_description_'.$i]));
        $image_keywords = un_htmlspecialchars(trim($HTTP_POST_VARS['image_keywords_'.$i]));
        $image_keywords = preg_replace("/[\n\r]/is", ",", $image_keywords);
        $image_keywords_arr = explode(',', $image_keywords);
        array_walk($image_keywords_arr, 'trim_value');
        $image_keywords = implode(',', array_unique(array_filter($image_keywords_arr)));

 /*        $additional_field_sql = "";
        $additional_value_sql = "";
        if (!empty($additional_image_fields)) {
          $table = ($direct_upload) ? IMAGES_TABLE : IMAGES_TEMP_TABLE;
          $table_fields = $site_db->get_table_fields($table);
          foreach ($additional_image_fields as $key => $val) {
            if (isset($HTTP_POST_VARS[$key.'_'.$i]) && isset($table_fields[$key])) {
              $additional_field_sql .= ", $key";
              $additional_value_sql .= ", '".un_htmlspecialchars(trim($HTTP_POST_VARS[$key.'_'.$i]))."'";
            }
          }
        } */

        $current_time = time();
        if ($direct_upload) {
          $sql = "INSERT INTO ".IMAGES_TABLE."
                  (cat_id, user_id, image_name, image_description, image_keywords, image_date, image_media_file, image_thumb_file".$additional_field_sql.")
                  VALUES
                  ($cat_id, ".$user_info['user_id'].", '$image_name', '$image_description', '$image_keywords', $current_time, '$new_name', '$new_thumb_name'".$additional_value_sql.")";
          $result = $site_db->query($sql);
          $image_id = $site_db->get_insert_id();
          if ($result) {
            $search_words = array();
            foreach ($search_match_fields as $image_column => $match_column) {
              if (isset($HTTP_POST_VARS[$image_column.'_'.$i])) {
                $search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column.'_'.$i]);
                if ($image_column == 'image_keywords') {
                  $search_words[$image_column] = explode(',', $search_words[$image_column]);
                }
              }
            }
            add_searchwords($image_id, $search_words);
          }
        }
        else {
          $sql = "INSERT INTO ".IMAGES_TEMP_TABLE."
                  (cat_id, user_id, image_name, image_description, image_keywords, image_date, image_media_file, image_thumb_file".$additional_field_sql.")
                  VALUES
                  ($cat_id, ".$user_info['user_id'].", '$image_name', '$image_description', '$image_keywords', $current_time, '$new_name', '$new_thumb_name'".$additional_value_sql.")";
          $result = $site_db->query($sql);
        }

        $msg_success =  "<b>".$i.".)</b>&nbsp;".$lang['image_add_success'].":<br>";
        $msg_success .= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".$lang['image_name']."&nbsp;<b>".format_text(stripslashes($image_name))."</b> (".$new_name.")";
        $msg_success .= (!$direct_upload) ? "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".$lang['new_upload_validate_desc'] : "";

        $file_extension = get_file_extension($new_name);
        $file = (is_remote($new_name)) ? $new_name : (($direct_upload) ? THUMB_PATH."/".$cat_id."/".$new_name : THUMB_TEMP_PATH."/".$new_name);
        $width_height = "";
        if (!is_remote($file) && $imageinfo = @getimagesize($file)) {
          $width_height = " ".$imageinfo[3];
        }
        $media_icon = "<img src=\"".ICON_PATH."/".$file_extension.".gif\" border=\"0\" alt=\"\" />";
        $site_template->register_vars(array(
          "media_src" => $file,
          "media_icon" => $media_icon,
          "image_name" => format_text(stripslashes($image_name)),
          "width_height" => $width_height
        ));
        $media = $site_template->parse_template("media/".$file_extension);
        $content .=  "<table border=\"0\">\n
                        <tr>\n
                          <td>".$msg_success."</td>\n
                        </tr>\n
                        <tr>\n
                          <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".$media."</td>\n
                        </tr>\n
                      </table>\n
                      <hr>
                      ";
        $site_template->register_vars("content", $content);
        //for mail
        $image_name_array[] = $image_name;
        $new_name_array[] = $new_name;
      }
      else {
        $action = "multi_upload";
        $sendprocess = 1;
      }
    } //end for

    if ($config['upload_notify'] == 1 && !$direct_upload ) {

      $image_name_send = "";
      $new_name_send = "";

      $image_name_send = implode("\",\" ", $image_name_array);
      $new_name_send = implode("\",\" ", $new_name_array);

      include(ROOT_PATH.'includes/email.php');
      $site_email = new Email();

      $config['upload_emails'] = str_replace(" ", "", $config['upload_emails']);
      $emails = explode(",", $config['upload_emails']);

      $validation_url = $script_url."/admin/index.php?goto=".urlencode("validateimages.php?action=validateimages");

      $site_email->set_to($config['site_email']);
      $site_email->set_subject($lang['new_upload_emailsubject']);
      $site_email->register_vars(array(
        "image_name" => stripslashes('"'.$image_name_send.'"'),
        "file_name" => '"'.$new_name_send.'"',
        "cat_name" => $cat_cache[$cat_id]['cat_name'],
        "validation_url" => $validation_url,
        "site_name" => $config['site_name']
      ));
      $site_email->set_body("multi_upload_notify", $config['language_dir_default']);
      $site_email->set_bcc($emails);
      $site_email->send_email();
    }
  }
  else {
    $action = "multi_upload";
    $sendprocess = 1;
  }
}

if ($action == "multi_upload") {
  if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_permission("auth_upload", $cat_id))) {
    show_error_page($lang['no_permission']);
    exit;
  }
  $txt_clickstream = "";
  if ($cat_id && isset($cat_cache[$cat_id])) {
    $txt_clickstream .= get_category_path($cat_id, 1).$config['category_separator'];
  }
  $txt_clickstream .= $lang['user_upload'];

  if (isset($HTTP_GET_VARS['num_newimages']) || isset($HTTP_POST_VARS['num_newimages'])) {
    $num_newimages = (isset($HTTP_GET_VARS['num_newimages'])) ? intval($HTTP_GET_VARS['num_newimages']) : intval($HTTP_POST_VARS['num_newimages']);
  }
  else {
    $num_newimages = 1;
  }

  if (!$sendprocess) {
    $media_file = "";
    $thumb_file = "";
    $image_name = "";
    $image_description = "";
    $image_keywords = "";

  }

  $num_new = "";
  $num_new .=  "<tr>\n<td class=\"row1\"><b>".$lang['num_addnewimages']."</b></td>\n";
  $num_new .=  "<td class=\"row1\">";
  $num_new .=  "<select class=\"categoryselect\" name=\"num\" onChange=\"if(this.options[this.selectedIndex].value){window.location.href='".$site_sess->url("member_multi_upload.php?action=multi_upload")."&";
  $num_new .=  "num_newimages='+this.options[this.selectedIndex].value+'&cat_id=$cat_id'}\">\n";
    for ($i = 1; $i <= 10; $i++) {
      $num_new .=  "<option value=\"$i\"";
      if ($i == $num_newimages) {
        $num_new .=  " selected";
      }
      $num_new .=  ">".$i."</option>\n";
    }
  $num_new .=  "</select></td>\n</tr>\n";

  $content = "";
  for ($i = 1; $i <= $num_newimages; $i++) {

  $media_file = format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['media_file_'.$i])));
  $thumb_file = format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['thumb_file_'.$i])));
  $image_name = un_htmlspecialchars(trim($HTTP_GET_VARS['image_name_'.$i]));
  $image_description = un_htmlspecialchars(trim($HTTP_POST_VARS['image_description_'.$i]));
  $image_keywords = un_htmlspecialchars(trim($HTTP_POST_VARS['image_keywords_'.$i]));
  $image_keywords = preg_replace("/[\n\r]/is", ",", $image_keywords);
  $image_keywords_arr = explode(',', $image_keywords);
  array_walk($image_keywords_arr, 'trim_value');
  $image_keywords = implode(',', array_unique(array_filter($image_keywords_arr)));

  $content .= "
    <tr>
      <td class=\"head1\"><b>".$lang['image']." ".$i."</b></td><td></td>
    </tr>
    <tr>
      <td class=\"row2\" valign=\"top\"><b>".$lang['media_file']."</b><br>
        <span class=\"smalltext\">
          ".$lang['max_filesize']."<b>".$config['max_media_size']."&nbsp;".$lang['kb']."</b><br>
          ".$lang['max_imagewidth']."<b>".$config['max_image_width']."&nbsp;".$lang['px']."</b><br>
          ".$lang['max_imageheight']."<b>".$config['max_image_height']."&nbsp;".$lang['px']."</b><br>
        </span><br>
        <span class=\"smalltext\" valign=\"bottom\"><b>".$lang['allowed_mediatypes_desc']."</b></span>
      </td>
      <td class=\"row2\"><b>Upload:</b><br>
        <input type=\"file\" name=\"media_file_".$i."\" class=\"input\">
        <br>
  <!--  <b>URL:</b><br>
        <input type=\"text\" name=\"remote_media_file_".$i."\"  size=\"30\" value= \"".format_text(stripslashes($remote_media_file), 2)."\" class=\"input\" />
  -->
        <br>
        <br>
        <span class=\"smalltext\">".str_replace(",",", ",$config['allowed_mediatypes'])."</span>
      </td>
    </tr>
    <tr>
      <td class=\"row1\" valign=\"top\"><b>".$lang['thumb_file']."</b><br>
        <span class=\"smalltext\">
          ".$lang['max_filesize']."<b>".$config['max_thumb_size']."&nbsp;".$lang['kb']."</b><br>
          ".$lang['max_imagewidth']."<b>".$config['max_thumb_width']."&nbsp;".$lang['px']."</b><br>
          ".$lang['max_imageheight']."<b>".$config['max_thumb_height']."&nbsp;".$lang['px']."</b><br>
        </span><br>
        <span class=\"smalltext\" valign=\"bottom\"><b>".$lang['allowed_mediatypes_desc']."</b></span>
      </td>
      <td class=\"row1\"><b>Upload:</b><br>
        <input type=\"file\" name=\"thumb_file_".$i."\" class=\"input\">
        <br>
  <!--  <b>URL:</b><br>
        <input type=\"text\" name=\"remote_thumb_file_".$i."\"  size=\"30\" value=\"".format_text(stripslashes($remote_thumb_file), 2)."\" class=\"input\" />
  -->
        <br>
        <br>
          <span class=\"smalltext\">jpg, gif, png</span>
      </td>
    </tr>
    <tr>
      <td class=\"row2\"><b>".$lang['image_name']."</b></td>
      <td class=\"row2\"><input type=\"text\" name=\"image_name_".$i."\"  size=\"30\" value=\"".format_text(stripslashes($image_name), 2)."\" class=\"input\" /></td>
    </tr>
    <tr>
      <td class=\"row1\" valign=\"top\"><b>".$lang['description']."</b></td>
      <td class=\"row1\">
        <textarea name=\"image_description_".$i."\" cols=\"30\" class=\"textarea\" rows=\"5\">".$image_description."</textarea>
      </td>
    </tr>
    <tr>
      <td class=\"row2\" valign=\"top\"><b>".$lang['keywords_ext']."</b></td>
      <td class=\"row2\">
        <textarea cols=\"30\" class=\"textarea\" rows=\"5\" name=\"image_keywords_".$i."\">".$image_keywords."</textarea>
      </td>
    </tr>
  ";
}

  $site_template->register_vars(array(
    "content" => $content,
    "num_new" => $num_new,
    "num_newimages" => $num_newimages,
    "lang_num_addnewimages" => $lang['num_addnewimages'],
    "image_name" => format_text(stripslashes($image_name), 2),
    "lang_user_upload" => $lang['user_upload'],
    "cat_id" => $cat_id,
    "cat_name" =>  get_category_dropdown($cat_id),
    "lang_category" => $lang['category'],
    "lang_submit" => $lang['submit'],
    "lang_reset" => $lang['reset'],
    "lang_captcha" => $lang['captcha'],
    "lang_captcha_desc" => $lang['captcha_desc'],
    "captcha_upload" => (bool)$captcha_enable_upload
  ));
  $content = $site_template->parse_template("member_multi_uploadform");

}
//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>";
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  "content" => $content,
   "msg" => $msg,
  "clickstream" => $clickstream,
  "lang_control_panel" => $lang['control_panel']
));
$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');
?>


7.)  search in includes/upload.php: (patch from @Vano  :D)

$this->max_height['media'] = $config['max_image_height'];

insert below:

$this->auto_image['media'] = 1;

7.1) search:

    $this->image_size = @getimagesize($this->upload_file);
    $ok = 1;

insert below:

    if ($this->auto_image[$this->image_type]) {
      return 1; //auto image is on, don't need check for anything else.
    }



8.)  copy the two file from the attachment in templates/your templates/images


mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Sunny C. on January 04, 2011, 09:40:15 PM
JA!
SUPER!
ENDLICH!

VIELEN DANK!
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on January 04, 2011, 09:45:35 PM
Danke! ich hoffe nur das alles funktioniert und ich nicht wieder was vergessen habe.  :)
Title: Re: [Mod] Multiupload V.3.1.1
Post by: x23piracy on January 05, 2011, 02:25:41 AM
Hi,

1.)  search in root/categories.php:

$member_upload_url = "";


hier meinst du doch sicher:

Code: [Select]
$upload_url = "";
oder nicht?

Im englischen email part ist wieder eins dieser netten Absatz Probleme vorhanden.

Danke für deine Arbeit  :thumbup:

PS. Ich bin bald auch soweit mit meinem Upload-Tool, ich hoffe es besteht dann ein wenig interesse da viel Arbeit drin steckt.
Ich hoffe ihr zwei hattet ein paar schöne Tage, viel Glück fürs neue Jahr und alles Gute.


Gruß Jens
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on January 05, 2011, 05:23:28 AM
@x23piracy, danke für den hinweis...
Title: Re: [Mod] Multiupload V.3.1.1
Post by: mihtar on January 10, 2011, 05:56:33 PM
Russian button
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on January 10, 2011, 06:00:15 PM
Welcome to the Forum!
Russian button

Thank You!  :)
Title: Re: [Mod] Multiupload V.3.1.1
Post by: hitzi on January 10, 2011, 07:11:52 PM
Was habe ich falsch gemacht.

Bei mir kommt immer.

No input file specified.
Title: Re: [Mod] Multiupload V.3.1.1
Post by: cyberax on January 11, 2011, 06:21:56 PM
Hallo,

ich habe den Mod wie beschrieben integriert.
Nachdem ich das "Multiuploadformular" ausgefüllt habe und auf Abschicken klicken kommt die Meldung: "The requested URL /_xyz/member_multi_upload.php was not found on this server."
"_xyz" ist das root Verzeichnis meiner Homepage und nicht meiner Galerie. Bestimmt wird irgendwo ein Pfad falsch zugewiesen, oder?

Mfg
Daniel

P.S.: Habe den Fehler gefunden. ->
in member_multi_uploadform.html
<form method="post" action="../member_multi_upload.php" enctype="multipart/form-data" onsubmit="uploadbutton.disabled=true;">
mit
<form method="post" action="member_multi_upload.php" enctype="multipart/form-data" onsubmit="uploadbutton.disabled=true;">

ersetzt.
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on January 11, 2011, 06:53:30 PM
.... Bestimmt wird irgendwo ein Pfad falsch zugewiesen, oder?...
ganz ehrlich, den schmarn wollte ich vor den posten noch editieren habe es aber letztendlich vergessen .
aber hauptsache ist das es jetzt funktioniert.  :)

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Jan-Lukas on January 11, 2011, 07:00:16 PM
muss ich wohl doch mal updaten, auf der 1.7.7 will das Teil nicht klappen  :roll:
aber später mal  :wink:
Title: Re: [Mod] Multiupload V.3.1.1
Post by: cyberax on January 11, 2011, 07:19:33 PM
Ja funktioniert nun einwandfrei.

Vielen Dank für den tollen Mod!
Mfg Daniel
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on January 11, 2011, 07:57:55 PM
muss ich wohl doch mal updaten, auf der 1.7.7 will das Teil nicht klappen  :roll:
...
ich nehme mal an du meinst die schlüsselwörter  :)
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Jan-Lukas on January 11, 2011, 08:51:17 PM
eher so was hier
Warning: array_walk() [function.array-walk]: Unable to call trim_value() - function does not exist in /is/htdocs/wp1186757_MZ0O7VPUFQ/www/4images/member_multi_upload.php on line 348

diese function.array-walk gibt es glaube ich erst ab 1.7.8
 
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on January 11, 2011, 09:04:51 PM
nein das ist eine php funktion, aber kommentier doch mal die zwei betreffenden zeilen in der "member_multi_upload. php" einfach mal aus.
habe gerade nachgesehn, diese funktion trim_value() hat es in der v.1.7.7 noch nicht gegeben.
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Jan-Lukas on January 11, 2011, 09:44:43 PM
hatte ja schon 2 dieser Meldungen ausgemerzt, die dritte verbirgt sich noch in der functions.php, nur da ist einiges zu updaten ;)
mal sehn ob ich nachher noch Lust dazu finde.
Und dann schauen ob es klappt, und erst dann geht es zu den richtigen Galerien
Title: Re: [Mod] Multiupload V.3.1.1
Post by: wasimkhan on January 18, 2011, 11:07:32 AM
Warning: array_walk() expects parameter 2 to be a valid callback, function 'trim_value' not found or invalid function name in C:\wamp\wwwmember_multi_upload.php on line 349

 plz solve this i shall be very thank ful
 
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on January 18, 2011, 11:34:24 AM
... plz solve this i shall be very thank ful...
no problem,please update your galerie.

...
This is my Version...for 4images V.1.7.8 and higher.
......

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: wasimkhan on January 18, 2011, 03:09:42 PM
Code is working 100% but annotation is not working in multi upload my dear Rembrandt,mawenzi  plz solve this prob having no words for your thank u r the man of honour
Title: Re: [Mod] Multiupload V.3.1.1
Post by: gudservo on January 21, 2011, 03:45:40 PM
HY,

 Thanx for this Mod but i'm getting this error


Warning: Unexpected character in input: '\' (ASCII=92) state=1 in C:\Documents and Settings\Servo.GUDSERVO\My Documents\VertrigoServ\www\otakuart\member_multi_upload.php on line 2

Parse error: syntax error, unexpected T_STRING in C:\Documents and Settings\Servo.GUDSERVO\My Documents\VertrigoServ\www\otakuart\member_multi_upload.php on line 2
Title: Re: [Mod] Multiupload V.3.1.1
Post by: juewei on February 05, 2011, 11:36:49 PM
Super geht richtig gut!!!!

Danke!

Eiine Frage habe ich noch, zurzeit sind 10 Bilder möglich. Ich würde das gerne auf 3 reduzieren, wo kann ich das machen?

Noch eine Frage, wenn ich Uploade ohen Freischaltung im Admin eingestellt habe, dann wird dann auch keine Mail gesendet, oder?

Gruß
Jürgen
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on February 06, 2011, 05:17:21 AM
...
für nur drei bilder, suche in der member_multi_upload.php:
for ($i = 1; $i < 11; $i++)
und ersetze es mit:
for ($i = 1; $i < 4; $i++)

e-mail wird bei direkt upload nicht versendet.

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: juewei on February 06, 2011, 09:54:56 AM
danke dann konnt eich ja lange nach einer 10 suchen  :)

dann müsste ich als wenn ich 5 Bilder haben möchte einfach nur eine 6 schreiben.

danke
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on February 06, 2011, 09:59:58 AM
danke dann konnt eich ja lange nach einer 10 suchen  :)
...
:mrgreen:

man kann es entweder so schreiben:
for ($i = 1; $i < 11; $i++)
oder so:
for ($i = 1; $i <= 10; $i++)
wobei die zweite variante die schönere ist und für weniger verwirrung sorgt.
ich habe meinen ersten post dahingehend angepasst.

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: juewei on February 06, 2011, 10:05:38 AM
super dann finde das auch der Jürgen :D
Habe mich jetzt für 5 entschieden

for ($i = 1; $i <= 5; $i++)

müsste ja dann so richtig sein.

ich danke dir für deine super Arbeit.

Kennst du dich auch mit der buddylist aus? Hatte da auch mal eine Frage gestellt, und zwar wär da super einen Link zu haben "Alle Fotos vonn Freunden anzeigen"
Gruß
Jürgen


UPDATE:

beim dem Mulitiupload ist mir was aufgefallen.

mann sollte die Auswahl Bildanzahl und Rubrik tauschen.
Denn wenn man die Rubrik auswählt und dann die Bilderzahl, dann  wird die dir Rubrik wieder auf Neutral gestellt... das ist etwas schlecht, denn man stellt ja eigentlich der Reihenfolge nach ein, oder?

was müsste ich ändern?
Gruß
Jürgen
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on February 06, 2011, 03:52:13 PM
....
beim dem Mulitiupload ist mir was aufgefallen.
.....
suche in der member_multi_uploadform.html:
Code: [Select]
          <tr>
            <td class="row2"><b>{lang_category}</b></td>
            <td class="row2">{cat_name}</td>
          </tr>
         {num_new}
und ersetze es mit:
Code: [Select]
          {num_new}
          <tr>
            <td class="row2"><b>{lang_category}</b></td>
            <td class="row2">{cat_name}</td>
          </tr>
in ersten post habe ich das jetzt geändert.

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: FotoRalle on February 09, 2011, 09:06:57 AM
Vielen Dank, dass du dir die Arbeit und Mühe gemacht hast. Jetzt ist die Galerie fast perfekt. :mrgreen:
Title: Re: [Mod] Multiupload V.3.1.1
Post by: juewei on February 27, 2011, 08:57:52 PM
Mir ist aufgefallen, dass meine User
Ungeduldig sind und denke der Upload geht nicht weil, wenn man mehre Bilder Upload es etwas länger dauert.
Gibt es eine Möglichkeit – BITTE WARTEN – während des Upload einzublenden?
 :D
Title: Re: [Mod] Multiupload V.3.1.1
Post by: juewei on March 04, 2011, 08:06:53 PM
habe jetzt selber mal probiert ob ich da eine Einblendung "Bitte warten" machen kann, aber leider musste ich danach alles neu machen... da bin ich wohl zu alt für.
Aber vielleicht gibt es ja hier jemanden, der das kann? :D
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Jockl on March 07, 2011, 03:43:25 PM
Ich habe den Multiupload V.3 bei meiner 1.7.9-Installation eingebaut und funktioniert sehr gut. Vielen Dank!

Ein kleines Problem habe ich: Nach dem Upload werden nicht die Original-Dateien angezeigt, sondern nur die Thumbnails vergrößert angezeigt, was etwas unschön ist. Wo kann ich das ändern?
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on March 07, 2011, 05:02:47 PM
... Nach dem Upload werden nicht die Original-Dateien angezeigt, sondern nur die Thumbnails vergrößert angezeigt,....
die original dateien werden auch nicht angezeigt, nur die thumbnails.
schau mal nach was du du in deiner media/jpg.html drinnen steh hast.
Title: Re: [Mod] Multiupload V.3.1.1
Post by: excursionista on March 20, 2011, 12:49:26 PM
Hello,
I try this MOD, and it's very useful for me.
But I have a problem, when a user logout from multiupload page, then apears this error page:

Server Error in Application "995_xxxxxxxxxxxxxxxx.COM"Internet Information Services 7.0
Error Summary
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. Detailed Error Information
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL xxx: xxx: xxxxxxxxxxxxxx: :80/FotosACA/member_multi_upload. php&cat_id=3
Physical Path D:\XVRT\xxxxxxxxxxxxxx.com\Html\FotosACA\member_multi_upload.php&cat_id=3
Logon Method Anonymous
Logon User Anonymous
 Most likely causes:
•The directory or file specified does not exist on the Web server.
•The URL contains a typographical error.
•A custom filter or module, such as URLScan, restricts access to the file.
 Things you can try:
•Create the content on the Web server.
•Review the browser URL.
•Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here.
 Links and More InformationThis error means that the file or directory does not exist on the server. Create the file or directory and try the request again.

What can I do? Thanks in advance, and sorry for my englhish,     Xavier
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on March 20, 2011, 02:54:05 PM
Welcome to the Forum!

step 3.) have you done in your lanuage?

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: excursionista on March 20, 2011, 07:34:21 PM
Thank you for your fast response.
Yes, I create a new file "multi_upload_notify.html", and estore in lang/my lang/email. But the problem is when user is in "multiupload page", and he click "logout" from this page.
Thank you in advance,
Xavier
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on March 20, 2011, 07:50:33 PM
.... and he click "logout" from this page.
...
ah ..ok..
search in root/logout.php:

if (!preg_match("/index\.php/", $url) && !preg_match("/lightbox\.php/", $url) && !preg_match("/login\.php/", $url) && !preg_match("/register\.php/", $url) && !preg_match("/member\.php/", $url)) {
  redirect($url);
}

and replace:

if (!preg_match("/index\.php/", $url) && !preg_match("/lightbox\.php/", $url) && !preg_match("/login\.php/", $url) && !preg_match("/register\.php/", $url) && !preg_match("/member\.php/", $url) && !preg_match("/member_multi_upload\.php/", $url)) {
  redirect($url);
}


mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: excursionista on March 20, 2011, 08:45:38 PM

Very good!!! Thank you very much, I tried it, and it works very well. Fantastic.
Thank's,

Xavier
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Scarala on April 29, 2011, 07:28:58 AM
Gibt es eine möglichkeit, in der Member_multi_upload.php die Zeile
  $num_new .=  "<tr>\n<td class=\"row1\"><b>".$lang['num_addnewimages']."</b></td>\n";
zu löschen und dafür am ende der Upload-Tabelle einen Button "Uploadfeld hinzufügen" einzufügen, so, dass die Seite nicht neu geladen wird? Denn wenn man jetzt die Anzahl der Felder doch noch mal verändert, dann sind alle Eingaben weg.

Oder gibt es alternativ die Möglichkeit, das er nicht genutzte Upload-Felder nicht beachtet? Denn jetzt gibt er nen Upload-fehler, wenn ein Dateifeld leer ist...
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on April 29, 2011, 07:42:04 AM
Willkommen im Forum!
...zu löschen und dafür am ende der Upload-Tabelle einen Button "Uploadfeld hinzufügen" einzufügen, so, dass die Seite nicht neu geladen wird? Denn wenn man jetzt die Anzahl der Felder doch noch mal verändert, dann sind alle Eingaben weg.

Oder gibt es alternativ die Möglichkeit, das er nicht genutzte Upload-Felder nicht beachtet? Denn jetzt gibt er nen Upload-fehler, wenn ein Dateifeld leer ist...
zu deiner ersten frage, über das habe ich mir auch schon gedanken gemacht, mal sehn...

zu deiner zweiten frage, pflichtfeld ist ja eh nur der "bildname" und der wird für die galerie benötigt.

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Scarala on April 29, 2011, 07:49:53 AM
Kann man denn nicht ne Abfrage einbauen? So, dass, wenn das dateifeld leer ist, das Bildname-Feld kein Pflichtfeld mehr ist? Dann müsste das doch eigentlich gehen...

Kann leider nicht selbst programmieren...
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on April 29, 2011, 07:30:14 PM
Kann man denn nicht ne Abfrage einbauen? So, dass, wenn das dateifeld leer ist, das Bildname-Feld kein Pflichtfeld mehr ist? Dann müsste das doch eigentlich gehen...
..
ich habe im eingangspost schritt 6.) dahingehen editiert das wenn das "Feld" "Bildname:" leer ist, das der Dateiname als Bildname verwendet wird.

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Scarala on April 29, 2011, 08:29:41 PM
Auch nicht schlecht, aber nicht ganz das, was ich brauche  :wink:

Quote
Kann man denn nicht ne Abfrage einbauen? So, dass, wenn das dateifeld leer ist, das Bildname-Feld kein Pflichtfeld mehr ist? Dann müsste das doch eigentlich gehen...

Deine Anderung machts ja im Enteffekt umgekehrt und bringt mir nux gegen den Uploadfehler bei leeren Uploaddatei-Feldern... Also, dass er dann, wenn ein Uploaddatei-Feld leer ist, er Das ganze Formular ignoriert beim hochladen...

Würd mich freuen, wenn man das hinbekommt...

MFG

Scarala
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Warrior on May 06, 2011, 12:56:34 AM
Does this work with the Image Resize/Big Folder MOD?
Title: Re: [Mod] Multiupload V.3.1.1
Post by: mmarschner on May 08, 2011, 07:27:47 PM
Hallo Rembrandt,

ich habe mir heute 4images 1.7.10 installiert und das funktioniert einwandfrei. Dann habe ich die Anpassungen für Multiupload so vorgenommen, wie Du es beschrieben hast. Danach habe ich einige Fehler, die ich so nicht finden kann und einmal Deine Ideen dazu haben möchte.

Am Ende der Uploadseite sollte ein Bestätigungscode angezeigt werden. Bei mir ist das Feld aber leer, bzw. es wird das kleine rote Kreuz oben links angezeigt  :cry:. Dieser Fehler tritt auch bei dem Einzelupload auf.

Im Administratorenpanel bekomme ich verschiedene Fehlermeldungen im Kopf angezeigt:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/motoly.de/httpdocs/gallerie/lang/deutsch/main.php:1) in /var/www/vhosts/motoly.de/httpdocs/gallerie/admin/admin_functions.php on line 179

Die Meldung erscheint 5 mal bis .... line 183.

Weiterhin sind im Administratorenpanel alle Umlaute durch Sonderzeichen ersetzt. Dieses Problem tritt bei mir auch bei der Auswahl der englischen Spachversion auf (Bestätigungscode und Fehler im Adminpannel.

Hast Du eine Idee woran das liegen kann.

Fragende Grüße aus Hamburg von Michael
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on May 09, 2011, 06:11:14 AM
Willkommen im Forum!

zu der meldung "Warning: Cannot modify header information - headers already sent by"
http://www.4homepages.de/forum/index.php?topic=3378.msg13854#msg13854

zu dem rest, hast du die dateirechte am server alle richtig gesetzt?
siehe dazu root/docs/Installation.deutsch.txt
alternativ dazu kannst du das ausprobieren:  http://www.4homepages.de/forum/index.php?topic=27810.0

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: mmarschner on May 10, 2011, 08:59:02 PM
Hallo Andi,

erst mal danke für die Informationen. Ich habe alles noch einmal kontrolliert, die Änderungen in Originaldateien noch einmal händisch eingetragen - nicht kopiert -, Deine Anweisungen befolgt, aber ich habe immer noch das Problem im Adminpanel und in der Gallerie. Dort bekomme ich folgende Meldung, bevor ich mich anmelde über dem Seitenkopf:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/motoly.de/httpdocs/gallerie/lang/deutsch/main.php:1) in /var/www/vhosts/motoly.de/httpdocs/gallerie/includes/sessions.php on line 101

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/motoly.de/httpdocs/gallerie/lang/deutsch/main.php:1) in /var/www/vhosts/motoly.de/httpdocs/gallerie/includes/sessions.php on line 101

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/motoly.de/httpdocs/gallerie/lang/deutsch/main.php:1) in /var/www/vhosts/motoly.de/httpdocs/gallerie/includes/sessions.php on line 101

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/motoly.de/httpdocs/gallerie/lang/deutsch/main.php:1) in /var/www/vhosts/motoly.de/httpdocs/gallerie/includes/functions.php on line 114

 Und wenn ich mich dann angemeldet habe, bekomme ich nur noch eine leere Seite angezeigt. Vielleicht kannst Du einmal über die Dateien drüberschauen. Ich bin der Meinung dass so alles ist, wie es sein soll.

Ein "verzweifelnder" Michael :-)
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Warrior on May 11, 2011, 02:50:33 AM
Does this work with the Image Resize/Big Folder MOD?
Guess not.
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on May 11, 2011, 07:01:55 AM
... Dort bekomme ich folgende Meldung, bevor ich mich anmelde über dem Seitenkopf:
....
und ohne die änderungen funktioniert die galerie?

speicher dir die main.php aus den downloadpaket erneut auf deinen server ab, aber stelle vorher die kodierung auf "ANSI" ein.
genauso die multi upload dateien, auf ANSI einstellen und dann auf den server kopieren.

wenn das auch nicht funktioniert kannst du mit FTP zugang per PM geben, wird aber etwas dauern da ich zur zeit unterwegs bin.

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: mmarschner on May 11, 2011, 11:56:05 AM
Hallo Andi,

ohne Änderungen funktioniert die Galerie und das Adminpanel fast einwandfrei - es werden hin und wieder Umlaute nicht richtig angezeigt, aber das kläre ich zur Zeit mit meinem Webmaster.

Das mit den Zugang ist kein Problem, ich werde es aber noch einmal mit Ansi-Codierung probieren und mich dann wieder melden. Wird aber möglicherweise erst zum Wochenende was, da ich auch viel unterwegs bin.

Michael
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on May 11, 2011, 01:12:01 PM
... es werden hin und wieder Umlaute nicht richtig angezeigt,...
daran liegt ja das problem, du mußt die main.php und alle anderen dateien  unter ANSI auf deinen FTP speichern.
Title: Re: [Mod] Multiupload V.3.1.1
Post by: mmarschner on May 11, 2011, 01:23:37 PM
Hallo Andi,

dann verstehe ich nicht, warum die Galerie überhaupt funktioniert.

Ich arbeite mit ws_ftp welches im automatischen Modus eingestellt ist. Damit habe ich die aktuelle Version komplett übertragen und das läuft. Warum dann die geänderten Dateien nicht?

Fragende Grüße aus Hamburg

Michael
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on May 11, 2011, 02:05:17 PM
du verwechselst etwas, die übertragung per FTP client läuft entweder automatisch ASCII oder Binär.
ich rede von dem editor wenn du die datei bearbeitest, wie der editor die datei wieder abspeichert.
"ANSI" "UTF-8" e.t.c.

Title: Re: [Mod] Multiupload V.3.1.1
Post by: mmarschner on May 12, 2011, 09:46:14 PM
Hallo Andi,

nun funktioniert es. Ich habe die ganzen Anpassungen noch einmal auf den Originaldateien vorgenommen und nicht mehr mit WS-FTP übertragen, sondern mit FileZilla. Ich habe zwar keine Ahnung, was bei den Programmen unterschiedlich läuft, aber es ist ja nun auch egal.

Jetzt muss ich noch einmal den Upload prüfen, aber dazu muss ich erst einmal Bilder vorbereiten. 10 Megapixelbilder sind immer so groß. Wenn das dann klappt, werde ich weitere MODs einbinden. Ich habe da ein paar interessante Dinge hier im Forum gesehen.  :wink:

Noch einmal vielen Dank und ich hoffe, dass ich jetzt alleine zurecht komme.

Michael

PS.: Die Galerie findest Du unter motoly.de/gallerie
Title: Re: [Mod] Multiupload V.3.1.1
Post by: mmarschner on May 16, 2011, 02:40:09 PM
Hallo Andi,

folgende Fragen sind aufgetreten:

Ist es möglich, beim Bilderupload (einzeln oder per Multiupload) den Bestätigungscode abzuschalten?

Kannst Du mir sagen, ob der Multiupload auch mit dem Auto Imageresize - http://www.4homepages.de/forum/index.php?topic=7700.0 - funktioniert?

Michael
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on May 16, 2011, 03:12:44 PM
zu ersten, kopiere diese zeile in deine "config.php" vor "?>"
$captcha_enable_upload       = 0;

zu deiner anderen frage, da kann ich dir im moment leider nicht weiter helfen.

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: mmarschner on May 17, 2011, 08:36:30 PM
Hallo Andi,

noch eine Frage.

Kann man Multiload mit den Exifdaten und den GEO-Daten erweitern?

Schon einmal danke für die Antwort und die Hilfe in den letzten Tagen.

Michael
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Sunny C. on May 19, 2011, 07:35:04 PM
Du Rembrandt,
ist es auch möglich eine Multi- Funktion im ACP einzubauen?
Mit der [MOD] More Pictures on Detail Page (http://www.4homepages.de/forum/index.php?topic=25279.0) ist es ja möglich mehrere Bilder anzuzeigen, aber geht das eventuell auch direkt von der "Bilder hinzufügen"- Funktion im ACP aus? So das man wahlweise weitere Upload+Remotefelder hinzufügen kann, wenn man beispielsweise auf ein kleines "+" klickt oder so in der Art.

Die Standard- Funktion im ACP fügt ja nur weitere Bilder hinzu und nicht mehrere Bilder in einer Details- Ansicht
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on May 19, 2011, 08:22:45 PM
...Kann man Multiload mit den Exifdaten und den GEO-Daten erweitern?
...
sollte funktionieren, am einfachsten wäre es wenn schon die bilder exifdaten enthalten, sprich bei den bilder werden beim hochladen die EXIF und IPTC daten ausgelesen und in die DB gespeichert.
x-mal die googlemap anzeigen und auch noch die zusätzlichen eingabefelder einzubauen ist doch recht aufwendig, für das würde ich weiterhin das normale uploadformular verwenden.

... So das man wahlweise weitere Upload+Remotefelder hinzufügen kann, wenn man beispielsweise auf ein kleines "+" klickt oder so in der Art.
...
die bilder danach zur anzeige zu bringen wäre kein problem, das gäbe es durch den mod "more pictures..." eh schon, nur das problem was ich damit hätte wäre die javascript function die man dafür benötigte, mit dem schmarn bin ich auf kriegsfuß.

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Sunny C. on May 19, 2011, 09:46:39 PM
... So das man wahlweise weitere Upload+Remotefelder hinzufügen kann, wenn man beispielsweise auf ein kleines "+" klickt oder so in der Art.
...
die bilder danach zur anzeige zu bringen wäre kein problem, das gäbe es durch den mod "more pictures..." eh schon, nur das problem was ich damit hätte wäre die javascript function die man dafür benötigte, mit dem schmarn bin ich auf kriegsfuß.
mfg Andi
Ok, dass klingt ja schon sehr interessant. Was wäre denn wenn man dafür Ajax verwendet? Ajax arbeitet ja bekanntlich sehr gut mit php.

Eventuell kann das helfen: http://webdeveloperplus.com/jquery/ajax-multiple-file-upload-form-using-jquery/
Oder das?: http://www.blogwave.de/jquery-multiple-file-upload-web-20-php-tutorial.html
Iframe Methode: http://www.mokisystems.com/blog/ajax-multi-file-upload-with-php-iframe-javascript/

Eventuell kann dir davon was helfen!?
Oder sowas: http://phpfileuploader.com/demo/index.php
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Nosferatu on June 25, 2011, 12:37:27 PM
Hallo,

ich habe 2 Fehler und 1 frage

Erledigt: 1) es funktioniert "nur" wenn ich "direkt upload" aktiviert habe.... sonst ladet der zwar aber bild kommt keins rauf... warum ? Aber im Admin center sind die Bilder .... nur am server nix wenn direkt upload aus gemacht wird...

2) wenn ich upload fertig habe wird nur text angezeigt aber nicht das bild, warum ?

du kannst upload hier testen
http://www.pj-firepower.com/picgallerie/categories.php?cat_id=432

3) gibt es die möglich, dass der beim direkt upload gleich thumnails erstellt ?

grad gesehen, der upload in den thumnails ordner funkt irgendwie nicht ...


sorry war mein fehler ^^ ich hab nicht gesehen, das es im Adminbereich einen button für Auto-Thumbnails gibt ^^

mfg
jeff
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on June 25, 2011, 07:47:14 PM
also der mod erstellt ganz sicher thumbnails auch beim direktupload, als admin und user
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Nosferatu on June 25, 2011, 07:56:12 PM
ja ^^ ich mach selbst alles über FTP und dann neue bilder checken ;)

daher habe ich "Automatisch Thumbnails erstellen" auf Nein gestellt gehabt noch.

Ich finds aber praktisch mein upload mit deinen upload zu kombinieren ^^ so kann ich ohne probleme auf arbeit usw massenweise pics einfügen, und gäste können wenn sie wollen multi upload machen wo sie alles beschreiben ;)

toll wärs nur wenn man das ajax upload script auch so nutzen könnte wie deines, dass automatisch thumbnails usw erstellt werden :)
vieleicht machst du das ja mal ;)
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on June 25, 2011, 07:57:15 PM
alles klar  :)
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Nosferatu on June 26, 2011, 03:29:20 PM
heißt es du lässt dir da was einfallen :)

wäre nämlich schon toll, wenn man einfach nur 30 pics auswählen braucht und die automatisch dann drinnen sind, so als wärde man mit FTP uploaden und dann aktivieren ....
Title: Re: [Mod] Multiupload V.3.1.1
Post by: clubbu on July 26, 2011, 09:53:22 AM
I have a problem...

http://www.4homepages.de/forum/index.php?topic=7700.0;msg=158412

Have you a solution?
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on July 26, 2011, 01:25:37 PM
...Have you a solution?
Have they no longer interested?
http://www.4homepages.de/forum/index.php?topic=29816.0
Title: Re: [Mod] Multiupload V.3.1.1
Post by: clubbu on July 26, 2011, 02:03:02 PM
...Have you a solution?
Have they no longer interested?
http://www.4homepages.de/forum/index.php?topic=29816.0

I used this feature

I have a problem now as to resize the multiupload


-------------

Update

I have installed in http://multi.cripionieri.it/ a new versione of 4images (1.7.10).

I have installed *ONLY* Mod Multiupload.

When i UPLOAD two or more images the system doesn't resize the image... is normally?
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on July 27, 2011, 06:24:19 AM
....When i UPLOAD two or more images the system doesn't resize the image... is normally?
without this mod it's the same, 4images have no resize function.
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on July 29, 2011, 08:13:32 AM
Code Update step 6.) 7.) 7.1)

New: Is the image larger than in "General / Settings / upload settings" is specified, it will be automatically resized.

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Markus/TSC on August 07, 2011, 11:31:50 AM
Hallo Rembrandt!

Bei mir werden keine Thumbnails der hochgeladenen Bilder erstellt??
GD Bibliothek ist allerdings eingstellt!
Der Autothumbnailer im ACP ist auch an...

Woran liegt das Problem?

Markus
Title: Re: [Mod] Multiupload V.3.1.1
Post by: clubbu on August 08, 2011, 03:49:54 PM
hello Remb,

you can integrate ajax upload in your mod?
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Saschilys on August 13, 2011, 04:12:55 PM
Hallo Rembrandt!

Bei mir werden keine Thumbnails der hochgeladenen Bilder erstellt??
GD Bibliothek ist allerdings eingstellt!
Der Autothumbnailer im ACP ist auch an...

Woran liegt das Problem?

Markus

Genau das selbe Problem habe ich auch -.-
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Markus/TSC on August 13, 2011, 05:06:43 PM
Genau das selbe Problem habe ich auch -.-

Ich habe Rembrandt schon per PN gefragt, aber er hatte leider keine Lösung für mich parat.
Ich nehme an, es "beißt" sich mit irgendeinem anderen Mod...
Title: Re: [Mod] Multiupload V.3.1.1
Post by: repentagliaiv on September 03, 2011, 11:58:51 AM
Hi,
thanks for the great job (4images really lacked it) but, well, it is not working for me.

I followed all the instructions, can see the "Multipload" button but when I click on it I get this message:

Parse error: syntax error, unexpected T_VARIABLE in /home/scoutbu1/public_html/immagini/member_multi_upload.php on line 1

I use Chrome, the url shows

http:/.../immagini/member_multi_upload.php?action=multi_upload&cat_id=2


4images version is 1.7.9

php version 5.2.14


Thanks in advance.
A.
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on September 03, 2011, 01:05:18 PM
Welcome to the Forum!
....Parse error: syntax error, unexpected T_VARIABLE in /home/scoutbu1/public_html/immagini/member_multi_upload.php on line 1....

post your "member_multi_upload.php "

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: repentagliaiv on September 03, 2011, 03:27:14 PM
Thanks Rembrandt, issue solved...I saw that after creating the file and then uploading it, if I downloaded and opened the same file it was all displayed on one single line....
I was using Notepad++ on WinXP. Then I did the same with Xubuntu and everything worked...

Anyway thanks for answering!

Now I can go on with my trials..
Title: Re: [Mod] Multiupload V.3.1.1
Post by: gerbert 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
Title: Re: [Mod] Multiupload V.3.1.1
Post by: clubbu on September 07, 2011, 03:08:10 PM
Hello,

http://www.4homepages.de/forum/index.php?topic=30014.0;msg=158889

It's possible for multi upload?
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt 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;
    }
Title: Re: [Mod] Multiupload V.3.1.1
Post by: clubbu on September 07, 2011, 09:46:44 PM
Thanks .. work
Title: Re: [Mod] Multiupload V.3.1.1
Post by: gerbert 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 
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt 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
Title: Re: [Mod] Multiupload V.3.1.1
Post by: gerbert 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
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on September 23, 2011, 07:34:09 AM
 remove the '^' , it's a bug from copy and paste
Title: Re: [Mod] Multiupload V.3.1.1
Post by: juewei 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
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt 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 ####################################################################
Title: Re: [Mod] Multiupload V.3.1.1
Post by: cch 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?
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt 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
Title: Re: [Mod] Multiupload V.3.1.1
Post by: MrAndrew 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] == 1 || $image_info[2] == 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_copy, 0755);

   }
 }
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
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt 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_copy, 0755);
                }
              }
              if ($result == true){
                copy($src, $src_copy."/".$new_name);
              }
            }
//############ End Upload to Big folder #######################


mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: MrAndrew on August 25, 2012, 08:07:29 AM
Yes, it is! Work perfectly!
Title: Re: [Mod] Multiupload V.3.1.1
Post by: MrAndrew on October 28, 2012, 03:21:19 PM
Rembrandt, I don`t know exactly why, but EXIF info had lost while uploading. Start Upload to Big folder may be caused? IPTC work`s good
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on October 28, 2012, 04:47:15 PM
i can not say what it is, but i think not there is problem from this mod.
The EXIF and IPTC DATA must come from the Big pictures.

mfg Andi
Title: Re: [Mod] Multiupload V.3.1.1
Post by: MrAndrew on October 28, 2012, 07:32:47 PM
Hm, very strange. Normal upload work`s fine. But multi-uplaod, with/without, original code from first post, not works. Only show IPTC date created!  :(
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Warrior on May 13, 2013, 09:00:08 AM
Installed the MOD and got these errors:

Notice: Undefined index: thumb_file_1 in /home/***/public_html/4images/member_multi_upload.php on line 363

Notice: Undefined index: image_name_1 in /home/***/public_html/4images/member_multi_upload.php on line 364

Notice: Undefined index: image_description_1 in /home/***/public_html/4images/member_multi_upload.php on line 365

Notice: Undefined index: image_keywords_1 in /home/***/public_html/4images/member_multi_upload.php on line 366

Notice: Undefined variable: remote_media_file in /home/***/public_html/4images/member_multi_upload.php on line 389

Notice: Undefined variable: remote_thumb_file in /home/***/public_html/4images/member_multi_upload.php on line 409
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on May 13, 2013, 01:38:01 PM
Hi!
Installed the MOD and got these errors:
Notice:...
there is not a Error, it is a Notice
here is the new Mod:
http://www.4homepages.de/forum/index.php?topic=30855.msg162231#msg162231
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Warrior on May 13, 2013, 06:25:45 PM
Ah. Cool :)
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Rembrandt on May 13, 2013, 06:31:27 PM
Ah. Cool :)
jo stimmt, koid is.  :mrgreen:
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Warrior on May 14, 2013, 07:29:02 AM
Noted a couple problems with that other version. At least one of those problems can be solved with this MOD. However... this one doesn't have external URL, so it won't work with the Media Sites MOD either :( ( http://www.4homepages.de/forum/index.php?topic=24054.0 )

Any chance it can be adjusted to work with that MOD?
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Jasi on March 28, 2019, 09:21:46 PM
@ ALL

Falls hier noch jemand ist der supported...

was muss wo integriert werden, damit der Download Ja/Nein Mod (auch von Rembrandt)

http://www.4homepages.de/forum/index.php?topic=31119.0 (http://www.4homepages.de/forum/index.php?topic=31119.0)

auch im Multiupload-Mod ([Mod] Multiupload V.3.1.1 von Rembrandt) funktioniert?

Danke für die Hilfe!
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Jan-Lukas on April 03, 2019, 06:36:07 PM
Das selbe was Du in der Template/member_uploadform.html änderst

suche in der member_multi_uploadform.html
Code: [Select]
{if captcha_upload}füge darüber ein
Code: [Select]
<tr>
            <td class="row1" valign="top"><b>{lang_image_allow_download}</b></td>
            <td class="row1">
              <input type="radio" name="image_allow_download" value="1"{image_allow_download_yes}>
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="image_allow_download" value="0"{image_allow_download_no}>
              {lang_no}
            </td>
          </tr>

Das sollte reichen

Title: Re: [Mod] Multiupload V.3.1.1
Post by: Jasi on April 03, 2019, 07:06:46 PM
Hallo Jan-Lukas,

wow das 4images Forum lebt noch, super, danke :-)

Nur genau dies bewirkt NICHTS / NULL / NADA :-(
Ich dachte auch dies wäre die Lösung, siehe meine member_multiupload_form
Code: [Select]
<!-- Mod Download erlauben -->
         <tr>
            <td class="row1" valign="top"><b>{lang_image_allow_download}</b></td>
            <td class="row1">
              <input type="radio" name="image_allow_download" value="1"{image_allow_download_yes}>
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="image_allow_download" value="0"{image_allow_download_no}>
              {lang_no}
            </td>
          </tr>
<!-- Mod Ende -->

{if captcha_upload}

Da passiert aber nichts, da wird nichts gespeichert in der DB. Es bleibt jedes hochgeladenen Bild downloadbar.
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Jan-Lukas on April 05, 2019, 09:07:37 PM
Das muss so funktionieren, klappt es denn im normalem Upload ?
Wie gesagt, wenn es im normalem Upload funktioniert, muss es auch im multi klappen.
Title: Re: [Mod] Multiupload V.3.1.1
Post by: Jasi on April 05, 2019, 11:54:47 PM
Hallo Jan-Lukas,

JA im normalen Upload - Single-Upload - funktioniert es, nur eben nicht im Multiupload, da wird nichts in der DB gespeichert.