Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #11  
Old 12-29-2005, 06:34 AM
se.nsuo.us Offline
pixelpost guru
 
Join Date: Dec 2005
Location: Somewhere in India
Posts: 624
Delete fullsize file on picture delete

This addon leaves behind the fullsize file if the picture is deleted I solved the problem by adding the following to the add-on file

PHP Code:
add_admin_functions'admin_fullsize_delete' 'image_deleted' ,$addon_menu,$addon_admin_submenu);

function 
admin_fullsize_delete()
{
     global 
$image;
     if (@
unlink("images/fullsize_".$image)){
         echo 
"   Fullsize image deleted.";
     }

For this to work we need to define another workspace to the image_edit.php, near the end of action x=delete add
PHP Code:
eval_addon_admin_workspace_menu('image_deleted'); 
Please note editing the core files is not a good idea generally - so do it only if you know what you are doing and can keep track of all the modifications you have done
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some]
My Pixelpost Addons, Cheesecake-Photoblog Software
Reply With Quote
  #12  
Old 12-29-2005, 02:21 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
se.nsuo.us,
That was great! This means that we need a workspace assigned to the deletion of images thanks!
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #13  
Old 01-19-2006, 05:50 AM
utok Offline
pp regular
 
Join Date: Oct 2004
Posts: 26
nice work raminia! looks like my crappy old wallpaper resize mod thing is going to be outdated. i think ill just discontinue it. or maybe further on down the road ill mess with your code to get the wallpaper resize working. but for now-- im waiting till 1.5 is fully released.
Reply With Quote
  #14  
Old 01-19-2006, 06:10 AM
se.nsuo.us Offline
pixelpost guru
 
Join Date: Dec 2005
Location: Somewhere in India
Posts: 624
We also need a workspace for the place where pictures are edited - uploading a new picture replaces without resizing
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some]
My Pixelpost Addons, Cheesecake-Photoblog Software
Reply With Quote
  #15  
Old 01-19-2006, 08:53 AM
Joe[y]'s Avatar
Joe[y]+ Offline
Team Pixelpost
 
Join Date: Mar 2005
Location: UK
Posts: 3,101
Send a message via MSN to Joe[y]
i've already added a workspace for deleting images but not for editing.
Reply With Quote
  #16  
Old 02-08-2006, 07:06 AM
cyberemo Offline
forum loafer
 
Join Date: Dec 2005
Posts: 2
I install the pluggin like the folders in the zip specifies...

but if I turn on the add-on in the add-ons page, the thumbnails are not created and the image is not resized.

why?

Last edited by cyberemo; 02-08-2006 at 07:56 AM.
Reply With Quote
  #17  
Old 02-17-2006, 07:05 AM
brentonm Offline
forum loafer
 
Join Date: Feb 2006
Posts: 1
hi, i am new to pixelpost, and like it alot.

i installed this resize addon, then the addon to allow the link to the fullsize image. i followed the instructions, but cannot get the link to full size to work. it seems to link to the page the link is situated on (itself)

also, the reducing of image sizes works flawlessly, but if an image is smaller than specified, it seems to be enlarged. i also don't believe it is leaving a fullsize image as it us supposed to, the addon setting is to keep the original.

thankyou,
brenton

Last edited by brentonm; 02-17-2006 at 09:28 AM.
Reply With Quote
  #18  
Old 04-21-2006, 07:07 PM
ichrix Offline
forum loafer
 
Join Date: Apr 2006
Posts: 14
I just installed this addon so I could use the lightbox addon and I've noticed that it doesn't seem to be keeping the larger version of the image. I looked in the images folder and it only has the reduced size image.

Any help would be appreciated,
Thanks.
__________________
http://www.ichrix.com
Reply With Quote
  #19  
Old 04-22-2006, 05:47 AM
se.nsuo.us Offline
pixelpost guru
 
Join Date: Dec 2005
Location: Somewhere in India
Posts: 624
From an earlier message in the thread

"you need to have "global $keepfullsizeimage;" in the function resizeImage() otherwise the fullsize images will never be saved"

If that does not work then write $keepfullsizeimage = TRUE; in the function resizeImage()
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some]
My Pixelpost Addons, Cheesecake-Photoblog Software
Reply With Quote
  #20  
Old 05-18-2006, 07:54 AM
DerPatrick's Avatar
DerPatrick Offline
pp regular
 
Join Date: May 2006
Location: Rees/NRW/Germany
Posts: 38
Question

What have i to do if i want the Autoresize-Function to resize all images to a height of 533px, because i dont want that all the images have the same width - old pictures from digital cameras have the 4:3 Format, newer (SLR) 3:2 Format, so my old photos are resized to 711x533 and the newer to 800x533.

How i make this with autoresize?
__________________
Captain: I thought you were going to upgrade this.
Trip: That is the upgrade.
Well, if you want, I can change the color.

-------------------------------------------------
My fotoblog
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:14 PM.

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