• [MOD] Second Thumbnail Size 5 0 5 1
Currently:  

Author Topic: [MOD] Second Thumbnail Size  (Read 75574 times)

0 Members and 1 Guest are viewing this topic.

Rembrandt

  • Guest
Re: [MOD] Second Thumbnail Size
« Reply #15 on: February 28, 2011, 07:43:15 PM »
after  mawenzi code....

Offline ASAD

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Fotos von Grozny
Re: [MOD] Second Thumbnail Size
« Reply #16 on: October 21, 2011, 04:41:06 AM »
Hi!

ich hätte da einen vorschlag,vielleicht möchte @mawenzi das in seinen script übernehmen.

suche die zeile:

$thumb 
"<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" style=\"max-width: ".$max_width."; width: expression(this.width > ".$max_width." ? ".$max_width.": true);\" />";

ersetzt sie mit:

$thumb 
"<img src=\"".ICON_PATH."/404.gif\" style=\"border:0;width:$thumb_width ; height:$thumb_height ;\" />";


sucht die zeile:

$width_height 
= (!empty($image_info[3])) ? " ".$image_info[3] : "";
      
$thumb "<img src=\"".$file_src."\" border=\"0\"".$width_height." alt=\"".$image_name."\" style=\"max-width: ".$max_width."; width: expression(this.width > ".$max_width." ? ".$max_width.": true);\" />";

ersetzt sie mit:

$thumb_width 
$image_info[0]*$max;
$thumb_height $image_info[1]*$max;
$thumb_width $thumb_width."px";
$thumb_height $thumb_height."px";

$thumb "<img src=\"".$file_src."\" style=\"border:0;width:$thumb_width ; height:$thumb_height ;\"  alt=\"".format_text($image_name2)."\" />";


sucht die zeile:

$width_height 
= (!empty($image_info[3])) ? " ".$image_info[3] : "";
      
$thumb "<img src=\"".$file_src."\" border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" style=\"max-width: ".$max_width."; width: expression(this.width > ".$max_width." ? ".$max_width.": true);\" />";


ersetzt sie mit:

$thumb_width 
$image_info[0]*$max;
$thumb_height $image_info[1]*$max;
$thumb_width $thumb_width."px";
$thumb_height $thumb_height."px"

$thumb "<img src=\"".$file_src."\" style=\"border:0;width:$thumb_width ; height:$thumb_height ;\"  alt=\"".$image_name."\"  />";


mit $max = 0.7; wird jetzt der vergrößerungsfaktor angegeben, und das seitenverhältniss bleibt immer gleich.

mfg Andi
Hi,
@Rembrandt
wo man es finden? in functions.php gibts es nicht, in meinem sicha nicht

Rembrandt

  • Guest
Re: [MOD] Second Thumbnail Size
« Reply #17 on: October 21, 2011, 05:08:05 AM »

Offline ASAD

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Fotos von Grozny
Re: [MOD] Second Thumbnail Size
« Reply #18 on: October 21, 2011, 09:15:54 AM »
...wo man es finden? in functions.php gibts es nicht, in meinem sicha nicht
http://www.4homepages.de/forum/index.php?topic=25017.msg137021#msg137021
Und?
Ich brauche nicht das link, meine frage war wo finde ich das:
$thumb "<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" style=\"max-width: ".$max_width."; width: expression(this.width > ".$max_width." ? ".$max_width.": true);\" />";

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Second Thumbnail Size
« Reply #19 on: October 21, 2011, 04:44:09 PM »
@ ASAD
... du findest es (das) genau dort, wohin dich der Link führt, den Rembrandt dir als Hinweis gegeben hat ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline ASAD

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Fotos von Grozny
Re: [MOD] Second Thumbnail Size
« Reply #20 on: October 21, 2011, 05:37:28 PM »
@ ASAD
... du findest es (das) genau dort, wohin dich der Link führt, den Rembrandt dir als Hinweis gegeben hat ...
aber ich brauche es (das) dort nicht =)
ich brauche es (das) in meinem 4image, wie habe ich schon geschriben in functions.php gibts es nicht

