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 - auftrip

Pages: [1] 2 3
1
@ Scarala
Quote
Bei Bildern, in deren Dateinamen Unterstriche vorkommen, werden diese nicht durch ein Leerzeichen ersetzt. Beim Bindestrich funktioniert das.

öffne die multiupload_2.php such :
Code: [Select]
$file_name_6 = preg_replace("/\.jpg$/i", "", $file_name_5);


// 4images Name
$file_name_4images = $file_name_6;

ersetz es mit:
Code: [Select]
$file_name_6 = str_replace('_', ' ', $file_name_5);
$file_name_7 = preg_replace("/\.jpg$/i", "", $file_name_6);


// 4images Name
$file_name_4images = $file_name_7;

2
@ante226
Quote
wo finde ich die einstellung wie groß die bilder sind ??? oder steht es in einer datei ???

im ACP unter Einstellungen --> [Multiupload Einstellungen]  

3
@Scarala

Quote
Lädt fehlerfrei hoch, Thumbnails werden korrekt erstellt, Dateinamen werden vernünftig gesetzt (schön wäre es noch, wenn das System Umlaute aus Dateinamen in den Bildnamen übernimmt).

such in der multiupload_2.php:

Code: [Select]
$valid_chars_regex = '.A-Z0-9_ !@#$%^&+={}\[\]\',~`-';
$file_name_1 = preg_replace('/[^'.$valid_chars_regex.']|\.+$/i', "", basename($_FILES['Filedata']['name']));
$file_name_2 = preg_replace("/\.jpg$/i", "", $file_name_1);
$file_name_3 = str_replace(' ', '_', $file_name_2);
$file_name_4 = strtolower($file_name_3);

// 4images Name
$file_name_4images = $file_name_2;

$file_name = $file_name_4 . ".jpg";

und ersetz es mit:

Code: [Select]
$valid_chars_regex = '.A-Z0-9_ !@#$%^&+={}\[\]\',~`-';
$umlaute_1 = array("/ä/","/ö/","/ü/","/Ä/","/Ö/","/Ü/","/ß/");
$replace_1 = array("ae","oe","ue","Ae","Oe","Ue","ss");
$file_name_0 = preg_replace($umlaute_1, $replace_1, ($_FILES['Filedata']['name'])); 
$file_name_1 = preg_replace('/[^'.$valid_chars_regex.']|\.+$/i', "", basename($file_name_0));
$file_name_2 = preg_replace("/\.jpg$/i", "", $file_name_1);
$file_name_3 = str_replace(' ', '_', $file_name_2);
$file_name_4 = strtolower($file_name_3);
$umlaute_2 = array("/ä/","/ö/","/ü/","/Ä/","/Ö/","/Ü/","/ß/");
$replace_2 = array("ä","ö","ü","Ä","Ö","Ü","ß");
$file_name_5 = preg_replace($umlaute_2, $replace_2, ($_FILES['Filedata']['name']));
$file_name_6 = preg_replace("/\.jpg$/i", "", $file_name_5);


// 4images Name
$file_name_4images = $file_name_6;

$file_name = $file_name_4 . ".jpg";

so müsste des dann alles funktionieren

@ MrAndrew

Code: [Select]
Notice: Undefined offset:  6 in C:\...\root\multiupload_2.php on line 85
Notice: Undefined offset:  5 in C:\...\root\multiupload_2.php on line 85
Notice: Undefined offset:  4 in C:\...\root\multiupload_2.php on line 85
FILEID:cimg0034

could you check if there is an uploaded picture in your folder /data/media/category numer/...

and which browser do you have?


4
Quote
Lädt fehlerfrei hoch, Thumbnails werden korrekt erstellt, Dateinamen werden vernünftig gesetzt (schön wäre es noch, wenn das System Umlaute aus Dateinamen in den Bildnamen übernimmt).

Sorry habs grad erst gelesen, war hier länger nichtmehr on. Ich schau mal ob ich die nächsten Tage dazu komme um dein Problem zu lösen.

Quote
Notice: Undefined offset:  6 in C:\...\root\multiupload_2.php on line 85

Notice: Undefined offset:  5 in C:\...\root\multiupload_2.php on line 85

Notice: Undefined offset:  4 in C:\...\root\multiupload_2.php on line 85
FILEID:cimg0034

What`s wrong?

Did you upload the install_multiupload.php in your root folder and opened it with your browser?

5
entschuldigung hab ich vergessen, hab sie jetzt noch extra hochgeladen.

sag dann bitte einer bescheid ob alles funktioniert, damit ich weiß ob ich nix vergessen hab.


PS: Hab des ganze jetzt mal auf nem anderen Server getestet und jetzt müsste des alles so funktionieren :)

7
Multiupload:

Hier ist jetzt eine verbesserte Version des Multiuploads http://www.4homepages.de/forum/index.php?topic=30224.0, den ich schonmal gepostet hab.

Der upload verkleinert die ausgewählten Bilder auf die gewünschte Größe bevor die Dateien hochgeladen werden, d. h. die user brauchen nicht mehr solage um ein Bild hochzuladen, da diese schon vor dem upload eine kleinere Dateigröße besitzen.


Fogende Verbesserungen: Es werden automatisch Thumbnails beim Hochladen erstellt und die Bild, Thumbnail, Größen, etc. können jetzt übers Admin Kontrolpanel eingestellt werden. Desweiteren kann man einstellen, ob die Bilder gleich direkt freigeschaltet werden , oder ob sie im Admin Kontrolpanel angezeigt werden, um freigeschaltet zu werden.


1.    Entpacke den Ordner multiupload2 von der rar Datei des Anhangs in folgendes Verzeichnis:
   includes/
        somit ergibt sich dann folgendes Verzeichnis:
        includes/multiupload2

2.   Erstelle ein neues html Dokument mit dem Namen member_multiuploadform.html in folgendes       
        Verzeichnis:
   templates/your templates/

2.1   Füge folgenden code in das member_multiuploadform.html ein:

Code: [Select]
<?php
session_start();
$_SESSION["file_info"] = array();
?>

<script type="text/javascript">
var swfu;
window.onload = function () {
swfu = new SWFUpload({
// Backend Settings
upload_url: "multiupload_2.php",
post_params: {"PHPSESSID": "<?php echo session_id(); ?>" ,
"user_id" : "{user_id_upload_multi}" ,
"max_thumb_height" : "{max_thumb2_height}" ,
"max_thumb_width" : "{max_thumb2_width}" ,
"auto_thumbnail_quality" : "{auto_thumbnail2_quality}" ,
"thumbnail_proportions" : "{thumbnail_proportions}" ,
"direct_upload" : "{direct_upload}" ,
"cat_id" : "<?php echo $cat_id?>" },
// File Upload Settings
file_size_limit : "10 MB",
file_types : "*.jpg;*.png",
file_types_description : "JPG Images; PNG Image",
file_upload_limit : 0,

// Event Handler Settings - these functions as defined in Handlers.js
//  The handlers are not part of SWFUpload but are part of my website and control how
//  my website reacts to the SWFUpload events.
swfupload_preload_handler : preLoad,
swfupload_load_failed_handler : loadFailed,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
queue_complete_handler : queueComplete,

// Button Settings
button_image_url : "./includes/multiupload2/images/SmallSpyGlassWithTransperancy_17x18.png",
button_placeholder_id : "spanButtonPlaceholder",
button_width: 200,
button_height: 18,
button_text : '<span class="button">Durchsuchen &amp; Hochladen</span>',
button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 15pt; } .buttonSmall { font-size: 10pt; }',
button_text_top_padding: 0,
button_text_left_padding: 18,
button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
button_cursor: SWFUpload.CURSOR.HAND,

// Flash Settings
flash_url : "./includes/multiupload2/swfupload/swfupload.swf",
flash9_url : "./includes/multiupload2/swfupload/swfupload_fp9.swf",

custom_settings : {
upload_target : "divFileProgressContainer",
max_image_height: "{max_image2_height}",
max_image_width: "{max_image2_width}",
image_quality: "{image_multi_quality}",
cat_id: "<?php echo $cat_id?>",
direct_upload: "{direct_upload}"
},

// Debug Settings
debug: false
});
};
</script>
<div id="content">
<br />
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td valign="top" class="head1">
        <table width="100%" border="0" bordercolor="#0066ff" cellpadding="4" cellspacing="0">
          <tr>
            <td colspan="2" valign="top" class="head1">{lang_user_upload_multi}</td>
          </tr>
          <tr>
            <td width="50%" class="row1"><b>{lang_user_current_cat}</b></td>
            <td width="50%" class="row1"><div style="padding-left: 6px;"><b>{cat_name}</b></div></td>
          </tr>
          <tr>
          <form onsubmit="if (cat_id.options[cat_id.selectedIndex].value==0){ alert('{cat_name_required}'); return false;};" method="get" name="jumpbox" action="{url_member}">
            <td width="50%" class="row2"><b>{lang_user_upload_multi_other_cat}</b></td>
            <td width="50%" class="row2"><input type="hidden" name="action" value="multiuploadform">{upload_dropdown_multi}<input type="submit" value="{lang_go}" class="button" /></td>
          </form>
          </tr>
          <tr>
          <form>
            <td colspan="2" class="row1"><div align="center"><div style="width: 200px; height: 22px; border: solid 1px #7FAAFF; background-color: #C5D9FF; padding: 2px;"><span id="spanButtonPlaceholder"></span></div></div></td>
      </form>
          </tr>
          <tr>
          <td colspan="2" class="row2"><div align="center"><div id="divFileProgressContainer"></div></div></td>
      </tr>
          <tr>          
          <td colspan="2" class="row1"><div align="center"><div id="divStatus"></div></div></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
<br />
<div id="thumbnails" style="width: 800px;">
<?php
// Read the files from the saved images folder
$dir = new DirectoryIterator("data/thumbnails/$cat_id");
foreach ($dir as $fileinfo) {
if (!$fileinfo->isDot() && $fileinfo->isFile()) {
echo '<img style="margin: 5px; vertical-align: middle;" src="data/thumbnails/'.$cat_id.'/' $fileinfo->getFilename() . '" />';
}
}
        
?>

</div>
</div>

3.   Öffne lang/your lang/main.php und such nach:

   $lang['new_upload_validate_desc'] = "Nach Überprüfung durch einen Administrator wird Ihr Bild freigeschaltet.";

   füg danach folgendes ein:

//-----------------------------------------------------
//--- Image Upload Multi ----------------------
//-----------------------------------------------------
$lang['user_upload_multi'] = "Bilder Upload";
$lang['user_current_cat'] = "Lade in folgendes Album Bilder hoch:";
$lang['user_upload_multi_other_cat'] = "Oder wähle ein anderes Album aus:";


4.   öffne lang/your lang admin.php und such nach:

   $setting['auto_thumbnail_quality'] = "Bild-Qualität des erstellten Thumbnails<br /><span class=\"smalltext\">von 0 bis 100</span>";

   füg folgendes danach ein:

   
/*-- Setting-Group 10 --*/
$setting_group[10]="Multiupload Einstellungen";
$setting['max_thumb2_width'] = "Maximale Breite der Thumbnail-Bilder in Pixel";
$setting['max_thumb2_height'] = "Maximale Höhe der Thumbnail-Bilder in Pixel";
$setting['max_image2_width'] = "Maximale Breite der Bilder in Pixel";
$setting['max_image2_height'] = "Maximale Höhe der Bilder in Pixel";
$setting['auto_thumbnail_resize_type2'] = "Proportionen";
$auto_thumbnail_resize_type2_optionlist = array(
  
"1" => "Proportional verkleinern",
  
"2" => "Quadratisch verkleinern",
);
$setting['auto_thumbnail2_quality'] = "Bild-Qualität des erstellten Thumbnails<br /><span class=

\"smalltext\">von 0 bis 100</span>"
;
$setting['image_multi_quality'] = "Bild-Qualität der erstellten Bilder<br /><span class=\"smalltext\">von 0 

bis 100</span>"
;


5.   Öffne templates/your templates/categories.html
   such nach:

   {upload_button}

   füg fogendes danach ein:
   
   {upload_button_multi}

6.    Öffne categories.php und such nach:

   if (!check_permission("auth_upload"$cat_id)) {
  
$upload_url "";
  
$upload_button "<img src=\"".get_gallery_image("upload_off.gif")."\" border=\"0\" alt=\"\" />";


   füg folgendes danach ein:

   $upload_url_multi "";
  
$upload_button_multi "<img src=\"".get_gallery_image("multiupload_off.gif")."\" border=\"0\" alt=\"\" />";


6.1    such nach:

   $upload_url $site_sess->url(ROOT_PATH."member.php?action=uploadform&amp;".URL_CAT_ID."=".$cat_id);
  
$upload_button "<a href=\"".$upload_url."\"><img src=\"".get_gallery_image("upload.gif")."\" border=\"0\" alt=\"\" /></a>";


   für folgendes danach ein:

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


6.2   such nach:

     "upload_url" => $upload_url,
  
"upload_button" => $upload_button,


   füg folgendes danach ein:

   "upload_url_multi" => $upload_url_multi,
  
"upload_button_multi" => $upload_button_multi,


7.   öffne member.php und such nach:

   $content $site_template->parse_template("member_uploadform");
}

   füg fogendes danach ein:

   
Code: [Select]
if ($action == "multiuploadform") {
  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 (!$sendprocess) {
    $remote_media_file = "";
    $remote_thumb_file = "";
    $image_name = "";
    $image_description = "";
    $image_keywords = "";
    $image_download_url = "";
    $image_allow_comments = 1;
  }
  

  if (check_permission("auth_directupload", $cat_id)) {
  $direct_upload = "1";
  }
  else {
  $direct_upload = "0";
  }

  $site_template->register_vars(array(
    "cat_id" => $cat_id,
/*
  MOD UPLOAD CATEGORIES DROPDOWN
  ORIGINAL LINE:
    "cat_name" => ($cat_id != 0) ? format_text($cat_cache[$cat_id]['cat_name'], 2) : get_category_dropdown($cat_id),
*/
/*
  MOD UPLOAD CATEGORIES DROPDOWN
  BEGIN REPLACE
*/
"cat_name" => ($cat_id != 0) ? format_text($cat_cache[$cat_id]['cat_name'], 2) : get_category_dropdown($cat_id),
    "upload_dropdown_multi" => get_category_dropdown_upload($cat_id),
//    "cat_name" => ($cat_id != 0 && (!isset($HTTP_POST_VARS['showdropdown']))) ? format_text($cat_cache[$cat_id]['cat_name'], 2) : get_category_dropdown($cat_id)."<input type=\"hidden\" name=\"showdropdown\" value=\"1\">",
    "cat_name_required" => addslashes(preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $lang['category']), $lang['field_required'])),
/*
  MOD UPLOAD CATEGORIES DROPDOWN
  END REPLACE
*/
"lang_user_upload_multi" => $lang['user_upload_multi'],
"lang_user_current_cat" => $lang['user_current_cat'],
"lang_user_upload_multi_other_cat" => $lang['user_upload_multi_other_cat'],
"direct_upload" => $direct_upload,
"image_multi_quality" => $config['image_multi_quality'],
"thumbnail_proportions" => $config['auto_thumbnail_resize_type2'],
"auto_thumbnail2_quality" => $config['auto_thumbnail2_quality'],
"user_id_upload_multi" => $user_info['user_id'],
"max_image2_width" => $config['max_image2_width'],
"max_image2_height" => $config['max_image2_height'],
"max_thumb2_width" => $config['max_thumb2_width'],
"max_thumb2_height" => $config['max_thumb2_height']
  ));

  $content = $site_template->parse_template("member_multiuploadform");
}

8.   kopier die Datei multiupload_2.php und thumbnail.php von der rar Datei in dein root(Haupt)    Verzeichnis.

9.   Öffne includes/functions.php und füg vor ?> folgendes ein:

/*
  MOD UPLOAD CATEGORIES DROPDOWN
  BEGIN INSERT
*/
function get_category_dropdown_upload_bits($cat_id 0$cid 0$depth 1)
{
  global 
$site_db$drop_down_cat_cache$cat_cache$config;

  if (!isset(
$drop_down_cat_cache[$cid]))
  {
    return 
"";
  }
  
$category_list "";
  foreach (
$drop_down_cat_cache[$cid] as $key => $category_id)
  {
    if (
check_permission("auth_viewcat"$category_id))
    {
      if (
check_permission("auth_upload"$category_id))
      {
        
$disable 0;
      }
      else
      {
        
$disable 1;
      }
      
$category_list .= "<option value=\"".(($disable) ? $category_id)."\"";
      if (
$cat_id == $category_id)
      {
        
$category_list .= " selected=\"selected\"";
      }
      if (
$disable)
      {
        if ((
$cat_cache[$category_id]['cat_parent_id'] == 0))
        {
          
$category_list .= " class=\"dropdowndisable\""//upload not avalable and this is a main category
        
}
        else
        {
          
$category_list .= " class=\"dropdowndisable\""//upload not avalable
        
}
      }
      else
      {
        if ((
$cat_cache[$category_id]['cat_parent_id'] == 0))
        {
//          $category_list .= " class=\"dropdownmarker\""; //upload avalable and this is a main category
        
}
        else
        {
//        $category_list .= " class=\"dropdownok\""; //upload avalable
        
}
      }

//      $category_list .= ">".(($disable) ? "- " : "+ ");
      
$category_list .= ">";
      if (
$depth 1)
      {
        
$category_list .= str_repeat("--"$depth 1)." ";
      }
      
$category_list .= $cat_cache[$category_id]['cat_name']."</option>\n";
      
$category_list .= get_category_dropdown_upload_bits($cat_id$category_id$depth 1);
    }
  }
  unset(
$drop_down_cat_cache[$cid]);
  return 
$category_list;
}
function 
get_category_dropdown_upload($cat_id 0)
{
  global 
$lang$drop_down_cat_cache$cat_parent_cache;
  
$category "\n<select name=\"cat_id\" class=\"categoryselect\">\n";
  
$category .= "<option value=\"0\">".$lang['select_category']."</option>\n";
  
$category .= "<option value=\"0\">-------------------------------</option>\n";
  
$drop_down_cat_cache = array();
  
$drop_down_cat_cache $cat_parent_cache;
  
$category .= get_category_dropdown_upload_bits($cat_id);
  
$category .= "</select>\n";
  return 
$category;
}
/*
  MOD UPLOAD CATEGORIES DROPDOWN
  END INSERT
*/


10.   Öffne admin/settings.php und such nach:

   show_setting_row("auto_thumbnail_resize_type""show_auto_thumbnail_resize_type_options");
  
show_setting_row("auto_thumbnail_quality");


   füg folgendes danach ein:

     
  show_table_separator($setting_group[10], 2"setting_group_10");
  
show_setting_row("max_thumb2_width");
  
show_setting_row("max_thumb2_height");
  
show_setting_row("max_image2_width");
  
show_setting_row("max_image2_height");
  
show_setting_row("auto_thumbnail_resize_type2""show_auto_thumbnail_resize_type2_options");
  
show_setting_row("auto_thumbnail2_quality");
  
show_setting_row("image_multi_quality");


10.1    such nach:

   function show_auto_thumbnail_resize_type_options($setting_name$setting_value) {
  global 
$auto_thumbnail_resize_type_optionlist;
  foreach (
$auto_thumbnail_resize_type_optionlist as $key => $val) {
    echo 
"<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if (
$setting_value == $key) {
      echo 
" checked=\"checked\"";
    }
    echo 
"> ".$val."<br />";
  }
}


   füg folgendes danach ein:

   
function show_auto_thumbnail_resize_type2_options($setting_name$setting_value) {
  global 
$auto_thumbnail_resize_type2_optionlist;
  foreach (
$auto_thumbnail_resize_type2_optionlist as $key => $val) {
    echo 
"<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if (
$setting_value == $key) {
      echo 
" checked=\"checked\"";
    }
    echo 
"> ".$val."<br />";
  }
}


11. Öffne fogendes Verzeichnis:
     templates/your templates/style.css und füg am Schluss folgendes ein:

/*--Mutliupload-----------------------------------------------*/
/*--Mutliupload-----------------------------------------------*/
/*--Mutliupload-----------------------------------------------*/
/*--Mutliupload-----------------------------------------------*/


/* -- Form Styles ------------------------------- */
form {
	

	
margin0;
	
padding0;
}



div.fieldset {
	
border:  1px solid #afe14c;
	
margin10px 0;
	
padding20px 10px;
}
div.fieldset span.legend {
	
positionrelative;
	
background-color#FFF;
	
padding3px;
	
top: -30px;
	
font700 14px ArialHelveticasans-serif;
	
color#73b304;
}

div.flash {
	
width375px;
	
margin10px 5px;
	
border-color#004c75;
	

	
-
moz-border-radius:5px 5px 5px 5px/* Firefox */
	
-
webkit-border-radius:5px 5px 5px 5px/* Chrome, Safari */
	
-
khtml-border-radius:5px 5px 5px 5px/* Konqueror */
	
border-radius:5px 5px 5px 5px/* CSS3 */

}

button,
input,
select,
textarea 
	
border-width1px
	
margin-bottom10px;
	
padding2px 3px;
}



input[disabled]{ border1px solid #ccc } /* FF 2 Fix */


label 
	
width150px
	
text-alignright
	
display:block;
	
margin-right5px;
}

#btnSubmit { margin: 0 0 0 155px ; }

/* -- Table Styles ------------------------------- */
td {
	
font10pt HelveticaArialsans-serif;
	
vertical-aligntop;
}

.
progressWrapper {
	
width375px;
	
overflowhidden;
}

.
progressContainer {
	
margin5px;
	
padding4px;
	
bordersolid 1px #E8E8E8;
	
background-color#F7F7F7;
	
overflowhidden;
}
/* Message */
.message {
	
margin1em 0;
	
padding10px 20px;
	
bordersolid 1px #FFDD99;
	
background-color#FFFFCC;
	
overflowhidden;
}
/* Error */
.red {
	
bordersolid 1px #B50000;
	
background-color#FFEBEB;
}

/* Current */
.green {
	
bordersolid 1px #DDF0DD;
	
background-color#EBFFEB;
}

/* Complete */
.blue {
	
bordersolid 1px #CEE2F2;
	
background-color#F0F5FF;
}

.
progressName {
	
font-size8pt;
	
font-weight700;
	
color#555;
	
width323px;
	
height14px;
	
text-alignleft;
	
white-spacenowrap;
	
overflowhidden;
}

.
progressBarInProgress,
.
progressBarComplete,
.
progressBarError {
	
font-size0;
	
width0%;
	
height2px;
	
background-colorblue;
	
margin-top2px;
}

.
progressBarComplete {
	
width100%;
	
background-colorgreen;
	
visibilityhidden;
}

.
progressBarError {
	
width100%;
	
background-colorred;
	
visibilityhidden;
}

.
progressBarStatus {
	
margin-top2px;
	
width337px;
	
font-size7pt;
	
font-familyArial;
	
text-alignleft;
	
white-spacenowrap;
}

a.progressCancel {
	
font-size0;
	
displayblock;
	
height14px;
	
width14px;
	
background-imageurl(../../includes/multiupload2/images/cancelbutton.gif);
	
background-repeatno-repeat;
	
background-position: -14px 0px;
	
floatright;
}

a.progressCancel:hover {
	
background-position0px 0px;
}


/* -- SWFUpload Object Styles ------------------------------- */
.swfupload {
	
vertical-aligntop;
}


12.   Öffne fogende Datei:
       templates/your templates/header.html und such nach

</head>
      
       füg davor fogendes ein:

<script type="text/javascript" src="includes/multiupload2/swfupload/swfupload.js"></script>
<
script type="text/javascript" src="includes/multiupload2/swfupload/swfupload.queue.js"></script>
<
script type="text/javascript" src="includes/multiupload2/js/handlers.js"></script>



13.   Lade die Datei multiupload.gif und multiupload_off.gif in folgendes Verzeichnis:
       templates/your templates/images/

14.    zum Schluss lade noch die install_multiupload.php in dein root(Haupt) Verzeichnis und öffne diese in einem Browser, danach wenn alles geklappt hat kannst du die Datei wieder von deinem Server löschen. Ich hoff ich hab jetzt nichts vergessen, bei Fragen einfach melden.

15. Edit: für umlaute im Bildnamen:

such in der multiupload_2.php:

Code: [Select]
$valid_chars_regex = '.A-Z0-9_ !@#$%^&+={}\[\]\',~`-';
$file_name_1 = preg_replace('/[^'.$valid_chars_regex.']|\.+$/i', "", basename($_FILES['Filedata']['name']));
$file_name_2 = preg_replace("/\.jpg$/i", "", $file_name_1);
$file_name_3 = str_replace(' ', '_', $file_name_2);
$file_name_4 = strtolower($file_name_3);

