User:PyneJ/Hacks/Talk and Contributions Links
Overview
editThis hack/change will add Talk and Contribution links to the Special:Listusers page.
Demo
editSee it in action here.
Code Changes
edit\Includes\SpecialListUsers.php
editJust insert the following lines just after line 64 in \Includes\SpecialListUsers.php
.
//Talk and Contributions Links for \Includes\SpecialListUsers.php
//By: Jeremy Pyne- 8/3/2005
$JSP_Show_Talk = true;
$JSP_Show_Contrib = true;
$JSP_Talk_String = "Talk";
$JSP_Contrib_String = "Contributions";
if($JSP_Show_Talk || $JSP_Show_Contrib)
$name .= ':';
if($JSP_Show_Talk)
$name .= ' ' . $skin->makeLink( $wgContLang->getNsText($result->namespace) . '_talk:' . $result->title, $JSP_Talk_String );
if($JSP_Show_Contrib)
$name .= ' ' . $skin->makeLink( 'Special:Contributions', $JSP_Contrib_String, 'target=' . $result->title );