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 June 1st, 2005, 05:56 PM   #1 (permalink)
DJT
Registered User
 
Join Date: Mar 2005
Posts: 44
Delete Photo - Notifications not removed(not a bug)

I noticed that when a members deleted a photo that has email notifications set by other members, that the notifications are not deleted. So when you view a member who had lots of notifications which are gone, they appear blank.

When a photo is deleted, does PP scan for members who received notification and remove them?
DJT is offline   Reply With Quote
Old June 1st, 2005, 06:40 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
When a photo is deleted all instances of things for that photo are deleted as can be seen by these queries in editphoto.php

$query = "DELETE FROM {$Globals['pp_db_prefix']}photos WHERE id=$phoedit";
$resulta = ppmysql_query($query, $link);

$query = "DELETE FROM {$Globals['pp_db_prefix']}comments WHERE photo=$phoedit";
$resulta = ppmysql_query($query, $link);

$query = "DELETE FROM {$Globals['pp_db_prefix']}exif WHERE photoid=$phoedit";
$resulta = ppmysql_query($query,$link);

$query = "DELETE FROM {$Globals['pp_db_prefix']}notify WHERE photo=$phoedit";
$resulta = ppmysql_query($query,$link);

$query = "DELETE FROM {$Globals['pp_db_prefix']}photoextras WHERE photo=$phoedit";
$resulta = ppmysql_query($query,$link);

adminlog( "Photo Deleted: $filename (#$phoedit) $ptitle" );
__________________
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 June 1st, 2005, 10:10 PM   #3 (permalink)
DJT
Registered User
 
Join Date: Mar 2005
Posts: 44
Correct however there are instances where this is not accomplished:

1. Delete all of a members photos when an admin views their profile. This executes adm-cats.php with the delphotos sub. This deletes all SQL entries for that members photos, executes remove_all_files which deletes the image files, then executes the upgrade_categories sub. No where are the notifications that are tied to any of the photos removed.

2. The same process as above is executed if an administrator deletes a member from the admin console. Notifications are not removed for any photos that other members may have been set to receive.
DJT is offline   Reply With Quote
Old June 1st, 2005, 10:26 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
I would need to investigate those two claims however that is not the support request you submitted My answer is based on what you submitted
__________________
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 June 1st, 2005, 10:37 PM   #5 (permalink)
DJT
Registered User
 
Join Date: Mar 2005
Posts: 44
I know it has grown a bit from my origional question. I wasn't sure why I was viewing members profiles and seeing lots of "Photo Notifications" on the right hand side of the page with no description or link, just a blank box with a check box to delete. I wasnt sure how that was being done until I investigated further.
DJT is offline   Reply With Quote
Old June 2nd, 2005, 05:33 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
In adm-cats.php and adm-users.php find this lines

Code:
Content visible to verified customers only.
add below it 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.
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
PhotoPost Admin Photo Approval Interface bug(NOT A BUG) Johnny Doomo Photopost Pro Bug Reports 7 October 26th, 2005 01:08 PM
when delete the thumpnail not deleted(NOT A BUG) majed Photopost Pro Bug Reports 2 October 17th, 2005 01:23 PM
Unusual photo - can't delete it firstrebel Photopost Pro Installation & Upgrades 4 March 16th, 2005 02:12 PM
How to delete email notifications for a member? woodwater Photopost Pro How Do I...? 5 February 6th, 2005 02:02 PM


All times are GMT -5. The time now is 05:32 PM.

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