Extension talk:Contributors

It will not work ok when the MW version is 1.8.4
i have already fix this problems!I am --Wanglong 08:23, 26 September 2007 (UTC)

if I add the, the extension works ok,

but when I type the url:

http://localhost/allwiki/index.php/Special:Contributors

the system tell me: Fatal error: Call to undefined method IncludableSpecialPage::gettitlefor in E:\wamp\www\allwiki\extensions\Contributors\Contributors.page.php on line 206

because MW1.8.4 don`t have the method gettitlefor under SpecialPage.php, so i copy the method from the vesion of 1.10.0 to current version of my Mediawki 1.8.4 to the class SpecialPage: static function getTitleFor( $name, $subpage = false ) { $name = self::getLocalNameFor( $name, $subpage ); if ( $name ) { return Title::makeTitle( NS_SPECIAL, $name ); } else { throw new MWException( "Invalid special page name \"$name\"" ); }	}		/**	 * Get the local name for a specified canonical name */	static function getLocalNameFor( $name, $subpage = false ) { global $wgContLang; //		$aliases = $wgContLang->getSpecialPageAliases;// i get off this by pea if ( isset( $aliases[$name][0] ) ) { $name = $aliases[$name][0]; }		if ( $subpage !== false && !is_null( $subpage ) ) { $name = "$name/$subpage"; }		return $name; }

and then the extension can work!i am so happy! hehe !--Wanglong 08:23, 26 September 2007 (UTC)

Cite and Contributors extension
Hi. I am getting html validity warning when using both Cite and Contributors extensions.

Warning:  anchor "t-cite" already defined  Cituj tento článek   Main contributors  --147.229.5.124 06:52, 30 May 2007 (UTC)


 * Fixed, thanks. robchurch | talk 18:19, 1 June 2007 (UTC)

Embedding
When I did a test page for embedding in a page, it was one row and pretty much looks awful. :( --PurplePopple 14:59, 27 September 2007 (UTC)

Problem with custom namespaces
I've set up the contributors extension on my site and it works fine. This is a very useful extension.

However, I've got a problem with custom namespaces. Almost all articles on my wiki appear in custom namespaces and I would like to use the "main contributor" link in the toolbox to see the main contributors for these articles.

The problem is that the "main contributors" link appears in the toolbox on articles in the (Main) namespace, but not in the toolboxes in the custom namespaces.

I'm using MW version 1.9.1 with the monobook template.

I tried to set up a link to the special page using MediaWiki:sidebar, but I couldn't get this to work.

For some reason, the contributor extension is placing the "main contributors" link in the tool box only in the (Main) namespace.

Can anyone help me solve this problem?

Thanks..

--C4duser 23:50, 26 October 2007 (UTC)

How to add Contributors list on each article page?
I have installed this extension on my media wiki installation. It is working fine enough.

Is there anyway to tweak it so that it will shown on each article?

some tweaks to this extension
I've posted a version of this extension with some customizations (each name links to user homepage, option to show real name, more flexible layout): http://htyp.org/Contributors_extension

I have no idea what the process is for properly integrating these changes with the official release (assuming they're an improvement), so I'll leave it for someone else to do or else point me at a how-to... Thanks.

--Woozle 12:29, 14 November 2007 (UTC)

Doesn't work out of the box with PostgreSQL
Postgres will (correctly) complain that you neeed to group by rev_user as well as rev_user_text for the query to really make sense. To fix find the line that looks like:

'GROUP BY' => 'rev_user_text',

and change it to:

'GROUP BY' => 'rev_user_text, rev_user',

Mediawiki 1.15 and Contributors
Ok, so after some playing and tinkering, pushing and pulling, I finally got contributors working for my installation. For some reason it chokes on Line 50 of Contributors.page.php (Undefined call...)

Finally, after some thinking, I got it working by using the REL_1_14 branch. Here's my pertinent excerpts from Special:Version: MediaWiki 	1.15.1 PHP 	5.2.4-2ubuntu5.6 (apache2handler) MySQL 	5.0.51a-3ubuntu5.4

Installed extensions Special pages Collection (Version 1.2) 	Create books 	PediaPress GmbH and Siebrand Mazeland Contributors (Version 1.0.1beta) 	Summarises the main contributors to a page 	Rob Church Flagged Revisions 	Gives editors and reviewers the ability to validate revisions and stabilize pages 	Aaron Schulz and Joerg Baach Parser hooks Cite 	Adds  and  tag of the Cite extension doesn't produce output if you use   on the same page. Any idea what's wrong? Thanks for your help! Stefahn (talk) 15:32, 28 March 2013 (UTC)


 * Debugged the code myself and found a solution: Comment out line #22 ($this->setHeaders;) in Contributors.page.php, like so:

global $wgOut, $wgRequest; //$this->setHeaders; $this->determineTarget( $wgRequest, $target );
 * I don't know what it does, but the extension still seems to work fine without that line... Stefahn (talk) 16:10, 28 March 2013 (UTC)

How to make a list of names with links?
Hello! Need some help. Extension is very useful and works well. It would be great if the list of names would be links to pages of authors(User:UserName).

Everything that is displayed on a special page(Special:Contributors) be great to displayed on the page of the article.

How it can be added to the template? It should look like this:



— Preceding unsigned comment added by Piroru90 (talk • contribs) 10:20, 29 October 2014‎


 * The extension doesn't currently support that, though it probably should. In the meantime, if you'd like, try the following patch. In the latest version of  in function , line 52, change it from:

return $contributors->getSimpleList( $parser->getFunctionLang );
 * to:

return array( $contributors->getNormalList( $parser->getFunctionLang ), 'noparse' => true, 'isHTML' => true );
 * Note that this will patch will only help when using the  parser function, not when using special page inclusion.
 * --Ike @ WikiWorks 19:39, 29 October 2014 (UTC)

Thank u much!

A List of Names outputted as comma separated
Hi

Thanks for the great extension. I'm looking to change the code from printing out: Joe, Frank and Mike to where the output is just a comma delimited list: Joe, Frank, Mike. That way one could feed the results to an arraymap, or arraytemplate, to have a better display. Thanks Christharp (talk) 22:10, 16 December 2014 (UTC)
 * Perhaps the extension should support that. A format parameter for the parser function might be nice, at some point. I guess you could strip out the "and" using StringFunctions, which is somewhat unreliable, especially in non-English languages. This modification should work:
 * In the latest version of  in function , change it from:

return $language->listToText( $this->getContributorsNames );
 * to:

return $language->semicolonList( $this->getContributorsNames );


 * I changed this to a semicolon list because those are not commonly found in user names. You can do a comma list by calling function  instead. --Ike @ WikiWorks 22:43, 16 December 2014 (UTC)