 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
November 21st, 2005, 06:46 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: May 2005 Location: OK, US
Posts: 107
| "Delete All User Photos" doesnt remove actual photoes
When view member profile, there's an option for "Delete All User Photos"
which execute this: /adm-cats.php?ppaction=delphotos&uid=x
This action is only removing information in database. All images are still left in the folders where it was uploaded.
Should they be removed, or option to remove or leave the pictures/files in place?
|
| |
November 21st, 2005, 06:54 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,653
| Code: Content visible to verified customers only.
You say all the photos are still there? I show we use the function remove_all_files to delete them.
|
| |
November 21st, 2005, 07:09 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: May 2005 Location: OK, US
Posts: 107
|
somehow it just doesnt work. I try to download another copy of PP just now, and test on my localhost.
The info in database is removed (picture is not displayed in album's list), but the files (including original file, thumbnail, medium size file) are still in their folder.
also tested on my linux server, result is the same.
doing some more testing.
|
| |
November 21st, 2005, 07:17 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,653
|
Okay line 1073 in adm-cats.php make this change in bold
remove_all_files( $bigimage, $medsize, $uid, $thiscat );
|
| |
November 21st, 2005, 07:27 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: May 2005 Location: OK, US
Posts: 107
|
yeah, just found out that catid didnt get pasted into the function
the images are deleted now. Thanks Chuck S
Last edited by mtha; November 21st, 2005 at 07:29 PM.
|
| |
November 21st, 2005, 07:40 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: May 2005 Location: OK, US
Posts: 107
|
After delete images:
- Cache should be updated. Now I have no image in my album, and Random Image block still show my old image, with "No Image" in there
- total Number of Photos in Member Galleries (in index page) should also be updated.
It shows 1 image, when I have NO image, at all.
Member Galleries
Individual user galleries - any photo category
· Personal Albums Index
1
|
| |
November 21st, 2005, 08:31 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,653
|
Do you show this in that file? My cache is updated
adminlog( "Removed user images: $user" );
// Let's update the category cache
update_catcache();
forward( "index.php", "Processing complete!" );
|
| |
November 22nd, 2005, 07:29 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: May 2005 Location: OK, US
Posts: 107
|
interesting.
index.php and showgallery.php has different statistic
in this case, all images were deleted (by delete all images in user profile)
I guess they will be updated after 10mins (as set in admincp)
Last edited by mtha; November 22nd, 2005 at 07:33 PM.
|
| |
November 22nd, 2005, 07:58 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,653
|
Do you have the update as I posted in that file?
|
| |
November 22nd, 2005, 08:10 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: May 2005 Location: OK, US
Posts: 107
|
Yes, the update was applied. Quote: |
ppmysql_query("UPDATE {$Globals['pp_db_prefix']}cache SET catcache='$slashcache' WHERE id=1", $link);
|
well, update_cat_cache only update "catcache".
In this case, other caches aint updated, that's why.
( statscache recentcache popularcache randomcache calcache ..)
in the picture above, it shows information, using statscache, recentcache, randomcache. catcache show correct now.
|
| |
November 22nd, 2005, 08:37 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,653
|
The statscache is only updated when cache timeout is reached in index.php Code: Content visible to verified customers only.
|
| | |
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 08:10 PM. | |