User talk:Eep

Todo list
This conversation has grown a bit more general, and it would be useful to get other people involved. I have moved it to Manual talk:Configuration settings —The preceding unsigned comment was added by HappyDog (talk • contribs) 05:06, July 26, 2007.

Template:W
Hi, why did you revert my changes, such as the one to Category:MediaWiki components? There's no need for an useless template when you can do the same thing with page title and it works well and doesn't make the page source code messier etc. -- Sayuri 13:27, 26 July 2007 (UTC)


 * Did you even read my edit summary comments? It's all explained there but I'll reiterate it here for you: the template requires less typing. -Eep² 14:07, 26 July 2007 (UTC)


 * vs. Pagetitle Your template reduces the need to type a grand total of 1 character but now requires you to hold down the shift key for 4 characters and strech your finger to hit a character when the other form uses a easier to access character, and causes stress for the MediaWiki parser because now it needs to go and parse a template in addition to the links and substitute variables. In this template doesn't make anything simpler. If this were Wikipedia, Wikiquote, or any Wikia wiki the community would be tagging it for deletion. Dantman 14:16, 26 July 2007 (UTC)


 * I wasn't aware putting a pipe (and not adding anything after it) removes the namespace. -Eep² 14:46, 26 July 2007 (UTC)

Your "select multiple NS idea"
Hey - I would hope there's a good way to do that w/o hacking stock code, but since you were walking that path and seemed to be pretty interested in it - try this (I didn't test too dilligently - just tested a few times on a MW 1.10.1 installation, it seemed to work as expected):

powerSearchBox function replacement powerSearch function replacement

Thanks for your interest but where would the powerSearch function be placed? Excuse my programming ignorance... -Eep² 00:53, 30 July 2007 (UTC)


 * ;-) powerSearch is also in SpecialSearch.php (above powerSearchBox) - lemme know if it does what it's supposed to do. --Tim Laqua 00:55, 30 July 2007 (UTC)


 * Parse error: syntax error, unexpected ';', expecting T_FUNCTION in ../includes/SpecialSearch.php on line 402 but that line is the end of the file... -Eep² 01:02, 30 July 2007 (UTC)


 * ;-) You pasted over the closing } for the class def.  Add a } to the end of the file on the last line.--Tim Laqua 01:09, 30 July 2007 (UTC)


 * Well, I copied it exactly where it should have gone. Anyway, without adding that } it seems to have fixed itself but now I get this error: Parse error: syntax error, unexpected '[' in ../includes/SpecialSearch.php on line 253 which is $arr[] = $selectedOption;... -Eep² 01:11, 30 July 2007 (UTC)


 * Try the new powerSearch Func (I updated my earlier post) --Tim Laqua 01:19, 30 July 2007 (UTC)


 * OK, that one works, though it doesn't include the "List redirects" checkbox, which isn't that big a deal, I guess, since it's not a namespace, per se anyway. Also, in the URL, it has ns%5B%5D=0 instead of ns=0. Is that supposed to be ns[]=0 and is that because of the array? Not that big a deal but it's always nice to keep the URL as clutter-encoded-free, I say. Anyway, thanks! Now to see if this works for SpecialPreferences.php and wherever else namespace checkboxes appear in (is there a way to just call this multi-select namespace function without having to duplicate it in multiple PHP files? Maybe with <?include 'namespaceSelect.php';?></tt> or something? -Eep² 01:49, 30 July 2007 (UTC)


 * I think the funcs below shoudl take care of that ugly URL and as for the simplicity part - I'll research - those two functions have to be replaced and I'll see if I can come up w/ an elegant way of doing it w/o hacking the files themselves. (no ETA on that, may be a bit.  Maybe someone else has an idea - "how to replace/overwrite/override stock functions within classes) --Tim Laqua 01:52, 30 July 2007 (UTC)


 * OK, thanks. I'll update the extension page and give you most of the credit. ;) -Eep² 02:01, 30 July 2007 (UTC)

Alternative Funcs for Prettier Search URLs (ns=1&ns=14&...)
powerSearchBox func

powerSearch func

I noticed the URLs output by the multiple select box title looked kinda ugly - so this one uses "ns" for the name instead of "ns[]" - then preg_match_all to suck the values out of the query string. --Tim Laqua 01:43, 30 July 2007 (UTC)


 * Argh...hate when there is an edit conflict--MediaWiki needs a way to stop that! Anyway, thanks; will try one of these. -Eep² 01:49, 30 July 2007 (UTC)