4images Forum & Community

International => Français => Topic started by: Misteroiz on January 01, 2008, 03:58:20 PM

Title: [RESOLU] Page details
Post by: Misteroiz on January 01, 2008, 03:58:20 PM
Bonjour la team, je cherche sur le forum mais je ne trouve pas.

Voila j'ai des grosses images qui font plus de 3000 Pixel et ca prend trop de place dans la page de details y a t'il un code pour modifier et rendre l'image en apercu simple et miniaturisé proportionnelement.

Cordialement Misteroiz
Title: Re: Page details
Post by: nobby on January 01, 2008, 04:13:01 PM
   
Bonjour,

En ACP, vous pouvez personnaliser les images ou automatique à la police Resizer.
Ou bien utiliser cet outil  :arrow: http://www.4homepages.de/forum/index.php?topic=7700.0

Ou ici  :arrow: http://www.4homepages.de/forum/index.php?topic=8517.0

nobby
Title: Re: Page details
Post by: Misteroiz on January 01, 2008, 04:18:25 PM
Je ne pense pas que ce soit cela , car je veu juste miniaturisé la photo dans la page de Details, remplacé la ligne {image} par un bout de code je pense que cela est possible.
Title: Re: Page details
Post by: thunderstrike on January 01, 2008, 04:21:57 PM
Quote
remplacé la ligne {image} par un bout de code je pense que cela est possible.

In includes/functions.php file,

find:

Code: [Select]
"image" => get_media_code($image_row['image_media_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link, $detailed_view),

;)
Title: Re: Page details
Post by: Misteroiz on January 01, 2008, 04:25:06 PM
Merci mais cela ne me dit pas comment dire en code php la hauteur et largeur maxi qu'il peu utilisé :(
Title: Re: Page details
Post by: thunderstrike on January 01, 2008, 04:30:17 PM
Hum ... if need for say width and height - is like this ...

use {width} and {height} in details.html file. ;)
Title: Re: Page details
Post by: Misteroiz on January 01, 2008, 04:33:48 PM
Could you tell me the exact code because I do conais not PHP, unfortunately.
Thank you for your valuable assistance
Title: Re: Page details
Post by: thunderstrike on January 01, 2008, 04:35:46 PM
Exact code in PHP - includes/functions.php file is this:

Code: [Select]
$width_height = " ".$image_info[3];
$width = $image_info[0];
$height = $image_info[1];

;)
Title: Re: Page details
Post by: Misteroiz on January 01, 2008, 04:39:57 PM
I am totally lost
Title: Re: Page details
Post by: thunderstrike on January 01, 2008, 04:41:22 PM
Could you tell me the exact code because I do conais not PHP, unfortunately.
Thank you for your valuable assistance

I am totally lost

You ask for exact code ... I post ... but if need for say width and height of image ... you no need PHP for this ... you need say {width} and {height} in template. ;)
Title: Re: Page details
Post by: Misteroiz on January 01, 2008, 04:46:04 PM
i replace this code

$width_height = " ".$image_info[3];
$width = $image_info[0];
$height = $image_info[1];

to

$width_height = " ".$image_info[3];
$width = 500;
$height = 500;

??
Title: Re: Page details
Post by: thunderstrike on January 01, 2008, 04:51:05 PM
Ohh ! so you want set max width and height size for each image ? If so, solution is use auto-image resizer MOD from V@no. Nobby post is correct. With auto-resize, you set max width and height size for upload. ;)
Title: Re: Page details
Post by: Misteroiz on January 01, 2008, 04:53:14 PM
Yes, but for the download must be kept good height and width dimension of origin is or there is the problem.

The code of height and width is just for the front page details only.
Title: Re: Page details
Post by: thunderstrike on January 01, 2008, 04:56:37 PM
Quote
Yes, but for the download must be kept good height and width dimension of origin is or there is the problem.

The proportion is kept good for image structure. If download resize version, image is no alter. Integrity is good. ;)

Quote
The code of height and width is just for the front page details only.

This is right. If use {width} and {height} for frontpage, is show live reduce size of image from auto-resize image MOD. Is purfect solution. ;)

[edit] - I think upload size is edit in ACP - > setting page. ;)
Title: Re: Page details
Post by: † manurom on January 01, 2008, 05:10:07 PM
Bonjour, Misteroiz;
j'ai eu ce cas et ai résolu mon problème en modifiant mon fichier templates/mon_template/media/jpg.html comme suit, ayant besoin d'images redimensionnées à 520 pixels de largeur, tout en utilisant le script java Lightbox.js (http://www.huddletogether.com/projects/lightbox/):
Code: [Select]
<a href="{media_src}" target="_blank" rel="lightbox" title="{image_name}"><img src="{media_src}" border="1" alt="{image_name}" width="520" /></a><img src="{template_url}/images/spacer.gif" width="1" height="2" /><br />
N'hésitez pas à me solliciter en cas de besoin.
Bien à vous, et bonne année à tous.
Title: Re: Page details
Post by: Misteroiz on January 01, 2008, 05:17:11 PM
Cool voila le code qu'il me fallais :p

Merci a toi
Title: Re: [RESOLU] Page details
Post by: nobby on January 01, 2008, 07:34:57 PM
Manurom peut mieux le français que moi, Merci  :wink:

nobby
Title: Re: [RESOLU] Page details
Post by: † manurom on January 02, 2008, 10:28:17 AM
A charge de revanche :wink:

Hey, nobby, many thanks for your help!

Bonne année à tous.
Happy new year to you all.
¡Feliz aňo nuevo a todos!