4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: mawenzi on June 10, 2009, 06:16:27 PM

Title: [MOD] Second Thumbnail Size
Post by: mawenzi on June 10, 2009, 06:16:27 PM
 :flag-de: - zunächst einmal nur in deutsch ...
 :flag-en: - a englisch version is coming soon ... or later ...  ;) ... meanwhile use this  English-Google-Translation (http://translate.google.com/translate?u=http%3A%2F%2Fwww.4homepages.de%2Fforum%2Findex.php%3Ftopic%3D25017.0&langpair=de%7Cen&hl=de&ie=UTF-8) ...

Vorbemerkung :

Installation :


1.Schritt :
finde in der /includes/functions.php im Abschnitt function get_thumbnail_code  folgende Codezeilen :

  return $thumb;
}


und füge danach diese Codezeilen ein :

//--- 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";
      $image_info = @getimagesize($file_src);
      $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."px; width: expression(this.width > ".$max_width." ? ".$max_width.": true);\" />";
    }
    else {
      $file_src = get_file_path($thumb_file_name, "thumb", $cat_id, 0, 1);
      $image_info = @getimagesize($file_src);
      $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."px; width: expression(this.width > ".$max_width." ? ".$max_width.": true);\" />";
    }
  }
  if ($show_link) {
    if ($open_window) {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
    }
    else {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a>";
    }
  }
  return $thumb;
}
//--- Thumbnail small Code ---------------------------------------------------------


Zur Konfiguration stellst du unter $max_width  am Anfang dieser Codepassade deine gewünschte, zweite, neue, maximale Thumbnailbreite in Pixel ein !


2.Schritt :
finde in der /includes/functions.php im Abschnitt function show_image  folgende Codezeilen :

"thumbnail" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link),


und füge danach diese Codezeilen ein :

"thumbnail_small" => get_thumbnail_small_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link),



3. Schritt :
Nun kannst du überall in den Templates die neue, zweite, kleine Thumbnailgröße zusätzlich verwenden ...
...statt :
Code: [Select]

{thumbnail}


... ist jetzt dafür zu verwenden :
Code: [Select]

{thumbnail_small}


In dem konkret angefragten Fall ging es um das Thumbnail-Zufallsbild in der linken Navigationsspalte. Dazu ist die Änderung {thumbnail} -> {thumbnail_small}  in der /templates/<dein_template>/random_image.html vorzunehmen.


Anmerkungen :

In der Hoffnung nirgends mehr gesprengte Navigationsleisten zu sehen ...
mawenzi
Title: Re: [MOD] Second Thumbnail Size
Post by: rustynet on June 11, 2009, 09:40:34 PM
Ich habe eine alternative Lösung.

Einfach die Datei random_image.html gegen die neue (siehe Anhang) austauschen

Die Werte
Code: [Select]
width="120" height="90" kann man mit Editor (notepad etc.) beliebig ändern

Dasselbe gilt dann auch für random_cat_image.html

Viel Glück!
Title: Re: [MOD] Second Thumbnail Size
Post by: mawenzi on June 11, 2009, 11:11:08 PM
@rusty

... hat aber den Nachteil der fixen Seitenabmessungen für das Thumbnail ...
... und kann auch nur dort verwendet werden ... nicht z.B auch in einer zweiten  thumbnail_bit.html ... oder bei sonstiger Thumb-Verwendung ...
... wenn das kleine Thumbnail (fix) nur in der random_image.html werden soll ... dann ist es ok ...
Title: Re: [MOD] Second Thumbnail Size
Post by: rustynet on June 12, 2009, 08:22:18 AM
ah so, ja da hast Du natürlich recht

ich dachte, es handelte sich nur um das Zufallsbild:
http://www.4homepages.de/forum/index.php?topic=25013
Title: Re: [MOD] Second Thumbnail Size
Post by: Rantanplan1966 on July 01, 2009, 08:18:11 AM
Der Mod von Mawenzi funktioniert mit... allerdings mit einer kleinen Ausnahme!

Die Spalte schiebt sich nun zwar nicht mehr auf... allerdings werden die Thumbnails im Querformat leicht verzerrt dargestellt.

Auf meiner Seite http://www.matthiasbenkel.de/gallery-online/index.php (http://www.matthiasbenkel.de/gallery-online/index.php) habe ich normalerweise eine Thumbnailgröße von 170.
Durch den Mod von Mawenzi werden nun die Zufallsbilder im Querformat auf eine Breite von 150 reduziert... die Höhe der Thumbnails bleibt aber weiterhin bestehen.
Zufallsbilder im Hochformat werden richtig dargestellt, da die längste Seite (Höhe) 170 hat und die Breite dieser Thumbnails sowieso kleiner als 150 ist.

