ich habe mir
## Mod Title: Profile Photo Mod
## Mod Version: 2.0.2
## Author: Acyd Burn < acyd.burn@gmx.de > - Meik Sievertsen - http://www.opentools.de/
erfolgreich installiert und es funktionierte auf Anhieb. Ergänzt habe ich dann noch, dass nur angemeldete User das Bild sehen können.
Was mir wieder aufgefallen ist (damals auch bei den Smilies), die Größenangabe des Fotos im img-Tag fehlen. Gut, ist in diesem Fall nicht so wichtig, das Foto wird eh unter den ganzen anderen Daten angezeigt. Trotzdem stört mich immer dieses "Seitenpumpen", also der Aufbau einer Seite in einem bestimmten Format, dann werden die Bilder so nach und nach geladen und mit jedem Laden eines Bildes verschiebt sich das Layout. Ich verstehe echt nicht warum seitens der Board-Programmierer auf so etwas so gut wie kein Wert gelegt wird!? Der Code ist doch ansonsten wirklich perfekt!
Wie auch immer, wer das für dieses Profile Photo Mod ändern will, hier die Anpassung:
Code: Alles auswählen
#
#-----[ OPEN ]---------------------------------------------
#
./profilephoto_mod.php
#
#-----[ FIND ]---------------------------------------------
#
$photo_img = ( $board_config['allow_photo_upload'] ) ? '<img src="' . $board_config['photo_path'] . '/' . $profiledata['user_photo'] . '" alt="" border="0" />' : '';
#
#-----[ REPLACE WITH ]-------------------------------------
#
$imgfile = $board_config['photo_path'] . '/' . $profiledata['user_photo'];
$size = GetImageSize($imgfile);
$size = 'width="'.$size[0].'" height="'.$size[1].'"';
$photo_img = ( $board_config['allow_photo_upload'] ) ? '<img src="' . $imgfile .'" '. $size . ' alt="" border="0" />' : '';
#
#-----[ FIND ]---------------------------------------------
#
$photo_img = ( $board_config['allow_photo_upload'] ) ? '<img src="' . $board_config['photo_path'] . '/' . $user_photo . '" alt="" />' : '';
#
#-----[ REPLACE WITH ]-------------------------------------
#
$imgfile = $board_config['photo_path'] . '/' . $user_photo;
$size = GetImageSize($imgfile);
$size = 'width="'.$size[0].'" height="'.$size[1].'"';
$photo_img = ( $board_config['allow_photo_upload'] ) ? '<img src="' . $imgfile .'" '. $size . ' alt="" border="0" />' : '';
#
#-----[ SAVE/CLOSE ]---------------------------------------
#