Extension talk:TopTenPages/Archive

Restrict to namespaces
Is there any way to restrict the output to certain namespaces? --Flominator 13:07, 15 August 2007 (UTC)


 * As a first workaround, you could edit this line (42) in your TopTenPages.php


 * Replace NS_MAIN by the namespace of your choice, e.g. NS_USER, NS_IMAGE, See Manual:$wgNamespacesToBeSearchedDefault for a completet list of Namspaces. Please leave the dots before and after the namespace, because they are tell the parser to connect the text-strings. If you'd like to see the most frequented discussions, you could write:


 * Of course, this would affect all Occurrences.
 * An existing page may show the pages of the old namespace until all (Browser and Server) caches are cleared. Testing by editing a new page and looking at preview showed changes immediately.


 * I just made available via variable. I'll publish it tomorrow or so.
 * New Version available. Includes Namespace-Selection. For Details, see Extension-Page. --Sascha 12:52, 4 September 2007 (UTC)

User-Namespaces
Hi there, thanks for the modification above. Meanwhile I faced a new problem. I want to list pages in custom made namespaces, like the ones I definied in localSettings.php: Unfortunately TopTenPages didn't support it, so I had to write a quick workaround and added the following lines:

Maybe you want to include a way to specify the namespace per number or something around those lines. Thanks, --Flominator 11:28, 10 October 2007 (UTC)


 * We also needed this. Maybe you could iterate through the $wgExtraNamespaces array? --Samdutton 12:43, 25 January 2008 (UTC)

I tried to use it but I am getting error as function "wfMsgExt" not defined. Any help? this look like a good extension that I would like to use on ny WIKI but I couldnt make it to work due to that error. I have version 1.6 Any help will be highly appreciated. Thanks!!

Some cleanup? Namespaces, user and built in.
I rewrote the code to handle user namespaces and built in namespaces. Using MediaWiki 1.11.1, all the code is already there in the built-in Namespace code. I don't know about older versions. There is no longer any dependency on specific namespace strings. Replace getSQL with the following functions:

PS: Thanks for writing this extension - saved me a lot of time!

Dangers?

 * "For use in Low-Risk-Environment"

Does the above quote from disclaimer mean that there are some dangers or vulnerabilities in the extension? Or just that the author doesn't know enough to know if there are? If it is the latter, case, can anyone else weigh in? This seems like a good extension, but the disclaimer makes me wary. Smaug  15:41, 12 April 2008 (UTC)
 * I'm not an expert, but I think the user just wanted to make sure he did nothing wrong. Maybe we should ask some of our experts about it. --Flominator 17:36, 14 April 2008 (UTC)

within an article?

 * "Shows the most popular Pages within an article."

Should be "within a wiki" I assume? --Chriswaterguy 13:46, 21 October 2008 (UTC)

I just came here to ask the same thing??? 74.45.250.155 03:29, 13 February 2009 (UTC)