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 > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 21st, 2005, 06:46 PM   #1 (permalink)
Member
Verified Customer
 
mtha's Avatar
 
Join Date: May 2005
Location: OK, US
Posts: 107
Send a message via Yahoo to mtha
"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?
mtha is offline   Reply With Quote
Old November 21st, 2005, 06:54 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
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 November 21st, 2005, 07:09 PM   #3 (permalink)
Member
Verified Customer
 
mtha's Avatar
 
Join Date: May 2005
Location: OK, US
Posts: 107
Send a message via Yahoo to mtha
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.
mtha is offline   Reply With Quote
Old November 21st, 2005, 07:17 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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 );
__________________
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 November 21st, 2005, 07:27 PM   #5 (permalink)
Member
Verified Customer
 
mtha's Avatar
 
Join Date: May 2005
Location: OK, US
Posts: 107
Send a message via Yahoo to mtha
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.
mtha is offline   Reply With Quote
Old November 21st, 2005, 07:40 PM   #6 (permalink)
Member
Verified Customer
 
mtha's Avatar
 
Join Date: May 2005
Location: OK, US
Posts: 107
Send a message via Yahoo to mtha
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
mtha is offline   Reply With Quote
Old November 21st, 2005, 08:31 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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!" );
__________________
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 November 22nd, 2005, 07:29 PM   #8 (permalink)
Member
Verified Customer
 
mtha's Avatar
 
Join Date: May 2005
Location: OK, US
Posts: 107
Send a message via Yahoo to mtha
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.
mtha is offline   Reply With Quote
Old November 22nd, 2005, 07:58 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,653
Do you have the update as I posted in that file?
__________________
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 November 22nd, 2005, 08:10 PM   #10 (permalink)
Member
Verified Customer
 
mtha's Avatar
 
Join Date: May 2005
Location: OK, US
Posts: 107
Send a message via Yahoo to mtha
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.
mtha is offline   Reply With Quote
Old November 22nd, 2005, 08:37 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I remove a user from the "Top Posters"? Johnny Doomo Photopost Pro How Do I...? 11 April 12th, 2006 10:39 AM
want to remove the "Recent Photos link" susanreno Photopost Pro How Do I...? 1 September 24th, 2005 06:12 PM
How do I remove the detail info underneath the thumbnails of "Feature Photos" ? TL408 Photopost Pro Installation & Upgrades 2 May 2nd, 2005 12:04 AM
"-1" = unlimited (admin), mass-delete (user), member category options (user) EricR vBGallery Suggestions 5 April 5th, 2005 02:50 PM


All times are GMT -5. The time now is 08:10 PM.

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