// 4images Name
$file_name_4images = $file_name_2;

$file_name = $file_name_4 . ".jpg";

und ersetz es mit:

Code: [Select]
$valid_chars_regex = '.A-Z0-9_ !@#$%^&+={}\[\]\',~`-';
$umlaute_1 = array("/ä/","/ö/","/ü/","/Ä/","/Ö/","/Ü/","/ß/");
$replace_1 = array("ae","oe","ue","Ae","Oe","Ue","ss");
$file_name_0 = preg_replace($umlaute_1, $replace_1, ($_FILES['Filedata']['name']));  
$file_name_1 = preg_replace('/[^'.$valid_chars_regex.']|\.+$/i', "", basename($file_name_0));
$file_name_2 = preg_replace("/\.jpg$/i", "", $file_name_1);
$file_name_3 = str_replace(' ', '_', $file_name_2);
$file_name_4 = strtolower($file_name_3);
$umlaute_2 = array("/ä/","/ö/","/ü/","/Ä/","/Ö/","/Ü/","/ß/");
$replace_2 = array("&auml;","&ouml;","&uuml;","&Auml;","&Ouml;","&Uuml;","&szlig;");
$file_name_5 = preg_replace($umlaute_2, $replace_2, ($_FILES['Filedata']['name']));
$file_name_6 = str_replace('_', ' ', $file_name_5);
$file_name_7 = preg_replace("/\.jpg$/i", "", $file_name_6);


