Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 12-29-2007, 04:44 PM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
Multiple size images from one uploaded

I would like to understand something, Is there a way to when you upload an image you can have 2 set of 3 images uplaoded.
ex:
full_scale: 3008x2000 px, that what I need fullsize folder
pp_scale: 700x550 ok, images folder
thumbs_scale: 100x100 max ok thumbnails folder

ok lets start over, first I upload my original picture, full_scaled then during the process an pp_scale is made and also of course the thumbs_scale image.

I would like to create an other folder call Fullsize or large_images.

Is there a way to create this addons.... and if it's yes where I start my work?

Thanks.....
Reply With Quote
  #2  
Old 12-29-2007, 05:31 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
The AutoResize addon does this. When you upload a full size image, you can have it save the full size image in your images directory along with the resized (PixelPost sized) image. The full sized image has the same name as the resized image with the prefix fullsize_. It's not a separate directory, but you should be able to modify the addon to suit your needs if you want them in a different directory.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #3  
Old 12-29-2007, 05:32 PM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
Ok I found my answer, I use the addon _autoresize but is there a way to add a tag like <FULL_SIZE_PICTURE_LINK>.


thanks
Reply With Quote
  #4  
Old 12-29-2007, 06:32 PM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
ok I am trying to create an addon but something is missing

PHP Code:
<?php
$addon_version 
"1.0";
$addon_name "image_fullsize_link";
$addon_description 'Generate full size link';


$tpl ereg_replace("<IMAGE_FULLSIZE>","<div style=\"width:100%; margin-top:10px; text-align:center;\" ><a style=\"color:#330000;\" href=\"images\fullsize_<IMAGE_NAME>\">Image fullsize link</a></div>",$tpl);
?>
but the link show
HTML Code:
http://localhost/labroom/pixelpost_v1.7.0_RC1/images/fullsize_%3CIMAGE_NAME%3E
How do I set the image_name tag in the addon?

Thanks
Reply With Quote
  #5  
Old 12-29-2007, 07:00 PM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
Ok it is working now

PHP Code:
<?php
$addon_version 
"1.0";
$addon_name "image_fullsize_link";
$addon_description 'Generate full size link';
$filename $image_name;

$tpl ereg_replace("<IMAGE_FULLSIZE>","<div style=\"width:100%; margin-top:10px; text-align:center;\" ><a style=\"color:#330000;\" href=\"images\fullsize_".$filename."\">Image fullsize link</a></div>",$tpl);
?>
Add this code to image_full_link.php into addon folder and then add <IMAGE_FULLSIZE>

to image_template

done...
Reply With Quote
  #6  
Old 12-30-2007, 03:24 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Im moving this topic to Addons section.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:44 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs