User talk:MarkAHershberger/Archive 1

Thumbnail patch
Hey Mark,

the patch did not work with my Wiki. I noticed that some thumbnails worked, others did not, independently of their file type (jpg, gif, ...). The only effect of the patch was that links to non-existent pages where not underlined red anymore, but black with a red question mark right next to it.

Any help?

--Thorsten (talk) 09:57, 13 September 2012 (UTC)


 * Sent you an email asking you to try this 1.20 beta tarball and let me know what you find.

Question About Workflow Proposal for Problem Entry
Hello, for my OPW Project (my project page) I wanted to complete the Workflow Proposal you started. I plan to look at other open source projects to see how they handle feedback. If you could, I'd like to know your original thoughts on this to help direct me where to look and formulate questions to ask contacts in other projects. Thank you for your time! --Valeriej (talk) 18:49, 07 January 2013 (UTC)
 * My original idea was to set up a wizard of some sort to help users report problems and make sure the problem reports. Wikipedia is pretty unique -- Mozilla and Gnome don't have anywhere close to the copyright issues that Wikipedia does.  But I did find that some things Mozilla is doing on QMO looked very attractive, community-wise.  I'm not sure what else you're interested in.  Feel free to contact me on IRC (hexmode) and I'll discuss it with you further.

MW 1.19. support
Heiya Mark, there seems to be some confusion about the time span MW 1.19 will be supported. The announcement states two years. One could argue that this is counted from the initial release of 1.19. in May 2012 (= support until May 2014), or for the two years Wheezy is supported (= support until February 2015). The latter makes more sense to me, but clarification would be cool. I am sure that you will be of help in this case. Cheers --&#91;&#91;kgh&#93;&#93; (talk) 23:52, 8 January 2013 (UTC)
 * My idea was more along the line of syncing up with Debian. I want to get all this nailed down with other devs.  Where have you hear talk about this? -- ☠ MarkAHershberger ☢ (talk) ☣ 00:04, 9 January 2013 (UTC)
 * It was a recent edit commentary on page Version lifecycle which made me have second thoughts. I believe that it is crucial for the community to know, either way. There is no immediate problem. However, a lot of people are relying on the info there. Besides, your thoughts on this sound reasonable to me. --&#91;&#91;kgh&#93;&#93; (talk) 01:03, 9 January 2013 (UTC)
 * Heiya Mark, I just saw your recent edit on Version lifecycle. Great to know and thank you for clarifying this. Cheers --&#91;&#91;kgh&#93;&#93; (talk) 18:06, 14 January 2013 (UTC)

Using Git Review with Github
When I try to commit, I get this:

$ git review -R No '.gitreview' file found in this repository. We don't know where your gerrit is. Please manually create a remote named gerrit and try again.

Do you know how I configure it to use with Github? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 14:34, 30 April 2013 (UTC)
 * git review is only needed for Gerrit. If you're using github, you would use "git push".-- ☠ MarkAHershberger ☢ (talk) ☣ 14:46, 30 April 2013 (UTC)

Can't Filter out Search Words with SpecialSearchGo/SpecialSearchNogomatch
Hi Mark,

You had replied to my question on the mw support site. Your reply is pasted below. I followed your suggestion and tried SpecialSearchGo and SpecialSearchNogomatch. I've been trying to modify code in the default search, in \includes\specials\SpecialSearch.php in order to filter out "the" and "the " from a search term such as "thearticle" or "the article" but I can't get it to work.

I tried to register this hook in Localsettings.php: $wgHooks['onSpecialSearchGo'][] = 'SpecialSearch::onSpecialSearchGo'; Then in \includes\specials\SpecialSearch.php, I added this static function in the class SpecialSearch: public static function onSpecialSearchGo( &$term ) { if (preg_match("/^'the /i", $term)) {		$term = ltrim ($term,'the '); return SearchEngine::getNearMatch( $term ); }			if (preg_match("/^'the/i", $term)) {		$term = ltrim ($term,'the'); return SearchEngine::getNearMatch( $term ); } I also did a lot of online searches and read mw documentation such as at: Manual:Hooks/SpecialSearchGo, Manual:Hooks/SpecialSearchNogomatch

But I can't get the search to filter out "the" from search terms. I don't know how to call it and incorporate it into the search results yet.

Do I have to run wfRunHooks or some sort of callback for the static function I created? Can you suggest an example? -- (above question asked by Peter321)
 * Your hook invocation uses the wrong name. It should be:
 * No, you don't have to run .  That is how hooks are created.  MediaWiki code creates an hook by calling.
 * Hooks return true or false to determine if the calling code should call any more hooks, so I don't think your return is correct.
 * Do not modify includes\specials\SpecialSearch.php. Instead, put your function in LocalSettings.php or in a file you load via require_once.
 * I don't have an example, but looking at SpecialSearch.php, you should use the  hook to modify the search terms.  This would  give you code like the following:
 * I don't have an example, but looking at SpecialSearch.php, you should use the  hook to modify the search terms.  This would  give you code like the following:

$wgHooks['SpecialSearchGo'][] = 'onSpecialSearchGo'; function onSpecialSearchGo( &$title, &$term ) { # munge $term how you want here return true; } -- ☠ MarkAHershberger ☢ (talk) ☣ 22:17, 2 May 2013 (UTC)

User rights vote
I applied at Project:Requests. There haven't been many votes, if you would be interested in doing so. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 01:28, 5 May 2013 (UTC)

Images doesn't work
Hi Mark! I did an update on my wiki yesterday but for some reason the thumbnails doesnt work anymore. I have installed version 1.20.5. For example, I'll put this image: http://www.khmaniacs.com/wiki/index.php?title=Archivo:10aniversario.jpg If I try to check its original resolution ("Resolucion original" in spanish) I cant see the picture because for some reason the link includes 2 subfolders that doesnt existe. I mean: The link is this one http://www.khmaniacs.com/wiki/images/8/81/10aniversario.jpg but the file is uploaded to http://www.khmaniacs.com/wiki/images/10aniversario.jpg

Yesterday it worked perfectly with all the images of the wiki, as you can see through Google's cache: http://webcache.googleusercontent.com/search?q=cache:uRWJiiY2N_YJ:www.khmaniacs.com/wiki/+&cd=1&hl=es&ct=clnk&client=firefox-a Please I need to fix this, I have more than 4.000 images on the Wiki, I just cant reupload every single file again :(.

Thank you in advance! -- 83.97.234.148


 * It looks like you've upgraded from 1.15, right? What is $wgHashedUploadDirectory set to in your LocalSettings.php?  If it isn't set then does the wiki work if you set it to false?
 * By the way, I've added your wiki to WikiApiary. — ☠ MarkAHershberger ☢ (talk) ☣ 13:24, 20 May 2013 (UTC)
 * (Self followup, setting $wgHashedUploadDirectory to false worked.) — ☠ MarkAHershberger ☢ (talk) ☣ 13:56, 20 May 2013 (UTC)

createAndPromote.php
I added the functionality for adding any user group:

https://github.com/Sturmkrieg/mw-userCreate/blob/master/createAndPromote.php

ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 03:15, 12 July 2013 (UTC)

Thread:Talk:Universal_Language_Selector/Old_English_Wikipedia
Hello. Where can I ask about this and get an answer? πr2 (t • c) 23:43, 22 July 2013 (UTC)

Re: MediaWiki:Histlegend
Sorry, I didn't know it had already been disabled. Too bad Toolserver is dying so painfully. I've removed the link; action=info rarely provides the same information for non-sysops. --Nemo 16:46, 19 August 2013 (UTC)
 * Yes, I said "rarely" not "never". When the number of watchers is below a certain amount, it is not displayed. Hence it makes no sense to link it for everyone, especially as info action is already linked from toolbar. --Nemo 17:04, 19 August 2013 (UTC)