Tags:
search1Add my vote for this tag create new tag
, view all tags

Question

I'd like to be able to generate a table/page containing a list of all the pages a given user has edited in the past, even if they're not currently the most recent editor; I'm thinking of something similar to the Wikipedia's "user contributions" feature. I've looked at the search function, but haven't seen an intuitive way of doing this (e.g. there's no way to limit the search to an "editby" field).

It seems like the ContributorsPlugin might be a good start for this, but that only lists the editors for a given topic.

Is there a way to code a formatted search so that the search returns this type of list?

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian 3.1
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Topic revisions, Statistics, Plugins, Add-Ons

-- MarcPerkins - 10 Apr 2005

Answer

Assuming your signature is in every topic of interest, you can use a TWikiSearch for your WikiName. This works here on TWiki.org since we have the convention to sign the contributions (in addition, the Codev and Plugins webs have a InterestedParties field where you can put your name if you are interested in the subject of that topic).

Here is an example showing the 20 most recent topics you (e.g. the logged in person) was involved in recently. Write this:

%SEARCH{ "%WIKINAME%" order="modified" limit="20" reverse="on" }%

To get this:

Searched: TWikiGuest

Results from Support web retrieved at 20:52 (GMT)

Statistics for Support Web Month: Topic Views: Topic Saves: Attachment Uploads: Most Popular Topic Views: Top Contributors for Topic Save ...
Hi, Can some one please explain steps to configure apache to make twiki site redirect to login script for authentication for any url hit? Thanks, Sirnivas.M TWikiGuest ...
Hi, I want all new registered users to automatically subscribed to a topic as default setting? Will it be possible? Thanks, Srinivas.M TWikiGuest 2012 02 01 Discussion ...
How can I move the Jump/ Search/ Account Bar and the contributor text alongwith the tag functionality to bottom of the page so that I can maximize the readable area ...
Hi all, I am getting the following error when trying to browse for extensions via Twiki #39;s/do/configure page: Error accessing TWiki.org: Incomplete headers Extension ...
Hi, Is there a way to get the User #39;s Email address directly which he has entered while registration onto a twiki topic? Basically it has to get from htpasswd file ...
Hi, Is there a way implement to User registration approval setup for Twiki site? As admin user can approve or reject depends on the info that they have provided in ...
Hi, I need a way to send an automatic email to user when he has been added to a twikigroup ( in my case a new twiki group, CORPUSERSGROUP) Will it be possible? any ...
Hi, Is it possible to add a newly registered user to a default group in Twiki? I can #39;t add manually each person to a group whenver new registration happens. So ...
Hi, I have defined Set READONLYSKINMODE 1 in webpreferences of new TWiki Web. Somehow, it is still showing topic action links in the page bottom of new web. Can ...
I am new to TWiki. I have correct all the warnings and errors in Configure. As I don #39;t know the company #39;s SMTP address, I used a free mail vendors smtp server ...
A statistics update on console or via browser is showing this error message: Software error: Can #39;t continue after import errors at /pages/f7/ed/d0007415/home/htdocs ...
Dear All, I have the following problem; I have installed Twiki, created a (local) user which I can logon as w/o problem. I have now installed LDAPContrib and can authenticate ...
Question Hello, I've just installed a vanilla installation of TWiki 4.2.0 and TWikiNetSkinPlugin. The skin works perfectly fine when I manually append "?skin twikinet ...
Hi, My TWiki is 5.1.0. It is fresh install version and I didn't install anything after I finish to install. TWiki works great! I can add pages and everything looks ...
Hi everyone! I am currently running TWiki 5.1.0, Sat, 20 Aug 2011, build 22128 and have run into a problem regarding MailerContrib WebNotify. I had a working setup ...
While installing the LdapNgPlugin I get the following errors: Attempt to reload TWiki/Contrib/LdapContrib.pm aborted. Compilation failed Checking dependency on Unicode ...
Question I have not been able to get searching to work, when looking for form field values. Regardless of what I try the searches always come back empty. I've read ...
When I click jump with a search text, the font starts becoming progressively smaller on the screen and the last few items that come up are absolutely unreadable! Can ...
Hello, Twiki will not obey my formatting of my entry no matter what I do. While editing my entry, it looks EXACTLY the way I want it to, but when I publish it, it ...
Number of topics: 20

This could be formatted nicely with a FormattedSearch.

-- PeterThoeny - 11 Apr 2005

Thanks for the fast response Peter!

While that search does do some of what I wanted, unfortunately it doesn't do everything. The search returns any page that includes the user's name in-text, so if a user was simply being discussed on the page, but had not edited the page, the page is still returned. Additionally, the search only returns pages with user signatures in them, which aren't always present (at least on my site).

I guess my hope is to be able to directly search (or otherwise access) the list of authors who have edited each page.

-- MarcPerkins - 11 Apr 2005

You can't. Without signatures, the best you can do is search for the most recent editor of a page. There is no way to search the history of a page.

-- CrawfordCurrie - 11 Apr 2005

That said, the underlying revision system does store this information. If anyone would provide code to expose this information via the API we'd happily look at incorporating it. I'd venture that this plugin would indeed, Marc, be the best place to start extending functionality to cover your needs and that some of ContributorsPlugin might better eventually belong in the core.

-- MartinCleaver - 11 Apr 2005

Actually the information is already exposed, it's just not very efficient to get at it. You can ask for rev info for any givem prior revision.

-- CrawfordCurrie - 12 Apr 2005

Using the ContributorsPlugin, combined with a formatted search, I've been able to generate a table containing a list of all topics in the web that includes which users have edited each of the topics.

Assuming you have the plugin, here's the code:

%SEARCH{ "\.*" scope="topic" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" header="| Topic | Most recent author | Last revision | All topic authors |" format="| [[$topic]] | $wikiusername | $date |$percntCONTRIBUTORS{web=$percntCURRENTWEB$percnt topic=$quot$topic$quot format=$quot $dollarauthor $quot nodups=$quoton$quot}$percnt |" }%

For an example of this search's output, formatted as a form, see this page: http://rabbit-island.net/cgi-bin/twiki/view/Main/WebContributors (The page is slow to load, as the search takes ~14 seconds to complete.)

Ideally, one could put this table (maybe as a form?) onto a page (WebContributors?), search the last table column ("All topic authors") for a given user's name, and then display all rows containing a given user's name in a table, which would give you a list of all pages a specific user has edited.

I'm running into two problems:

1) The search is very processor intensive, and thus leads to slow load times for the page that contains the search. Would it be possible to have the page (WebContributors?) containing the result of the first, site-wide, search be static, and updated by a cron job that runs the search only at a given interval (hourly?) This would drastically reduce the server load caused by this search.

2) I don't know how to perform the second search (I described above) that searches the site-wide table of user edits to generate a list of only a specific user's edits.

-- MarcPerkins - 16 Apr 2005

You could install the VarCachePlugin to cache the contributors topic. The topic can be refreshed on demand or after a fixed time.

-- PeterThoeny - 06 Jun 2005

Thanks Peter, that worked like a charm to reduce the page load time. Now I just need to play with that second search ...

-- MarcPerkins - 01 Jul 2005

Hi everyone! I see that the issue has been resolved for MarcPerkins and his site. I am however not happy with the solution for our TWiki site. We need a better integrated solution. Something along the lines of what MartinCleaver proposed above.

We use TWiki as a collaboration platform for an international and iterdisciplinary research project. For many scholars and developers it is crucial to get full credit for their contributions to the project. It is therefore important for us to have system that lists all the edits of a particular contributor for all topics. Ideally this functionality should be incoorporated into the user sites.

Are there any plans to include this functionality into the core revision control system?

Thanks!

-- MatthiasRoeder - 31 May 2007

Matthias, you have to raise a question like that in Codev (create a change proposal) - it will just be ignored here.

-- CrawfordCurrie - 12 Jul 2007

Thanks a lot, Crawford!

-- MatthiasRoeder - 19 Jul 2007

 
Topic revision: r16 - 2007-07-19 - MatthiasRoeder
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.