Jump to content

User:PyneJ/Hacks/Talk and Contributions Links

From Meta, a Wikimedia project coordination wiki

Overview

[edit]

This hack/change will add Talk and Contribution links to the Special:Listusers page.

More Info

Demo

[edit]

See it in action here.

Code Changes

[edit]

\Includes\SpecialListUsers.php

[edit]

Just 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 );