sorry für mein deuscht)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Second Thumbnail Size
« Reply #21 on: October 21, 2011, 06:51:13 PM »
@ ASAD
... dieser Code ist nicht in deiner functions.php zu finden, sondern er ist dort hinzuzufügen ...
... versuche mal die Google-Translation im ersten Post ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline ASAD

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Fotos von Grozny
Re: [MOD] Second Thumbnail Size
« Reply #22 on: October 21, 2011, 09:37:45 PM »
habe zuerst dein mod eingefügt und dann:
Quote
suche die zeile: 1

$thumb 
"<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" style=\"max-width: ".$max_width."; width: expression(this.width > ".$max_width." ? ".$max_width.": true);\" />";

ersetzt sie mit: 2

$thumb 
"<img src=\"".ICON_PATH."/404.gif\" style=\"border:0;width:$thumb_width ; height:$thumb_height ;\" />";
1 - muss ich irgendwo finden und
mit 2 ersetzen
stimt oder nicht?

PS: Google versteht auch wie ich)

Rembrandt

  • Guest
Re: [MOD] Second Thumbnail Size
« Reply #23 on: October 22, 2011, 05:22:54 AM »
stimmt....

Offline ASAD

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Fotos von Grozny
Re: [MOD] Second Thumbnail Size
« Reply #24 on: October 22, 2011, 09:26:05 PM »
stimmt....
dann wo finde ich es - das ist die frage...

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.288
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] Second Thumbnail Size
« Reply #25 on: October 22, 2011, 11:49:53 PM »
http://www.4homepages.de/forum/index.php?topic=25017.msg137021#msg137021

Quote
und füge danach diese Codezeilen ein :
[php]
//--- Thumbnail small Code ---------------------------------------------------------
function get_thumbnail_small_code($media_file_name, $thumb_file_name = "", $image_id, $cat_id, $image_name = "", $mode = "", $show_link = 1, $open_window = 0) {
  global $site_sess, $config;
  
  $max_width = "80"; // Hier maximale Breite der Thumbnails in Pixel eingeben !

  if (!check_media_type($media_file_name)) {
    $thumb = "<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" style=\"max-width: ".$max_width."px; width: expression(this.width > ".$max_width." ? ".$max_width.": true);\" />";
  }
  else {
    if (!get_file_path($thumb_file_name, "thumb", $cat_id, 0, 0)) {
      $file_src = ICON_PATH."/".get_file_extension($media_file_name).".gif";
Danke Harald




Offline ASAD

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Fotos von Grozny
Re: [MOD] Second Thumbnail Size
« Reply #26 on: October 24, 2011, 05:51:53 PM »

$thumb = "<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" style=\"max-width: ".$max_width."px; width: expression(this.width > ".$max_width." ? ".$max_width.": true);\" />";
$thumb = "<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" style=\"max-width: ".$max_width."; width: expression(this.width > ".$max_width." ? ".$max_width.": true);\" />";


Offline jimraynor

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: [MOD] Second Thumbnail Size
« Reply #27 on: January 30, 2012, 11:04:56 PM »
thanks

when i put the thumbnails on the page they get smaller but doesnt keep to aspect ratio. for example i want it to keep bigger size for the aspect ratio.

which commands should i add to this section

$thumb_width = $thumb_width."120";
$thumb_height = $thumb_height."90";

Rembrandt

  • Guest
Re: [MOD] Second Thumbnail Size
« Reply #28 on: May 13, 2012, 05:17:23 AM »
Hi!
...I need create biger than orginal Thumbnail,
...

search in the Code, to times:
get_file_path($thumb_file_name"thumb"$cat_id01)
and replace:
get_file_path($media_file_name"media"$cat_id01)


mfg Andi

Offline paule

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Re: [MOD] Second Thumbnail Size
« Reply #29 on: August 19, 2012, 05:23:14 PM »
Hallo,

ich habe die MOD Version von Rembrand installiert.
Funktioniert bei mir aber nur "halb".
Bei Änderung der "max_width" ändert sich richtigerweise die Thumb Größe.
Aber: die Höhe wird nicht auf die eingestellte Pixelzahl begrenzt.
Bedeutet dass bei Hochformaten die Höhe nicht stimmt.

Freue mich auf Nachricht
Beste Grüße
Paule