Thread maximum width size image: How do I set a maximum width size in per (5 answers)
Opened by Gast at 2007-07-10 10:17

Gast Gast
 2007-07-10 10:17
#301 #301
Hi,

Do you know how I can add a maximum width size to the picture 'FULLSIZE'. Thanks in advance. Best regards,

Ricardo

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
    my(%AD, %FILE, $template,$catlink);
$template = &ParseCommonCodes($TEMPLATE{image});
   %AD = &RetrieveAdDB($FORM{id});
%FILE =

&RetrieveFilesDB($AD{$FORM{file_id}},'[VIEW_URL]');
if($FILE{id}){ $template =~

s/\[FULLSIZE\]/$FILE{code}/iges; }
else{ &
nbsp; $template =~

s/\[FULLSIZE\]//i; }
foreach (keys %FILE){ $template =~

s/\[FILE_$_\]/$FILE{$_}/ig; }

View full thread maximum width size image: How do I set a maximum width size in per