List Info

Thread: Re: Gallery




Re: Gallery
user name
2007-11-06 08:59:50
I saw this personally at elPeriodico (the new design), so
Carlos, please
tell us all how you did it (it's based on Raed's scripts,
no?).

Sava


                                                            
                                                            
               
                      Slobodan Gogic                        
                                                            
               
                      <slobodan.gogicmedi     
  To:       "campsite-supportcampware. org"
<campsite-supportcampware.org>             
                      aonweb.org>                 cc:    
                                                            
                  
                                                  Subject: 
[campsite-support] Gallery                                  
                
                      06/11/2007 03:08 PM                   
                                                            
               
                      Please respond to                     
                                                            
               
                      campsite-support                      
                                                            
               
                                                            
                                                            
               
                                                            
                                                            
               




Greetings everyone,

we have looking for some solution for managing pictures in
Campsite
articles... currently we are not using editor for inserting
image, but
using image numbers in templates so pictures needs to be
prepared for
that(e.g. thumbnail is always 1, and large version is always
2, so we
print them directly in template without user interaction in
WYSIWYG
editor).
We are currently looking for some addon/module/hack for
campsite that
will automaticaly create image thumbnail, when large version
is uploaded
via interface. So user will insert large image, and
thumbnail will be
automaticaly generated and linked to article where large
image was
uploaded.

We would like to hear how do you deal images besides
WYSIWYG.

We heard that El Periodico has some solution so we would
like to hear it
too...

Thanks in advance
Slobodan Gogic





Invest in Press Freedom: Visit http://www.mdl
f.org/support-free-press



Re: Gallery
user name
2007-11-06 09:55:13
Hi,
We used the Read's script: Thumbnail Generator, and make
some changes to 
add some options we required. Attached to this email the
original ZIP 
file with the instructions how to use, and another ZIP with
the new file 
image.php we modify to used as function in the php.

Basically the modify we made it's add a limit of size depend
of Max 
Height or Max Width send it in the
"article_thumbs" function. Example:

<?php
article_thumbs
($NrArticle,1,"","",200,190);
?>

"1" its the number of image attached to the
article, 200 it's the Max 
Width and 190 it's the Max Height.  This is because some
pictures are to 
long vertically or horizontally and can break your design if
 you don't 
use a limit for each value. The original file just make a
thumb 
proportionally with a value (width or height).

Also print the "true" source file in the img tag,
example:

The original file print:
<img
src="/look/image.php?NrArticle=40465&amp;NrImage=1&
amp;amp;w=220" 
alt="my image" />

If you see its a URL and any person can acces to this and
chance the 
values "w" or "h" and generate another
thumbs, and will save in your 
server. Maybe a person can do a script to access
automatically to this 
URL with random values to generate thumb and saturate your
hard drive. 
Maybe its a little exaggerated, but just in case ;)

With the new file only print the source file was generate,
example:
<img src="/look/image_cache/40456_1_70_60.jpg"
alt="my image">

With this nobody can generate thumbs in your site, and
create valid code 
for the W3C ;)

Well, this is basically the changes for the script. Let me
know it's 
works for you.

________________________
Carlos Cabrera
Web Developer
www.elperiodico.com.gt











sava.taticmdlf.org wrote:
> I saw this personally at elPeriodico (the new design),
so Carlos, please
> tell us all how you did it (it's based on Raed's
scripts, no?).
>
> Sava
>
>
>                                                        
                                                            
                    
>                       Slobodan Gogic                   
                                                            
                    
>                       <slobodan.gogicmedi     
  To:       "campsite-supportcampware. org"
<campsite-supportcampware.org>             
>                       aonweb.org>                
cc:                                                         
                          
>                                                  
Subject:  [campsite-support] Gallery                        
                          
>                       06/11/2007 03:08 PM              
                                                            
                    
>                       Please respond to                
                                                            
                    
>                       campsite-support                 
                                                            
                    
>                                                        
                                                            
                    
>                                                        
                                                            
                    
>
>
>
>
> Greetings everyone,
>
> we have looking for some solution for managing pictures
in Campsite
> articles... currently we are not using editor for
inserting image, but
> using image numbers in templates so pictures needs to
be prepared for
> that(e.g. thumbnail is always 1, and large version is
always 2, so we
> print them directly in template without user
interaction in WYSIWYG
> editor).
> We are currently looking for some addon/module/hack for
campsite that
> will automaticaly create image thumbnail, when large
version is uploaded
> via interface. So user will insert large image, and
thumbnail will be
> automaticaly generated and linked to article where
large image was
> uploaded.
>
> We would like to hear how do you deal images besides
WYSIWYG.
>
> We heard that El Periodico has some solution so we
would like to hear it
> too...
>
> Thanks in advance
> Slobodan Gogic
>
>
>
>
>
> Invest in Press Freedom: Visit http://www.mdl
f.org/support-free-press
>
>
>
>   


www.elperiodico.com.gt

  
  
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )