User talk:Callum Wilson

Hello, I have a question which folows the note you added in the LDAP Authntication discussion board: How do I change the "special:Recentchanges" list, to include the user_real_name? --David, 05:25, 3 February 2008 (UTC)

Hi David, I only have used real names in the page histories so far but have it on my list of todos. Here is our own (internal) wiki link on how to do the page histories.
 * --Callum Wilson 10:44, 4 February 2008 (UTC)

Using Real Names in Page History
One of the problems with the early version of the wiki was that the page history pages just showed the username of the editor - since the XXXCOMPANYXX usernames are numbersd, this made it difficult to determine who actually did the revision.

e.g. the old way:
 * (cur) (last) 08:32, 1 November 2007 T1325300 (Talk | contribs | block) (17,713 bytes) (→Extra Steps) [rollback]

the new look:
 * (cur) (last) 08:32, 1 November 2007 (Wilson Callum) T1325300 (Talk | contribs | block) (17,713 bytes) (→Extra Steps) [rollback]

Add a function to Revision.php The Revision.php is stored in the wiki/includes folder. Add this function:

Adding the Real Name to the History Page Now edit the PageHistory.php and navigate to the historyLine function. The standard code will build up the $user string to include a link rather like this T1325300. Just change the $user string to look like:


 * Thank you very much, it is very useful also. --David, 16:55, 4 February 2008 (UTC)

Making the UserList more helpful
Because XXXCOMPANYXXX usernames are numbers, the standard mediawiki Special:Listusers page normally just displays the user account names. This modification adds in the long name of the user in italics. e.g. instead of:
 * T1325300: Wilson Callum ‎(Bureaucrat, Sysop)
 * T1325300 ‎(Bureaucrat, Sysop)

Making the change:
 * open the file SpecialListuser.php
 * then change these bits of code
 * firstly, in GetQueryInfo, add user_real_name to the fields paramater
 * then in formatRow add in the realname display: