Hi,
I have a lot of lazy users, who doesn't use time to name their pictures. To get around that I have placed an extra line in /mod/tidypics/actions/upload.php for forced naming.
This line goes in around line 143:
$file->title = substr($name,0,strrpos($name,"."));
Users can always change the name of the picture, and I get rid of all the "unnamed" pictures.
Maybe something to add to the official release?
Regards
Slyhne
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.
- Tidypics Team@tidypics

Tidypics Team - 0 likes
- slyhne@slyhne

slyhne - 0 likes
- Tidypics Team@tidypics

Tidypics Team - 0 likes
- slyhne@slyhne

slyhne - 0 likes
- Tidypics Team@tidypics

Tidypics Team - 0 likes
- elHayaze@hayaza

elHayaze - 0 likes
- slyhne@slyhne

slyhne - 0 likes
You must log in to post replies.Tidypics forces the renaming in the action that saves the title and descriptions.
@Tidypics Team
You are absolutely right, but in my experience users just navigate away from the form that sets title, description and cover-photo. So by forcing a title I finally got rid of unnamed pictures.
We're not communicating here. Tidypics already does what you're suggesting after someone submits the form with an empty name field.
You're absolutely right, but I have noticed that people doesn't submit the form (the one with title and descrition), they simply navigate away. That leaves pictures without a title.
In that context my fix is still the only way to ensure naming of pictures :-)
OK - I see what you're saying.
@shlyne Your fix will remove the default "unnamed" photos ? So it would be empty, is that right ?
@elHayaze
No, instead of "unnamed" it would be the file name without .jpg (or what ever).
Users can still put in a different name, but this way I get rid of "unnamed" for good.