 | |  | | | General Discussion General use discussion forum for PhotoPost products. |
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?
|
| |
March 8th, 2008, 09:36 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
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.
Last edited by Chuck S; March 8th, 2008 at 12:47 PM.
|
| |
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¬ify=$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¬ify=$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.
|
| |
March 8th, 2008, 10:40 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,702
|
the bulkupload forwards there are 4 of them did you get them all
|
| |
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.
|
| |
March 8th, 2008, 12:02 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
March 8th, 2008, 12:12 PM
|
#7 (permalink)
| | Ultimate Member
Join Date: Jun 2007
Posts: 1,340
| Quote:
Originally Posted by Chuck S 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.
|
| |
March 8th, 2008, 12:49 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
March 12th, 2008, 11:26 PM
|
#9 (permalink)
| | Ultimate Member
Join Date: Jun 2007
Posts: 1,340
|
any luck yet?
|
| |
March 13th, 2008, 09:13 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
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.
Last edited by Chuck S; March 14th, 2008 at 01:38 PM.
|
| |
March 14th, 2008, 12:40 PM
|
#11 (permalink)
| | Ultimate Member
Join Date: Jun 2007
Posts: 1,340
|
that didn't work.. just tried it..
|
| |
March 14th, 2008, 12:46 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,702
|
You did that to every line in that file BULKUPLOAD.PHP?
|
| |
March 14th, 2008, 12:54 PM
|
#13 (permalink)
| | Ultimate Member
Join Date: Jun 2007
Posts: 1,340
| Quote:
Originally Posted by Chuck S 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
|
| |
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.
|
| |
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.
|
| |
March 14th, 2008, 01:38 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,702
|
Yes
if ( file_exists( $filein ) && $donotdelete != "donotdelete" )
that would be right
|
| |
March 14th, 2008, 01:59 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 12:55 PM. | |