// 4images Name
$file_name_4images = $file_name_7;


$file_name = $file_name_4 . ".jpg";

9
nice thanks

10
thanks works great:)

11
Quote
Echt super, danke schon mal. Freue mich, wenn das mit dem auto-image-resizer klappt, dafür bin ich gerne bereit zu warten Smile

also die ham jetzt ein fix raus gebracht, den werd ich mal die oder nächste woche einbauen:)

12
Mods & Plugins (Releases & Support) / Re: [Mod] Like me
« on: December 14, 2011, 07:44:47 PM »
if somebody wants to show "Like me" below Thumbnails in lightbox.

Than he have to redoes Step 6. in the lightbox.php and not categories.php.

13
Mods & Plugins (Releases & Support) / Re: [Mod] Like me
« on: December 06, 2011, 07:53:48 PM »
Quote
der Bildbesitzer und wenn jemand schon gevotet hat, kann nicht mehr Voten.

mfg Andi
ich will ja nicht, dass jemand zweimal gefällt mir machen kann. Sondern, dass man sein eigenes "Gefällt mir", das man einem anderem Bild gegeben hat wieder rückgängig machen kann.
Also sprich: nachdem man auf gefällt mir geklickt hat, ein neuer button gefällt mir nichtmehr erscheint.
Wäre das möglich?

mfg rene

14
if somebody have this MOD http://www.4homepages.de/forum/index.php?topic=29164.0?
than he could inclde the like me button, too. so he get Notifications about the peolpe who liked your picture.

open details.php an serach:
    $sql "UPDATE ".IMAGES_TABLE."
            SET image_likeme = '"
.$likeme.(($likeme)?",":"").$user_info['user_name']."'
            WHERE image_id = 
$image_id";
    
$site_db->query($sql);


add after:
	
//activity 
	
	
  
$cat $image_row['cat_id']; 
	
	
  
$to_id $image_row['user_id']; 
          
$media $image_row['image_media_file'];
          
$name $image_row['image_name'];
	
	
  
$image_id $image_row['image_id'];
	
	
  
$user_name $user_info['user_name'];
	


	
	
$sql "UPDATE ".USERS_TABLE."
	
	
SET user_notify=user_notify+1 WHERE user_id = "
.$to_id;
	
	
$site_db->query($sql);
	
	
  

	
    
$sql "INSERT INTO " NOTIFY_TABLE "
        (id, from_id, to_id, from_username, to_username, what_pic, text1, text2, text3, content, content_link, date)
        VALUES(NULL, '"
.$user_info['user_id']."', '$to_id', '$user_name', '0', '".$cat."' '/' '".$media."' , 'likes', '".$name."', '' ' ' '<b>' '$rating_value' '</b>' , '', 'details.php?image_id=' '".$image_id."', '" time() . "')";
	

	
    
$site_db->query($sql);
	
  
//activity



15
Mods & Plugins (Releases & Support) / Re: [Mod] Like me
« on: December 06, 2011, 06:31:33 PM »
hätte da noch ne frage, und zwar wäre es möglich den MOD noch soweit zu erweitern, dass wenn einem user ein bild gefällt, dieser auch irgendwann auf gefällt mir nichtmehr klicken kann. hoffe ihr könnt mir halfen

Pages: [1] 2 3