Kann mir jemand einen Tip geben wie das Seitenverhältnis der Zufallsbilder im Querformat (thumbnails_smal) beibehalten wird, sodaß keine Verzerrung erfolgt?

Vielen Dank und Gruss,
Matthiasl 
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on July 15, 2009, 07:31:33 AM
Hi!

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


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, $site_template;
  
//####### Config ###############################  
  $maxwidth = "80"; // pixel
//####### Config ###############################

  if (!check_media_type($media_file_name)) {
    $thumb = "<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" >";
  }
  else {
    if (!get_file_path($media_file_name, "media", $cat_id, 0, 0)) {
      $file_src = ICON_PATH."/".get_file_extension($media_file_name).".gif";
      $image_info = @getimagesize($file_src);
       $thumb_width = $image_info[0]."px";
       $thumb_height = $image_info[1]."px";
       $thumb = "<img src=\"".$file_src."\" style=\"border:0px;width:$thumb_width; height:$thumb_height;\" alt=\"".format_text($image_name, 2)."\" >";
    }
    else {
      $file_src = get_file_path($media_file_name, "media", $cat_id, 0, 1);
      $image_info = @getimagesize($file_src);
      $thumb_width = $image_info[0];
      $thumb_height = $image_info[1];
      
      if ($thumb_width > $maxwidth){
        $imageprop=$maxwidth/$thumb_width;
        $imagevsize= $thumb_height*$imageprop;
        $thumb_width=$maxwidth."px";
        $thumb_height= round($imagevsize)."px";
      }
      else{
        $thumb_width = $image_info[0]."px";
        $thumb_height = round($image_info[1])."px";
      }
      
      $thumb = "<img src=\"".$file_src."\" style=\"border:".$config['image_border']."px solid;width:$thumb_width; height:$thumb_height;\" alt=\"".format_text($image_name, 2)."\">";
    }
  }

  if ($show_link) {
    if ($open_window) {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))." #z1\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
    }
    else {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))." #z1\">".$thumb."</a>";
    }
  }
  return $thumb;
}


mit $max = 80; wird die Weite angegeben, und das Seitenverhältniss bleibt immer gleich.

mfg Andi
Title: Re: [MOD] Second Thumbnail Size
Post by: lapas on August 07, 2009, 04:57:51 PM
It is real width this MOD make for every image big thumb (500x380px)?

I have small thumb but i want small and big thumb for every image.
Title: Re: [MOD] Second Thumbnail Size
Post by: ghost_wizard on February 24, 2010, 02:53:05 PM
Hi!
Ich habe jetzt auch das Problem mit dem verzerrten Thumbnail!
Ich habe den MOD von Mawenzi getestet! Die Breite stimmt aber bei der Höhe stimmt es gar nicht! Das ganze ist verzerrt und falsch skaliert!
Soll ich jetzt den Code von Rembrand noch mit dazu schreiben?
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on February 24, 2010, 05:12:08 PM
...
Soll ich jetzt den Code von Rembrand noch mit dazu schreiben?
gegenfrage, warum nicht?
Title: Re: [MOD] Second Thumbnail Size
Post by: ghost_wizard on February 24, 2010, 05:32:59 PM
ok, werde ich machen :D
Was mich verunsichert ist $max = 0.7; wo schreibe ich das rein?
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on February 24, 2010, 06:01:17 PM
anstatt
Code: [Select]
$max_width = "80";
Title: Re: [MOD] Second Thumbnail Size
Post by: ghost_wizard on February 24, 2010, 06:35:32 PM
Alles klar!
Danke Dir :)
Title: Re: [MOD] Second Thumbnail Size
Post by: haider512 on February 28, 2011, 03:22:04 PM
its a very nice mod..
but but i want some thing little different.. please will you help me that how should i make width of second one greater then original one.

i mean you proposed a way to make width smaller.

but my thumbnails are already smaller.

so can you prupose a way to make the image size bigger then the normal thumbnail size i have defined.

it will be really great to have two thumbnails.

1. normal one which 4images already have.
2. second thumbnail (like you defined but it only make smaller) have custom size (can increase or decrease size)

so we can use

{thumbnail}
{thumbnail_big}

please tell its possible..
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on February 28, 2011, 04:07:15 PM
.....
i mean you proposed a way to make width smaller.
....
no you can set "$max" greater than 1
http://www.4homepages.de/forum/index.php?topic=25017.msg138624#msg138624
Title: Re: [MOD] Second Thumbnail Size
Post by: haider512 on February 28, 2011, 07:36:10 PM
no you can set "$max" greater than 1

http://www.4homepages.de/forum/index.php?topic=25017.msg138624#msg138624

sir sorry i did not get .. so your mod can also increase thumbnail size.. should i use your changes directly or i have to use your code after i use mawenzi code?

its kind of confusing which code to change and which code i should not change??
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on February 28, 2011, 07:43:15 PM
after  mawenzi code....
Title: Re: [MOD] Second Thumbnail Size
Post by: ASAD 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_name, 2)."\" />";


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
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on October 21, 2011, 05:08:05 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
Title: Re: [MOD] Second Thumbnail Size
Post by: ASAD 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);\" />";
Title: Re: [MOD] Second Thumbnail Size
Post by: mawenzi 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 ...
Title: Re: [MOD] Second Thumbnail Size
Post by: ASAD 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)
Title: Re: [MOD] Second Thumbnail Size
Post by: mawenzi 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 ...
Title: Re: [MOD] Second Thumbnail Size
Post by: ASAD 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)
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on October 22, 2011, 05:22:54 AM
stimmt....
Title: Re: [MOD] Second Thumbnail Size
Post by: ASAD on October 22, 2011, 09:26:05 PM
stimmt....
dann wo finde ich es - das ist die frage...
Title: Re: [MOD] Second Thumbnail Size
Post by: Jan-Lukas 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";
Title: Re: [MOD] Second Thumbnail Size
Post by: ASAD 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);\" />";

Title: Re: [MOD] Second Thumbnail Size
Post by: jimraynor 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";
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt 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_id, 0, 1)
and replace:
get_file_path($media_file_name, "media", $cat_id, 0, 1)


mfg Andi
Title: Re: [MOD] Second Thumbnail Size
Post by: paule 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

 
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on August 19, 2012, 05:36:09 PM
Hi!
....Funktioniert bei mir aber nur "halb".
..Aber: die Höhe wird nicht auf die eingestellte Pixelzahl begrenzt.
Bedeutet dass bei Hochformaten die Höhe nicht stimmt.
....
das ist auch nicht vorgesehen, und auch nicht Sinn des Mods.
lass dich nicht von den variablen namen max iritieren.
Bei den mod geht es ja darum um das genaue Seitenverhältniss beim Verkleinern bei zu behalten.

aber irgendwo im Forum geistert eine Version herrum die, die Beschränkungen berücksichtigt.

mfg Andi
Title: Re: [MOD] Second Thumbnail Size
Post by: paule on August 19, 2012, 06:14:30 PM
Hallo Rembrand,

vielen Dank für die schnelle Antwort.
Ich habe weiter gesucht und bin nicht fündig geworden.

Mein Problem ist: "Bildrahmen im Seitenlayout (thumbnail_bit2 ) 110x110 px somit darf das Thumb bei Breite und Höhe nur max 100 px haben…….
zur Zeit sprengt bei einer Thumb Breite von 100px die entsprechende Höhe das Layout.

Hast Du keine Idee???

Beste Grüße Paulchen

Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on August 19, 2012, 08:29:59 PM
...
Hast Du keine Idee???
..
ja habe ich aber nicht mehr heute..

mfg Andi

Edit: so http://www.4homepages.de/forum/index.php?topic=30895.msg162459#msg162459
Title: Re: [MOD] Second Thumbnail Size
Post by: Allround on June 11, 2013, 11:23:49 PM
Diesen Mod hätte ich gern für die Details Page für


{if prev_image_name}{lang_prev_image} und {if next_image_name}{lang_next_image}

Quasi in der Details.html für vorheriges Bild und nächstes Bild Paging
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on June 12, 2013, 05:30:01 PM
1.) suche in der details.php:

$next_thumb_file = get_file_path($next_prev_cache[$next_image_id]['image_thumb_file'], "thumb", $next_prev_cache[$next_image_id]['cat_id'], 0, 1);

ersetze es mit:

$next_thumb_file = get_thumbnail_small_code($next_prev_cache[$next_image_id]['image_media_file'], $next_prev_cache[$next_image_id]['image_thumb_file'], $next_prev_cache[$next_image_id]['image_id'], $next_prev_cache[$next_image_id]['cat_id'], $next_prev_cache[$next_image_id]['image_name'], $mode, $show_link,0);

2.) suche:

$prev_thumb_file = get_file_path($next_prev_cache[$prev_image_id]['image_thumb_file'], "thumb", $next_prev_cache[$prev_image_id]['cat_id'], 0, 1);

ersetze es mit:

$prev_thumb_file = get_thumbnail_small_code($next_prev_cache[$prev_image_id]['image_media_file'], $next_prev_cache[$prev_image_id]['image_thumb_file'], $next_prev_cache[$prev_image_id]['image_id'], $next_prev_cache[$prev_image_id]['cat_id'], $next_prev_cache[$prev_image_id]['image_name'], $mode, $show_link,0);


2.) suche in der details.html:
Code: [Select]
                            <td class="row2"> {if prev_image_name}{lang_prev_image}<br />&nbsp;&nbsp;
                              <b><a href="{prev_image_url}">{prev_image_name}</a></b>
                              <!-- <br /><br /><a href="{prev_image_url}"><img src="{prev_thumb_file}" border="1"></a> -->
                              {endif prev_image_name}&nbsp;</td>
                            <td align="right" class="row2"> &nbsp;{if next_image_name}{lang_next_image}<br />
                              <b><a href="{next_image_url}">{next_image_name}</a>&nbsp;&nbsp;&nbsp;</b>
                              <!-- <br /><br /><a href="{next_image_url}"><img src="{next_thumb_file}" border="1"></a> -->
                              {endif next_image_name}</td>
ersetze es mit:
Code: [Select]
                            <td class="row2"> {if prev_image_name}{lang_prev_image}<br />&nbsp;&nbsp;
                              <b><a href="{prev_image_url}">{prev_thumb_file}</a></b>
                               <br /><br /><a href="{prev_image_url}">{prev_image_name}</a>
                              {endif prev_image_name}&nbsp;</td>
                            <td align="right" class="row2"> &nbsp;{if next_image_name}{lang_next_image}<br />
                              <b><a href="{next_image_url}">{next_thumb_file}</a>&nbsp;&nbsp;&nbsp;</b>
                              <br /><br /><a href="{next_image_url}">{next_image_name}</a>
                              {endif next_image_name}</td>

mfg Andi
Title: Re: [MOD] Second Thumbnail Size
Post by: PamBreeze on September 09, 2013, 11:33:26 AM
OMG! Put this on my site worked great had no problem. :D Couldn't leave well enough alone.Started messing around screwed it up and crashed my site. 8O Been messing with it for over an hour...I give up! I have no idea why I can't get it to work again. Should have just left it alone the first time...UGH!  :x
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on September 09, 2013, 05:55:00 PM
@PamBreeze, and what do you want now, shall I help you, or what?
Title: Re: [MOD] Second Thumbnail Size
Post by: PamBreeze on September 09, 2013, 10:06:35 PM
Trying to add the Photo Preview Hack Mod
Parse error: syntax error, unexpected ',', expecting T_PAAMAYIM_NEKUDOTAYIM in /homepages/26/d389377401/htdocs/includes/functions.php on line 789

{

Line:789    global  $ site_sess ,  $ config ,  $ site_template ;
 
/ / # # # # # # # Config # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #   
  $ maxwidth  =  "200" ,  / / pixel
/ / # # # # # # # Config # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on September 10, 2013, 05:52:21 AM
  $maxwidth="200" ;

mfg Andi
Title: Re: [MOD] Second Thumbnail Size
Post by: PamBreeze on September 10, 2013, 06:50:45 AM
Now it is a blank page :?
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on September 10, 2013, 01:42:14 PM
post your functions.php
Title: Re: [MOD] Second Thumbnail Size
Post by: PamBreeze on September 10, 2013, 04:29:24 PM
Here it is. TY!
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on September 10, 2013, 05:36:18 PM
pfff..., please do unpack the file
Title: Re: [MOD] Second Thumbnail Size
Post by: PamBreeze on September 10, 2013, 05:46:25 PM
Sorry.
Title: Re: [MOD] Second Thumbnail Size
Post by: Rembrandt on September 10, 2013, 05:59:42 PM
you have the "function get_thumbnail_small_code" two times included, now i have the one function deleted, it works now...

mfg Andi
Title: Re: [MOD] Second Thumbnail Size
Post by: PamBreeze on September 10, 2013, 06:11:53 PM
TY! TY! TY!