PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > General Forums > General Discussion

General Discussion General use discussion forum for PhotoPost products.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old March 8th, 2008, 08:56 AM   #1 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
Do not delete photos from source directory not working

The bulk upload function of "Do not delete photos from source directory" is not working correctly, my images are still being deleted.

What do you need so we can look into this?
skidpics is offline   Reply With Quote
Old March 8th, 2008, 09:36 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
Try in uploadphoto.php adding in bold as noted.

Code:
Content visible to verified customers only.
then twice this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; March 8th, 2008 at 12:47 PM.
Chuck S is offline   Reply With Quote
Old March 8th, 2008, 10:25 AM   #3 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
didn't fix the problem.. lets see if our code matches..
Quote:
'keywords' => STRING, 'mature' => STRING,donotdelete => STRING) );

forward( "bulkupload.php?ppaction=addphotos&do=preview&donotdelete=$donotdelete&photopath=$uploaduser&upuser=$upuser&notify=$notify&defcat=$category&numprocess=$numprocess&deftitle=$deftitle&defdesc=$defdesc&keywords=$keywords&updir=$updir&processall=$processall&skipwater=true&dthumbs=$dthumbs&mature=$mature", $Globals['pp_lang']['prepare'] );

forward( "bulkupload.php?ppaction=addphotos&do=preview&donotdelete=$donotdelete&photopath=$uploaduser&upuser=$upuser&notify=$notify&defcat=$category&numprocess=$numprocess&deftitle=$deftitle&defdesc=$defdesc&keywords=$keywords&updir=$updir&processall=$processall&dthumbs=$dthumbs&mature=$mature", $Globals['pp_lang']['prepare'] );
sorry for about it being so long. cannot find the function to put it into a table..

Last edited by skidpics; March 8th, 2008 at 10:35 AM.
skidpics is offline   Reply With Quote
Old March 8th, 2008, 10:40 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
the bulkupload forwards there are 4 of them did you get them all
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 8th, 2008, 11:21 AM   #5 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
Replaced the 4 lines as instructed, no luck. Successfully upload the uploadphoto.php file twice to make sure it was there.
skidpics is offline   Reply With Quote
Old March 8th, 2008, 12:02 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
I will have to play with it some but I see no reason why it would not work. As long as you pass donotdelete to the bulkupload script there is this code in there which should work fine.

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 8th, 2008, 12:12 PM   #7 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
Quote:
Originally Posted by Chuck S View Post
I will have to play with it some but I see no reason why it would not work. As long as you pass donotdelete to the bulkupload script there is this code in there which should work fine.

Code:
Content visible to verified customers only.
I am review that code. I am not sure 100% how it works, but it seems like the first entry and the 'else' entry is performing the same function?

Last edited by skidpics; March 8th, 2008 at 10:39 PM.
skidpics is offline   Reply With Quote
Old March 8th, 2008, 12:49 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
what it says is if the file exists and donotdelete is not equal to donotdelete then delete the file

What I am saying is if we pass donotdelete to bulkupload then it should not delete the images

Like I said I will test it out and see if I see anything
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 12th, 2008, 11:26 PM   #9 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
any luck yet?
skidpics is offline   Reply With Quote
Old March 13th, 2008, 09:13 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
Not yet there are many delete functions within the file. I need to debug each one. Try at line 241 make this line has the code in bold and try

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; March 14th, 2008 at 01:38 PM.
Chuck S is offline   Reply With Quote
Old March 14th, 2008, 12:40 PM   #11 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
that didn't work.. just tried it..
skidpics is offline   Reply With Quote
Old March 14th, 2008, 12:46 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
You did that to every line in that file BULKUPLOAD.PHP?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 14th, 2008, 12:54 PM   #13 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
Quote:
Originally Posted by Chuck S View Post
You did that to every line in that file BULKUPLOAD.PHP?
you stated 241, either way, replaced $donotdelete != "donotdelete"

in the corrsponding lines with $donotdelete == "donotdelete"


line 241, 425, 433
skidpics is offline   Reply With Quote
Old March 14th, 2008, 12:59 PM   #14 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
just tried that and I just got a blank bulkupload screen once submitting bulk upload - revert back to original for now.
skidpics is offline   Reply With Quote
Old March 14th, 2008, 01:01 PM   #15 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
is it supposed to be if ( file_exists( $filein ) && $donotdelete == "donotdelete" )

or if ( file_exists( $filein ) && $donotdelete !== "donotdelete" )

notice the ! from a previous post here.
skidpics is offline   Reply With Quote
Old March 14th, 2008, 01:38 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
Yes

if ( file_exists( $filein ) && $donotdelete != "donotdelete" )

that would be right
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 14th, 2008, 01:59 PM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
Please just pm me ftp account info and I will upload the changed files as I applied the changes I noted and things work from what i see.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Users can delete categories even if "delete photos" is set to no. benFF Photopost Pro Bug Reports 5 February 11th, 2008 10:48 PM
Manage photos doesn't delete photos. drache Photopost Pro Installation & Upgrades 3 February 25th, 2006 11:57 AM
Displaying photos outside of directory Happy Camper Photopost Pro How Do I...? 2 December 23rd, 2004 10:31 AM
Upload Directory -Delete files? JBR General Discussion 3 July 5th, 2004 09:45 AM


All times are GMT -5. The time now is 12:55 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0