Page MenuHomePhabricator

gallery of images uploaded by a user
Closed, ResolvedPublic

Description

It would be nice to have a special page, analogous to Special:Contributions,
that shows all files uploaded by a user, (optionally?) as a gallery. This is
probably what was intended by bug #1348, but what is requested there would
include all image pages edited by that user - which would be misleading,
especially for users who do a lot of categorizing of images, etc.


Version: 1.6.x
Severity: enhancement

Details

Reference
bz3341

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:47 PM
bzimport set Reference to bz3341.
bzimport added a subscriber: Unknown Object (MLST).

wiki.bluefish wrote:

it would also be good to have a filter for all self created articles.

wiki.bugzilla wrote:

(In reply to comment #1)
bug 4150 requests self created ''new'' articles to appear on "Special:Contributions"

wiki.bugzilla wrote:

"Special:Newimages/Nick" works now and is live on the projects.
All images that were uploaded by a user are shown in the known
style of [[Special:Newimages]] there. Enjoy :-)

Thanks to Magnus Manske for implementing this yesterday!

wiki.bugzilla wrote:

*** Bug 1348 has been marked as a duplicate of this bug. ***

wiki.bugzilla wrote:

reopened due to the fact that the code was reverted in CVS

wiki.bugzilla wrote:

*** Bug 1983 has been marked as a duplicate of this bug. ***

brianna.laugher wrote:

There is a standalone tool that does this:
http://tools.wikimedia.de/~daniel/WikiSense/Gallery.php

It's integrated into Commons for admins ('Gallery' tab on user namespace pages),
and regular Commons users can easily have it too. See [[commons:Commons:Tool
integration]].

It works for en.wp too, so probably it's possible to integrate there as well.

robchur wrote:

(In reply to comment #7)

There is a standalone tool that does this:
http://tools.wikimedia.de/~daniel/WikiSense/Gallery.php

Ironic that the OP is the person who created this. :) However, the request is to
add this to the software in the form of a special page.

Special:Newimages is not the place to add this, since as the name suggest, it
deals with new uploads; a user could have more files uploaded than would fit in
this data set.

webmaster wrote:

(In reply to comment #7)

It's integrated into Commons for admins ('Gallery' tab on user namespace pages),
and regular Commons users can easily have it too. See [[commons:Commons:Tool
integration]].

It works for en.wp too, so probably it's possible to integrate there as well.

If this has already been integrated into Commons, could we see the code ported
to core or at least an extension?

If the code already exists, it shouldn't take that long... :)

brianna.laugher wrote:

(In reply to comment #3)

"Special:Newimages/Nick" works now and is live on the projects.
All images that were uploaded by a user are shown in the known
style of [[Special:Newimages]] there. Enjoy :-)

Thanks to Magnus Manske for implementing this yesterday!

This doesn't work for me. Adding the /Username makes no difference to the results.

brianna.laugher wrote:

(In reply to comment #10)

OK, I figured out this functionality was removed. Nevermind.

Just wanted to mention that a major reason to introduce this is that it is
currently very difficult for users (especially new ones) to figure out where
their uploaded files "are". They are not very visible or easily accessible.
Watching Special:Newimages, I often see new users upload the same image two or
three times in a short span of time. I guess this is part of the reason why -
perhaps they closed a window/tab and they don't know where their image "went" or
how to find it again.

webmaster wrote:

What ever happened to this?
I thought this had been included, then removed, but still on Commons?

I think this would be a very nice (powerful) tool for admins. I don't
necessarily see a reason to restrict it to admins, but if Brion et al know a
reason it should be admin-only, that would still be better than nothing. :)

bugs wrote:

It really isn't necessary... see
http://commons.wikimedia.org/w/index.php?title=Special:Log&type=upload&user=USERNAME
(for example, I am
[http://commons.wikimedia.org/w/index.php?title=Special:Log&type=upload&user=Cbrown1023]).
You have right there a listing of image uploads by a certain user. The
toolserver tool with a gallery can be added to a monobook or a Commons.js/.css
if you really wanted that.

robchur wrote:

It's something that would be nice to have. A gallery allows one to see rapidly
whether one or more of a bunch of images need to be deleted or evaluated for
licencing purposes.

Note the existence of an extension which provides this as a parser hook;
UserImages. A special page is perfectly feasible, however, and probably
preferable, since it won't be subject to caching.

Created attachment 7238
patch to filter by user for special:listfiles special:newimages

Here is a patch to add a user parameter to [[special:newimages]] and [[special:listfiles]].

This is similar to what was reverted in r12376 for being too inefficient. However I believe this patch is generally efficient as there is an index for img_user_text. (However if $wgMiserMode=false , special:listfiles uses a different query that also outputs the number of revisions the file has had. This patch might make that query worse than it currently is, not sure). Bear in mind I'm not that familiar with how sql scales, so take anything i say about efficiency with lots of salt.

Last of all, it seems as if these pages should accept the username as a specal:blah/username parameter. This patch does not do that as currently thats used for limiting the number of results.

Comments appreciated.

Attached:

(In reply to comment #15)
Tried to apply the patch, but it didn't apply cleanly. Entries in maintenance/language/messages.inc are missing.

Fine with me functionality wise. I was wondering if checking user existence really matters.

Bryan.TongMinh wrote:

This was fixed in r65013 and r75582 and is available in 1.17. There even is a [[Special:Myuploads]]

See also bug 28074 (enhancement) for the more fundamental issue of providing a means for a user to show a gallery of one owns images on one owns user page.