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 22nd, 2005, 08:01 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 comments

When admin "Delete All Photo" of some member, the comments that tie with the deleted photo need also be deleted.



... this could work:

adm_cat.php
LOOK FOR:
Code:
Content visible to verified customers only.
REPLACE WITH

Code:
Content visible to verified customers only.

Last edited by mtha; November 22nd, 2005 at 08:05 PM.
mtha is offline   Reply With Quote
Old November 22nd, 2005, 09:40 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Actually its not that complicated to check a photo list

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 November 23rd, 2005, 04:16 AM   #3 (permalink)
Member
Verified Customer
 
mtha's Avatar
 
Join Date: May 2005
Location: OK, US
Posts: 107
Send a message via Yahoo to mtha
Quote:
Originally Posted by Chuck S
Actually its not that complicated to check a photo list

Code:
Content visible to verified customers only.
the above code will delete all comments belong to the same user (uid)

This might not work when

1. there're comments from other members to the deleting picture, that need to be deleted

2. There're comment from the same user, to other pictures, that not need to be deleted (not checked "delete comments" option)
mtha is offline   Reply With Quote
Old November 23rd, 2005, 08:23 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Removed
__________________
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 23rd, 2005, 02:07 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
I'm still not convinced yet!

isnt that make the queries running many times?

says at some point, you need to delete somebody's images, and he has 500 images, 500 queries will be executed, isnt it? it's gonna hurt your server badly.



btw, the $delcomments value is for "Check to delete all comments by this user", which is another issue where you want to delete all member's comments (in not-deleted photos).
Wherether or not this field is checked, the comments belong to the deleted photos still need to be deleted.
mtha is offline   Reply With Quote
Old November 23rd, 2005, 02:20 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Ah I see what your talking about

We would have to actually do a variation of post 1 and my post 2 to achieve the desired action.

My post is basically what the code is suppose to do delete the users comments just like there pictures

You brought up a bug no one has ever noticed though in what happens to the orphaned comments of the deleted photos so a variation of both codes is called for
__________________
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 23rd, 2005, 03:17 PM   #7 (permalink)
Member
Verified Customer
 
mtha's Avatar
 
Join Date: May 2005
Location: OK, US
Posts: 107
Send a message via Yahoo to mtha
Quote:
Originally Posted by Chuck S
My post is basically what the code is suppose to do delete the users comments just like there pictures
"Functioning and Optimization" though

my dual xeon servers are running high on load, so I care more on optimization Hope you do too


Quote:
You brought up a bug no one has ever noticed though in what happens to the orphaned comments of the deleted photos
hard to notice it, when people have alot of member/pictures, and they rarely delete all pictures. I am just testing functions on my localhost to "make you guys busier" making a good product
mtha is offline   Reply With Quote
Old November 23rd, 2005, 04:21 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
LOL

well I think you misunderstand what I am saying. I removed the other code I suggested. however post 2 as stated you still need to run the 1 query to remove all the user's comments which is 1 query

then a query such as yours would be 1 query so I am saying to achieve both it would be 2 queries not 500
__________________
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 23rd, 2005, 10:23 PM   #9 (permalink)
Senior Member
Verified Customer
 
iloco's Avatar
 
Join Date: May 2003
Location: Va
Posts: 528
Not wanting to hijack this thread but will the fix be in a future update or is it in one the files now that can do it. I get confused reading this one.
iloco is offline   Reply With Quote
Old November 23rd, 2005, 10:47 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
There should be a fix provided soon just looking at the best possible solution right now
__________________
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 24th, 2005, 01:45 AM   #11 (permalink)
Member
Verified Customer
 
mtha's Avatar
 
Join Date: May 2005
Location: OK, US
Posts: 107
Send a message via Yahoo to mtha
Quote:
Originally Posted by Chuck S
LOL

well I think you misunderstand what I am saying. I removed the other code I suggested. however post 2 as stated you still need to run the 1 query to remove all the user's comments which is 1 query

then a query such as yours would be 1 query so I am saying to achieve both it would be 2 queries not 500

the second query is already present in the original code:

Code:
Content visible to verified customers only.
You only need to delete all the user's comments when "delecomments" checkbox is checked.
mtha 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 11:39 AM
"Delete All User Photos" doesnt remove actual photoes mtha Photopost Pro Bug Reports 10 November 22nd, 2005 09:37 PM
How do I remove the detail info underneath the thumbnails of "Feature Photos" ? TL408 Photopost Pro Installation & Upgrades 2 May 2nd, 2005 01:04 AM
"-1" = unlimited (admin), mass-delete (user), member category options (user) EricR vBGallery Suggestions 5 April 5th, 2005 03:50 PM


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

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