Hi,
How can admin delete a photo or multiple ones uploaded by a user. I deleted his account and when I click on recently viewed, his image still appears. (view/42)
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
hmm.. that shouldn't happen.. if you delete the account, then everything linked to person is gone.. unless of course 'recently viewed' has its own guid.
Right click on the image, find the path where it is coming from let us know.
you can always directly remove the pics in the data folder, but it shouldn't take doing all that
maybe its in the cache?
...mod/tidypics/thumbnail.php?file_guid=42&size=small
Thanks for any help Carlos. I think this capability could/should be added. Photo spamming is nothing new.
@Zakary - You're right but I am having probs locating the file name.
Isn't this related to that old problem of "owned" objects not being deleted when owner is deleted. I believe the trac has the fix.
Until then.. look into the elgg data folder for username -- e.g. b/a/d/b/o/badboy/files/.... and manually delete files there..
what dhrup said
Ok.. I'm with Zak.. you can take it out of the data, althoug, that can be a very tedious process because of the sub-folder hierarchy in the data folder...
My presumption is tidypics recreates a guid for its objects, evident by the fact that the images are being referenced to that plugin.
But here's the good news:
Because it has a file guid, we can find and delete it in a much easier way than the data folder... We can go into the objects table in the database and find object 42, and dump it... The benefit in this is that even if it's deleted from the data folder it may still produce and image holder (image not found icon) because the it is referenced in the database, however, if we delete it from the database, the image will not be called on the page at all.. which means the code will move on to the next message.. It's one of those things with the difference between deleting objects from folders or from database.
Mine is a quick and dirty fix ;-)
Carlos is right ==> table = elgg_objects_entity
The "Object" by GUID# still exists ;-( as does the physical photos in folder.
wouldnt the offending entity contain an owner guid to quickly sort out the the stuff you want deleted?
- Previous
- 1
- 2
- Next
You must log in to post replies.