coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Kindred on July 12, 2005, 04:25:53 PM

Title: CPG-SMF : Galleries & Albums for Deleted users
Post by: Kindred on July 12, 2005, 04:25:53 PM
Ok.   I have never actually run CPG outside of an SMF integration, so I'm not sure how this is handled in the standalone version.

However, in the SMF integrated version, I have comes across an issue.
A user exists in SMF and has created an album and uploaded pictures to it.
(and hence has a user Gallery to hold said album(s) and pictures.)

At some point, the user is removed from SMF by the admins.

This users pictures are still shown in the "random picture" list and their gallery is still listed (although it is not accessible).
The Gallery is listed as belonging to user ???? and can not be entered by anyone... including the Admins.
Which, of course, means that we can not delete said album/gallery.


Is there a way around this? Did I do something incorrectly?
I know I could go in via FTP and delete the file/directory with the user's ID... but my other admins don't have FTP access to the site.
Title: Re: CPG-SMF : Galleries & Albums for Deleted users
Post by: Nibbler on July 12, 2005, 04:31:55 PM
This is to be expected, Coppermine does not know the user has been deleted. Without bridging, Coppermine cleans up albums/pics/comments when users are deleted, so perhaps a scanner script is in order to perform this task for bridged installs.
Title: Re: CPG-SMF : Galleries & Albums for Deleted users
Post by: Kindred on July 12, 2005, 05:26:01 PM
hmmm...   that's kinda what I figured, but it's good to have it confirmed.

Ok, so If someone will point me to where the "delete user" function in the coppermine files might be, I think I can hack-up an add-on for the SMF-delete user that will remove the CPG user data as well
Title: Re: CPG-SMF : Galleries & Albums for Deleted users
Post by: Nibbler on July 12, 2005, 05:52:25 PM
It's in delete.php, case 'user':
Title: Re: CPG-SMF : Galleries & Albums for Deleted users
Post by: Kindred on July 12, 2005, 09:14:36 PM
doh!   of course it is...