[00:00:05] what were you saying earlier about echoing the artist val in index.php? [00:00:06] i filled it in thought to and tried it thinking maybe it mattered for this and had the same effecgt [00:02:54] jfleener: have you tried $wgRequest->getText('artist') or $_POST['artist']; ? [00:03:39] oh. [00:03:42] i'm an idiot [00:04:08] yeah i tried that stuff... still no dice [00:04:17] jfleener: first of all, add the params in to your function: SearchArtist( $input, $args, $parser ) [00:04:32] then at the beginning of your function, do $parser->disableCache(); [00:05:29] you're expecting the page text to change on POST, right? [00:05:36] yeah [00:05:42] if you don't disable the cache, it will never be dynamic. [00:05:49] it'll always show you the cached page. [00:05:50] okay... let me try that [00:07:48] you have officially made my day! [00:07:53] that was the trick [00:08:09] now if only i could have the last 6 hours back :) [00:09:16] ;-) there's usually a couple extension devs sitting around in here. and the core devs pretty much live here, so.... [00:11:30] heh, cool... then i'll be back soon i am sure... thanks a ton... lata! [00:11:35] later [00:48:12] ello, I wish to setup wikimedia to work as private wiki. I.e, I want users to be required to register, but also have their account by an admin "flagged" as okay, so they can start viewing content on the site. Is this doable? (I.e, without registration or this administrator flag - they will get an access denied and be asked to login) [00:59:45] !prevacc | CraiZE [00:59:45] --mwbot-- CraiZE : http://www.mediawiki.org/wiki/Manual:Preventing_access [01:02:59] Hello. Can someone tell me how to make the sidebar font smaller than the default font? [01:08:54] 03yaron * r28814 10/trunk/extensions/SemanticForms/specials/ (9 files): Removed special initialization of special pages - no longer needed [01:10:14] 03siebrand * r28815 10/trunk/phase3/ (20 files in 2 dirs): Localisation updates for core messages from Betawiki (2007-12-24 01:40 CET) [01:11:08] yikes [01:11:40] ? [01:11:45] Steev43230, use CSS. [01:11:55] Yes but where?? [01:12:07] 03siebrand * r28816 10/trunk/extensions/ (14 files in 14 dirs): Localisation updates for extensions from Betawiki (2007-12-24 01:40 CET) [01:12:16] 03yaron * r28817 10/trunk/extensions/SemanticForms/includes/SF_Settings.php: Removed unnecessary $sfgSpecialPagesSpecialInit variable [01:14:17] 03yaron * r28818 10/trunk/extensions/SemanticForms/includes/ (SF_FormClasses.inc SF_FormPrinter.inc): SMW 1.0 now supports Boolean type [01:14:50] Steev43230, you can add custom CSS rules to the page MediaWiki:Common.css, or MediaWiki:Skinname.css (e.g., MediaWiki:Monobook.css). [01:15:20] Steev43230, these are pages on the wiki that you can edit like any other, although they're protected automatically. [01:16:55] OK - can you give me the code to add to Common.css? I've made my system font verdana 11 point and want the sidebar to be 9 or 10 point, or perhaps just 1 (or 2) pts less than the default. I can cut and paste but I don't know what do do to make this affect the sidebar only. [01:18:22] find out what the css class is on the sidebar [01:20:26] Sorry to be a dumd dora, but I don't know what that means. I paid DeVry $15,000 for degree in IT but never had a chance to use it so I need to bug people till I get booted up. Or out. [01:20:54] Steev43230, you could do #column-content { font-size: 10pt; } or similar. This will also affect a couple other things. [01:21:26] You can reverse those if you like via #p-cactions, #p-personal { font-size: 11pt; }. [01:24:46] 03yaron * r28819 10/trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php: Improved some variable names, fixed PHP notice bug [01:25:23] Can you point me to sample code somewhere? [01:26:38] there isn't [01:26:44] you have to dig them out of the page source [01:27:01] Source of what page? [01:27:10] any MediaWiki page [01:27:23] the view source feature in your internet browser [01:27:38] Nevermind [01:27:41] exit [01:43:16] 03brion * r28821 10/trunk/extensions/skins/Schulenburg/images/ (payment-first-line.gif payment-second-line.gif): +moneybookers logo [01:43:52] I gave him the rules he needed . . . [01:51:30] 03siebrand * r28822 10/trunk/phase3/languages/messages/MessagesIu.php: Adding fallback for iu [02:00:55] 03(mod) Support global (crosswiki) blocking - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=8707 15enhancement->minor; +comment (10spidermannequin) [02:03:47] 03(mod) Setting a temporary usergroup - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=10493 (10spidermannequin) [02:37:42] hi all, I'm seeing very high values for the mysql value Handler_read_rnd_next. Is this expected with mediawiki? [02:47:37] what do you mean by "very high" ? [03:52:22] I am trying to restrict editing by non-logged users and I am using "$wgGroupPermissions['*']['edit'] = false;" but it doesn't seem to work, although the creation of new pages requires reg users is working any ideas ? [03:53:02] latte: that should do it... are you sure it isn't working? [03:53:16] 07Skizz04erz yes, you want to check it out ? [03:53:25] eww where id the NC come :( [03:53:59] *Dantman|afk wonders why #mediawiki is missing the default mode +c [03:54:02] latte: uh, sure... put the LocalSettings.php code in a pastebin somewhere (remove any db info/passwords first) [03:54:05] Skizzerz: sorry for that nc :( [03:54:10] it's fine [03:54:14] dan: for the bugzilla/svn report bots [03:54:15] :) [03:54:20] aahhh [03:54:22] (probably) [03:54:31] sounds reasonable [03:54:52] ^_^ Wanna see a screenshot of a few of the things I'm working on? [03:55:27] Skizzerz: http://pastebin.ca/830658 [03:55:37] ermm I forgot to remove that * 4 heh [03:56:04] Skizzerz: thats the part I added recently [03:56:35] ok, are there any extensions declared after that bit? [03:56:51] nopes [03:57:26] Skizzerz: wanna have a look at my wiki url ? [03:57:28] and you're declaring that logged in users/autoconfirmed users can edit somewhere as well? [03:58:07] uh, if you want me to, then yeah [03:58:14] no I think :/ [03:58:44] latte: it's working [03:58:50] :o [03:58:57] but it shows 'edit' for me [03:59:14] yeah, that's fine [03:59:25] but when you CLICK on it, it doesn't let you edit, it gives an error messgae [03:59:35] ha, silly me hehe [03:59:38] thank you Skizzerz [03:59:41] np :) [03:59:53] this channel rocks :) [03:59:54] ^_^ Even though it has no relevance to the topic since it's not genericly usable... Since people are talking permissions: http://img144.imageshack.us/img144/1623/changepermissionssettinxz0.jpg [04:01:24] Dantman|afk: how does that work? did you move grouppermissions to a db table instead of php? [04:01:42] Nope... it actually a little out of the scope of the discussion [04:02:01] I'm working on a number of extensions and stuff for a Wiki Hosting Service [04:02:05] ok... [04:02:13] but still, how did you do it? [04:02:31] I've got a Extension Library called WikiAthenaeum [04:02:50] yeah... but I meant how are you able to control the permissions via a special page? [04:02:53] Part of that is the WikiScheme which lets me read/create special configuration files [04:03:00] ah [04:03:15] so it creates a php file containing the GroupPermissions declarations? [04:03:16] Those files are restricted to only variables which start with $swgWiki [04:03:52] And the global config uses those variables to determine how to set things [04:04:14] interesting [04:04:48] This one is permissions only since permissions are a little more complex than other data [04:05:42] *Skizzerz knows [04:05:57] having tried to code an extension like that and failing miserably :P [04:06:11] This one is [[Special:WikiConfig]] http://img301.imageshack.us/img301/4008/fireshotcapture4changewci8.png [04:07:41] Those pages are usable by people with either the 'owner' or 'sw-oper' flags. [04:08:11] ((A 'owner' is someone who owns the wiki, 'sw-oper' is one of our staff flags that a SSO will make global)) [04:09:00] This screenshot is a little old: http://img221.imageshack.us/img221/9348/createawikiwikeestarterhg0.jpg [04:09:23] It's still using the old service name (we had to find anotherone) [04:09:38] And it's missing the line saying that a config file was created [04:10:28] That ones is for 'sw-oper's only, but it's just a manual thing. I'm going to move most of the code into WikiAthenaeum and it'll use that [04:11:00] The real system we're going to have will basically be the requestor picking settings, a staff tweaking and communicating with the requestor, then hitting accept [04:11:27] speaking of which... do you have any "staff" in mind? ;) [04:12:14] The people from Wiki-Tools(Minus JaeSharp, ^_^ in other words just me) and the JackPhoenix.com group are the two merging to create the host. [04:12:30] Though, we're probably going to be looking for a third [04:12:42] *Skizzerz states that he's available to help :) [04:13:15] ^_^ If you got a co-located dedicated server you're willing to invest in the company, we'd be happy to make you the third group... lol [04:13:26] lol [04:13:42] That's primarily what we need... [04:13:45] *Skizzerz does have a server, but doubts it would fit the purpose... it's quite old [04:13:57] Meh... what we need is one for startup [04:14:40] Perhaps... [04:15:09] Before actual startup, we need something to throw up a 'coming soon' page. [04:15:36] Plus, I can't test a SSO locally [04:17:46] Skitzzerz: ^_^ This is one of the real interesting parts: http://wiki-tools.pastebin.com/d1069a9b0 [04:21:01] brion: http://www.neocreationism.com/ [04:21:13] jamasi: [04:21:18] I wonder how powerful their servers must be [04:23:00] jamasi: don't make me hunt you down... [04:24:25] *qsheets wonders what corporation/organization AaronSchulz could possibly be talking about [04:24:34] AaronSchulz, servers, plural? Fraction of a server, I would imagine. [04:24:43] qsheets, http://www.neocreationism.com/ [04:24:44] heh, yeah :D [04:24:56] Simetrical: very streamlined [04:25:00] we should be like that... [04:25:02] LOL [04:25:12] no slow PHP parser or anything [04:25:36] Or any nasty features, or content. [04:25:37] ...no databases [04:25:49] You should talk to domas, he loves that kind of idea. [04:26:03] and probably less than a kilobyte large [04:27:20] 176 bytes. [04:27:58] owned by some person in germany [04:28:47] Trier, DE to be exact [04:29:15] and goes by the name of Stefan Telega [04:29:47] *qsheets starts the hunt of jamasi [04:30:53] ...last updated on July 24th and expires April 3rd of next year [05:08:48] wtf is jamasi??? [05:18:49] 03(mod) Watching when editing does not work - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12395 (10brion) [05:21:15] 03(NEW) "what links here" should list the template, not the pages that use it - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12396 15enhancement; normal; MediaWiki: Special pages; (DanClemmensen) [05:22:05] hello [05:23:10] hello [05:23:57] can i get the wpStartTime except by requesting it in the hidden input in the action=edit ? [05:24:35] i get the wpEditToken from api.php and the wpEditTime from a javascript Date() [05:25:04] (i'm working on ajax) [05:26:01] but no idea how get wpStarttime (the timestamp of previous revision isn't it ?) [05:27:55] my goal is to not make a request on action=edit which seems too heavy to me [05:39:09] meithal: http://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Parameters_that_are_needed_to_save [05:39:26] Splarka : yes i'm coming from here [05:39:53] right, but you seemed to have it backwards... wpEdittime is the time of the last revision [05:40:19] (if one is to believe the data on a wikipage, heh) [05:41:53] api.php?action=query&prop=info&titles=' + wgPageName + '&intoken=edit should give all these tokens, shouldn't it ? [05:43:27] looks like touched="" is what you want for wpEdittime [05:43:35] and javascript Date() for wpStarttime [05:48:43] is there a good algorithm to transform the touched syntax to a proper one ? i tried this but i have some shift : http://pastebin.com/d3200a93d [05:49:55] and this one for Date() to proper one -> http://pastebin.com/d26133f20 [05:50:29] *Splarka hates JS dates [05:50:34] the last one works though, but these algorithms seems crappy to me [05:50:38] 2 :) [05:52:14] it was quite a pain for making the first one, i ripped the second from an other project, but it would be really great if mediawiki give the timestamps directly [05:53:20] who need the touched syntax from api like it currently is ? [05:54:06] i mean why it's not touched="20071224045047" ? [05:55:18] heh [06:00:37] correction : http://pastebin.com/d3200a93d works well to convert from touched="2007-12-22T00:26:40Z" to wpEdittime=wpEdittime", it's http://pastebin.com/d26133f20 which have a shift between wpStarttime and Date(). but i guess it's from the javascript which is loaded later than html [06:00:51] well [06:01:25] what do you mean by "very high" ? <-- just that it's more than zero really, but the actual number is 170k, compared to 130k for select [06:01:39] my ajax upload bug is not here then [06:01:49] rather, *compared to 130k selects in the same period [06:01:57] *checkers reposts the original question too: hi all, I'm seeing very high values for the mysql value Handler_read_rnd_next. Is this expected with mediawiki? [06:05:04] jamasi: awake? [06:06:28] 03(mod) Add section edit link for 0th section - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=156 (10voyagerfan5761) [06:40:09] just want to ask somethin about ldap and AD [06:40:24] !ldap | wookie [06:40:24] --mwbot-- wookie: http://www.mediawiki.org/wiki/Extension:LDAP_Authentication [06:40:39] i've been there and it didnt help me much tho [06:40:47] im on IIS [06:43:28] !ldap [06:43:28] --mwbot-- http://www.mediawiki.org/wiki/Extension:LDAP_Authentication [07:05:28] if i want update all the document after a ajax request, how can i make such syntax document.parentNode.appendChild(newdoc) work ? [07:05:42] document = newdoc also don't work.. [07:52:57] WHERE IS jamasi [07:53:00] ?????????????? [08:09:20] *TimLaqua shrugs [08:09:26] what do you need him/her for? [08:10:51] extension talk [08:11:15] and collaboration [08:11:28] mmm. any specific extension questions? [08:14:35] cron[7187]: (CRON) DEATH - best log message ever. [08:15:19] TimLaqua: not really [08:15:27] ok, best of my night. ;-) [08:15:32] lol [08:15:56] it's more like working together [08:16:10] showing improvements and such [08:16:16] ah, k [08:23:26] I've got a weird problem: I can add new articles without any problem. But when adding/searching for ONE SPECIFIC word (called "cohecho"), the wiki shows up with an 500 internal error. I have 3 wikis installed using the same DB. In all 3 wikis appears the same error with the same word. All other new articles work like a charm. Any clue? [09:47:02] re [09:50:41] mi [09:52:44] fa [09:53:43] so [10:05:40] 03(mod) Simple way of retrieving different language-version - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=2463 (10niklas.laxstrom) [10:09:26] la [10:10:00] tea [10:10:07] do [10:25:37] :) [10:28:05] *Nikerabbit hates mysql [10:29:59] *SQLDb hates Nikerabbit [10:30:51] how hard can it be to support utf-8 properly [10:31:21] hey, buddy, I don't see YOU handling thousands of queries a second! :P [10:36:19] yeah, I don't, I just install another database system [10:36:53] heh [10:37:28] i've already experienced some unicode problems with phpmyadmin but not with my [10:37:31] sql [10:38:14] however i have neglected alphabet order problems in mysql [10:39:28] and mysql's website is jsut horrible [10:39:37] *BrokenArrow nods [10:39:48] Nikerabbit: and... the docs are even BETTER! :) [10:41:20] hi @everbody [10:42:50] i updated my mediawiki installation just yesterday and something must have gone wrong [10:43:03] does anybody know where i can find help? [10:44:26] you can start here, describing the symptoms [10:44:49] I've got a weird problem: I can add new articles without any problem. But when adding/searching for ONE SPECIFIC word (called "cohecho"), the wiki shows up with an 500 internal error. I have 3 wikis installed using the same DB. In all 3 wikis appears the same error with the same word. All other new articles work like a charm. Any clue? [10:46:36] SQLDb: yeah, waiting for 6 [10:46:58] zelula: by the error details, can you track down the error to any of php, apache, mysql, mw? [10:48:06] BrokenArrow: nope, sorry. no detailed error message is given, just the 500 Internal Error... The server encountered an internal error or misconfiguration blabla [10:48:35] well, I upgraded to version 1.11.0 and everything worked pretty good, except articles containing pictures. whenever i try to access such an article I get an error 1054: Unknown column 'img_shar1' in 'field list' (:tmp/mysql.sock)"' [10:48:38] strange thing... all other articles are working 100%... only that single word is making troubles [10:49:13] I'm already using 1.11.0 for all 3 wikis [10:49:54] Alex_: there have been some schema changes in 1.11, you should have updated the db with the updater script [10:50:26] well i don't have full access to the server [10:50:34] I tried some solutions I've read in forum: with register_global, creating a empty php.ini, etc. nothing works :-/ [10:50:47] so i just ran the web installer again [10:50:58] can i somehow fix this manually? [10:51:51] Alex_: do you have access to the database through, say, phpmyadmin (or the mySWL command-line)? [10:52:27] yup, i got access to the database through phpMyAdmin [10:52:34] zelula: this is weird indeed. are you using the standard MW search (i.e., mySQL's?) [10:53:50] BrokenArrow: the strange thing is, I can search for the word. MW shows it up, but when clicking on it, the error 500 appears. When typing the word in the search box and clicking on OK, the error appears... [10:54:03] I dont get it.. [10:54:20] seems that MW somehow hates some words :-) [10:54:28] so you have a page with that name? is it accessible by writing the url directly? [10:54:28] zelula: what is the link to the search result? [10:54:46] sounds like it isn't related to search at all [10:55:18] Splarka: http://www.iustitia.com/wiki/en/index.php?search=cohecho&fulltext=Search [10:55:53] is there any way to resolve this bu editing the tables manually in MySQL (I have phpMyAdmin access *only*) [10:56:01] bu = by [10:56:18] no, I mean, the link to the result, not the search [10:56:18] *Splarka looks [10:56:24] Alex_: ok, so in the worst case you can alter the table manually. however, I'd use this as a last resort. Have you tried following the instructionsin UPGRADE about setting the AdminSettingsphp file before upgrading? [10:57:23] This should enable the updater script to work its magic [10:58:07] BrokenArrow: allright i did copy the AdminSettigsphp to the wikis root directory but didn't set it properly... [10:58:08] zelula: right, so the problem seems to be that you can't access that page: http://www.iustitia.com/wiki/en/index.php?title=Cohecho [10:58:15] i'll try that again [10:58:27] clicking [go] would go to that URL directly, rather than show an interm search page as [search] does [10:58:44] Splarka: right, I cant access to it, even when clicking on OK (search box) [10:59:13] Splarka: http://www.iustitia.com/wiki/en/index.php?title=Cohecho&action=edit works [10:59:38] interestingly http://www.iustitia.com/wiki/Cohecho http://www.iustitia.com/wiki/en/cohecho http://www.iustitia.com/cohecho all return 500, sounds like a rewrite prob or some sort of blacklist? [10:59:54] BrokenArrow: yes, edit works, but when pressing on SAVE... the error comes up [10:59:59] ahh [11:00:07] I dont get it... [11:00:11] zelula: your URLs can't end in 'echo' [11:00:16] all other words work perfect [11:00:26] uhm... [11:00:29] http://www.iustitia.com/wiki/en/index.php?title=Cohecho&foo [11:00:39] http://www.iustitia.com/echo [11:00:51] no idea why, but probably not related to mediawiki [11:01:33] hmmm... but then, how do ppl find the article? [11:01:46] well, you fix whatever weird configuration error is causing it ^_^ [11:01:46] and how can I save it? [11:01:52] check your .htaccess or other things [11:02:35] maybe ask in #apache [11:02:39] or call the page "cohecho etc." :) [11:03:10] thx m8s, I will keep trying [11:03:16] thx both of u [11:03:24] np [11:05:45] Anyone know how to add a user preference? [11:05:55] And, why do I have an underscore...? [11:05:59] toggle or something else? [11:06:13] oh another thing pls: any info available on how to change the output of Special:Allpages? (ex: by splitting A-B, C-D, etc.)? [11:06:16] (Anyone know which user preference could be removed?) [11:06:50] zelula: not possible without changing the code [11:07:03] Nikerabbit: eh? [11:07:39] minute: which comment? [11:08:16] Nikerabbit: so, when you have, lets say 10.000 articles stored, this will load a huge list... this could take a while to load, doesnt it? [11:08:31] zelula: no, it pages them [11:08:40] Nikerabbit: The bit about toggle... and ...removed [11:09:03] var $maxPerPage=960; [11:09:03] var $topLevelMax=50; [11:09:21] Hmm, I guess I'll RTFS. [11:10:13] Nikerabbit: in which file pls? [11:10:36] zelula: inclues/SpecialAllmessges.php [11:10:43] thx dude [11:10:53] minute: well, what do you want to add preference for? [11:11:04] Nikerabbit: 0th section edit button. [11:12:15] Nikerabbit: actually, includes/SpecialAllpages.php ;) [11:12:49] minute: easiest way, install Gadgets extension and add a simple .js with addPortletLink ^_^ [11:13:07] Splarka: I'm trying to bring a resolution to bug 15. [11:13:11] I mean, 156 [11:13:13] ahh [11:13:33] (gadgets is in preferences, so it is sorta good) [11:13:58] Splarka: hmm, is gadgets installed on the english Wikipedia? [11:14:03] yep [11:14:10] check your preferences there [11:14:20] *minute looks. [11:14:48] defined via http://en.wikipedia.org/wiki/MediaWiki:Gadgets-definition [11:14:51] I think this is good enough. [11:16:51] minute: :< [11:17:00] are you definitely sure it nees a preference? [11:18:05] Nikerabbit: Well, I personally think it shouldn't be implemented but there appears to be lots of opposition and Gadgets does this anyway. [11:18:19] Actually, stuff it. [11:18:26] I'm not risking my ass for this. :) [11:18:35] heh [11:19:06] Instead, I will tidy up my desk and room. :D [11:20:05] *minute ponders why he still has a sick bag on his desk. [11:21:51] 03nikerabbit * r28823 10/trunk/phase3/includes/ (SpecialAllpages.php SpecialPrefixindex.php): * Remove unused member variable and document the others [11:21:52] remnants of trying to read troll-l after binging? [11:22:03] hehe [11:45:14] :-/ [11:46:11] BrokenArrow: thx a lot it worked! my wiki is now up to date [11:46:33] Alex_: enjoy !! [11:46:34] are there any folders that need speciel rights? [11:46:44] :P [11:49:54] this is really realluy weird... in my MW 1.11.0 (clean installation) any article ending with "echo" generates the 500 error... pffffffff [11:50:54] must be x-mas... [11:51:36] zelula: sounds like a broken mod_security-type thing [11:52:30] twincest: but I didnt install any mod, extension or whatsoever... its just 3 clean wikis sharing the same DB (with different table prefixes) [11:54:27] zelula: anything else on those web servers or sibling servers? it really doesn't seem to be mediawiki related [11:55:13] Splarka sry m8, I'm not a server guru :-) [11:55:28] zelula: did you install and set up the web server? [11:55:43] twincest: nope, its reseller account [11:55:55] then how do you know the admin didn't install mod_security? [11:56:35] oh I see your point [11:56:48] so the mod_security has nothing to do with MW... [11:56:53] yes [11:56:58] except that it often stops MW working properly [11:57:05] sry, didnt know that, my bad [11:57:12] (at least if configured wrongly... i've never actually used it, so i don't know the details) [11:58:20] hmmm [11:58:24] zelula, ask in #apache [11:58:33] Hello. I'm using Mediawiki 1.11.0; I'm trying to create a template that will perform a calculation within #expr: . I have ParserFunctions installed. [11:58:37] archivist: ok, thx [11:59:08] This doesn't work: {{#expr:{{{1}}}*0.621371192}} [11:59:41] Can anyone tell me how to get ParserFunctions/expr to accept template parameters? [12:03:00] mumia-w-19: try {{{1|}}} instead of {{{1}}}? [12:03:11] okay, I'll try that... [12:05:02] VasilievVV: Yes, thank you very much. That works :-) [12:05:54] I really didn't think that will help :) But I guessed right :) [12:06:24] shouldn't have made a difference except on the template view itself, no? [12:06:46] Yes, and I guess I should just ignore the strange message that occur when I save the template. [12:06:50] Oh, [12:07:06] Yes, the template view seems to just create an error message. [12:07:24] but always good practice to have piped fallbacks in parser functions [12:07:26] can i delete AdminSettings.php after I'm done upgrading? [12:07:37] Alex_: yes [12:07:45] thx! [12:08:02] are there any directories that i have to give certain permissons? [12:09:03] Alex_: no, updater just touch database AFAIR [12:09:28] Thanks Vasiliev VV; thanks Splarkla . [12:12:07] VasilevVV: well I don't think that the wikis former admin cared about security and rights management... so i guess pretty much everthing is readable and writable for everyone [12:12:25] argh [12:12:38] why would you delete adminsettings? [12:12:42] *Nikerabbit explodes [12:14:42] do you guys have any favourite bugs I could fix? [12:14:57] twincest: because it contains root settings for MySQL? [12:15:10] then you're doing something wrong [12:15:20] create a user that only has privileges to execute DDL on the mediawiki database [12:16:33] Nikerabbit: e.g. you can add crosswiki blacklists to Extension:UsernameBlacklist [12:18:05] yeah php GOAL! [12:18:15] it displays documentation for me in polish or something [12:19:39] 03(mod) Support global (crosswiki) blocking - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=8707 (10wikipedia.kawaii.neko) [12:20:14] 03(mod) Support global (crosswiki) blocking - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=8707 (10wikipedia.kawaii.neko) [12:22:16] any opposition to adding trigger_error( __METHOD__ . ' is deprcated' ) to deprecated methods? [12:24:51] at least do a check for calls in the core code first [12:27:49] and if there doesn't seem to be any? [12:28:04] 03(NEW) Disabled variants conversion - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12397 04CRIT; highest; MediaWiki: Internationalization; (alefzet) [12:31:05] argh [12:31:35] Nikerabbit: sounds like a good idea. :) [12:31:57] Nikerabbit: You could fix 2257 :) [12:32:20] Aye [12:32:24] Nikerabbit: :) [12:33:45] bbl [12:34:26] 1211 is also a favorite [12:35:04] indeed [12:51:29] ola [12:51:46] sou do brazil [12:52:10] good morning [12:52:18] or good night [12:52:21] kkkkkkkkkk [12:53:34] damn it now i seriously screwed up [12:53:51] i tried to update a second wikimedia installation [12:54:38] but the config script doesn't start [12:54:49] instead it shows a blank page [12:54:52] :( [12:55:14] AdminSettigs Php is set [12:55:21] config 777 [12:55:33] and the old LocalSettings.php renamed [12:59:21] can i force the installer script to be started a second time? [13:04:24] while uploading i got some ftp warnings: 425 Unable to build data connection: Address already in use : /web/iplus/wiki/includes/tidy.conf is that why the script it not starting automatically? [13:06:08] everybody gone? [13:06:21] 03(NEW) Add new namespaces in Russian Wikinews - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12398 15enhancement; normal; Wikimedia: General/Unknown; (flrn) [13:07:41] Alex_, you have to find a fix for that FTP error before working on anything related to mediawiki. [13:08:12] greaaat... [13:08:18] 03(mod) Add new namespaces on Russian Wikinews - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12398 summary (10flrn) [13:08:44] does anybody now what the mistake actually means? [13:08:53] address in use??? [13:09:09] 03(mod) Add new namespaces in Russian Wikinews - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12398 -easy +shell; summary; +comment (10minuteelectron) [13:09:22] 03(mod) Add new namespaces to Russian Wikinews - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12398 summary (10minuteelectron) [13:17:05] 14(DUP) Disabled variants conversion - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12397 +comment (10niklas.laxstrom) [13:17:06] 03(mod) Interface "variant" overruling "language" preference [ bug in StubUserLang::_newObject()] - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=10837 (10niklas.laxstrom) [13:18:43] 03nikerabbit * r28824 10/trunk/phase3/ (RELEASE-NOTES includes/StubObject.php): * Reverting r28802 until I can figure what is going on [13:24:24] 03(mod) Interface "variant" overruling "language" preference [ bug in StubUserLang::_newObject()] - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=10837 normal->major; normal->high; +comment (10niklas.laxstrom) [13:25:36] I don't like this [13:26:25] I do not understand how that "fix" was tolerated in the first place... [13:29:07] well i'm to blame.. revert it completely if you find a better place for it.. [13:29:59] 03(mod) Add new namespaces to Russian Wikinews - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12398 (10flrn) [13:30:23] rainman-sr: I'm not blaming anyone [13:30:40] I just hope someone would fix it, because I'm not capable [13:30:54] well I'm blaming myself :) [13:33:51] 03nikerabbit * r28825 10/trunk/phase3/languages/classes/LanguageKk.php: * Fix notices, whitespace [13:36:15] hello! can I redefine styles like li.toclevel-2 (used by __TOC__) in a Wikipedia page? I need a __TOC__ of reduced size. [13:36:35] just in a one page? [13:36:50] yes, in some page, not in some skin. [13:37:00] ___TOC___ [13:37:13] or http://www.mediawiki.org/wiki/Extension:PageCSS [13:37:24] Platonides, did you really try it? [13:37:44] hi [13:38:02] are wikipedia using mysql proxy on their mysql servers? [13:39:03] Nikerabbit, how to mention " li.toclevel-2" in terms of PageCSS? [13:39:15] what is {{#time}} called? [13:39:30] function? [13:39:53] eg. {{#time:Y-M-D}} [13:39:53] soroush: http://meta.wikimedia.org/wiki/ParserFunctions#.23time: [13:40:15] str4nd, oops. [13:41:24] str4nd, so {{subst:#time shouldn't work, should it? [13:42:12] qq[IrcCity]: like normal, look at the examples [13:42:29] is this extention present in Wikipedia? [13:42:35] it worked in this example {{subst:#time:Y-F-j}} [13:42:35] no [13:42:45] wierd [13:42:53] soroush: why shouldn't it work? [13:42:58] soroush: it works... [13:43:23] i thought subst: was for templates [13:43:38] does it always work [13:43:40] ? [13:55:26] 06(LATER) Add new namespaces to Russian Wikinews - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12398 +comment (10minuteelectron) [13:56:05] 03(mod) Support global (crosswiki) blocking - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=8707 (10cbrown1023) [13:58:29] i have istalled secure HTML extension, extension works, but if i use the html code which is created by inputhtml an error comes Error: invalid hash [13:59:40] can anyone help? [14:03:08] {{#time doesn't work inside of [14:03:37] ? [14:06:55] 03(ASSIGNED) Wikimedia should migrate to new user rights assignment scheme - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=11645 +comment (10vasilvv) [14:07:45] soroush: No, it doesn't. [14:07:54] bug 1211 [14:09:47] why would you assign a bug to wikibugs? [14:10:59] twincest: accidantly checked wrong button [14:12:32] VasilievVV: Why would you keep makebot? [14:12:45] minute: to keep log entries [14:12:58] VasilievVV: But this thing should still generate log entries anyway...? [14:13:44] minerale: No AFAIK. It needs messages [14:14:20] Sorry, it's addresed to minute [14:14:30] uh, that's retarded then... [14:14:56] Emmm... [14:14:58] "Permitted file types: png,gif,jpg,jpeg." [14:19:23] VasilievVV: message key? [14:19:33] Nikerabbit: comma-seperator [14:20:09] no [14:20:27] includes/SpecialUpload.php: wfMsgWikiHtml( 'upload-permitted', implode( $wgFileExtensions, $delim ) ) . [14:21:31] VasilievVV: want to fix it? [14:21:59] wfmsgext parseinline would probably work [14:22:13] Nikerabbit: $delim = wfMsgExt( 'comma-seperator', bla-bla ); No ideas what's that [14:23:01] VasilievVV: that's correct, don't change that [14:23:30] Nikerabbit: ok, so I've no ideas [14:23:48] [16:21:58] Nikerabbit> wfmsgext parseinline would probably work [14:24:31] for the next three messages [14:24:50] and you could fix the parameter order for implode while you are there :o [14:26:12] hello all, I was wondering if I could get a little help with localization [14:26:35] sure, you can ask here of #mediawiki-i18n [14:26:39] or* [14:27:26] ok, I selected the Dutch language pack for my wiki when installing, everything works fine, but I can't figure out for the life of me what the correct sidebar edit page is [14:27:45] mediawiki:sidebar [14:27:51] 03(NEW) Expand $wgEnableScaryTranscluding to include all namespaces and make interwiki content identifiable in XHTML source - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12400 15enhancement; normal; MediaWiki: Templates; (voyagerfan5761) [14:28:07] when I edit that, nothing changes [14:28:46] Nikerabbit: wfMsgExt( 'upload-permitted', array( 'parseinline' ), implode( $wgFileExtensions, $delim ) ) didn't help [14:28:56] I've tried mediawiki:sidebar/nl too [14:29:26] Elbekko, there is a file in SVN that rebuilds message cache (VasilievVV wrote it so he can tell more about it) [14:30:11] VasilievVV: are you sure? [14:30:17] Elbekko: use maintenance/rebuildmessages.php [14:30:21] Nikerabbit: yes [14:30:26] the server the wiki is on doesn't have shell access tho, and it takes too long to make the modification locally and upload everything again [14:30:49] http://pokedream.com/wiki/index.php?title=Template:Infobox_Member [14:30:54] why doesnt this work [14:30:58] Elbekko: can you access database? [14:31:03] yes [14:31:09] somebody help me please? [14:31:17] darn [14:31:20] 03(NEW) Parse s and such from scary transcluded pages - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12401 15enhancement; normal; MediaWiki: Templates; (voyagerfan5761) [14:31:35] whose brilliant idea was for the parser not to accept  as a valid entity? [14:32:01] Elbekko: drop entry with name like "...:messages" from objectcache table [14:32:10] Nikerabbit, ? what do you need it for? [14:32:13] will try, thank you [14:32:15] for space [14:32:26] space is &#x20; or [14:32:28] VasilievVV: you could add 'replaceafter' to options for work-around, I think [14:32:38] enhydra: really? [14:33:02] darn [14:33:38] VasilievVV: maybe fixing comma-separator would help after all :) [14:33:43] Nikerabbit: what about using   instead of ? [14:33:59] Xatu: what doesn't work exactly? there seeems to be an unmatched pair of braces in {{{image_size}}}px|200px}} [14:34:01] VasilievVV: why would we want a non-breaking list? [14:34:24] Because parser even don't understand [14:34:52] works for me in normal pages [14:35:02] works with parser [14:35:33] works [14:36:46] both should work [14:44:35] i put {{infobox member [14:44:39] name = foo. [14:44:40] etc [14:44:46] VasilievVV: I tried that, deleted the entry from the table, but it still doesn't update the sidebar [14:44:53] up to the join date [14:45:03] and it starts displaying on the page aswell as the infobox [14:45:10] id show an example but [14:45:40] it works fine up to when i start putting join date = foo., when it displays inside the table but also in the article [14:46:23] :-/ [14:46:29] Does anybody know how to create a new namespace, so that it is listed under "Special:Allpages" in mediawiki 1.11 [14:46:53] Ireas: extra namespaces are specified in LocalSettings.php [14:47:16] $ExtraNamespaces[] [14:47:21] Ireas see: [14:47:29] !Configuration [14:47:29] --mwbot-- *All* configuration is done in LocalSettings.php (near the end of the file). Editing other files means modifying the software. Default settings are not in LocalSettings.php, you can *look* in DefaultSettings.php. See , , [14:47:46] !Namespaces [14:47:46] --mwbot-- For help with understanding and manipulating namespaces, please consult . See also !extranamespace [14:48:09] !ExtraNamespaces [14:48:09] --mwbot-- To add a namespace, modify your LocalSettings.php file, and add namespaces via $wgExtraNamespaces. A comprehensive set of instructions for adding a namespace can be found at . $wgExtraNamespaces can also be used to rename the default namespaces. [14:48:24] Ireas, see mwbot links [14:48:26] Xatu: as I said, I suspect you have an early closing of the template, see that open and closed {{}} are balanced [14:48:33] ok, thanks a lot! [14:48:46] np, Ireas [14:48:50] :) [14:52:33] i dont think the template closes - it displays in the infobox and as regular non-encrypted text aswell [15:00:45] plus, it works absolutely fine if you copy out the whole code and edit it to be what you want [15:00:50] its just when you use the template [15:00:56] it doesnt work [15:03:01] jamasi ??? [15:06:00] one more question ^^ [15:06:13] Why does this not work: [15:06:21] $wgExtraNamespaces = array(16 => "Galerie", 17 => "Galerie_Diskussion"); [15:06:28] $wgExtraNamespaces = array(18 => "Kurs", 19 => "Kurs_Diskussion"); [15:06:43] I placed it at the bottom of LocalSettings.php but just the last one works [15:07:27] Ireas: the second line is overwriting the first [15:07:50] Ireas you can't define the same variable twice [15:08:15] How can I fix it? [15:08:41] $wgExtraNamespaces = array(16 => "Galerie", 17 => "Galerie_Diskussion", 18 => "Kurs", 19 => "Kurs_Diskussion"); [15:08:47] O_o [15:09:03] thank you ^^ [15:09:11] no problem =) [15:09:12] I should clean my glasses ... [15:09:37] cu [15:14:23] ok now help me [15:14:37] ngiorno a tutti e buone feste [15:14:52] i should probably ask this somewhere else [15:14:59] 03(mod) Create Crimean Tatar Wikipedia (approved by subcommittee) - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12399 (10robin_1273) [15:15:56] hi everybody :D [15:16:10] hi Bara-Busy [15:17:05] is this an english-only channel ? [15:19:05] no [15:19:05] Bara-Busy, not in principle, AFAIK, but questions in english *are* more likely to get answered, simply because more developers speak it [15:21:21] oh, that's fine, my english is not so bad... thank you for your help :) [15:23:31] well, merry xmas to all of you guys... talk to you next time :D bye [15:30:46] 03(mod) Change name of Russian Wikinews - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=3D12402 (10flrn) [15:31:33] 03(NEW) Change name of Russian Wikinews - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12402 15enhancement; normal; Wikimedia: General/Unknown; (flrn) [15:49:17] re ^^ [15:49:56] If you define a new restricton level in the defeaultsettings.php vor example "steward", so that user must have "steward" permisson to edit the page... Can you also do something that just Stewards can protect pages at the restricion level steward and sysops just "sysop", "autoconfimred", ""; and Stewards "sysop", "autoconfirmed", "", "steward" [15:50:50] I'm not sure I understand.. [15:51:24] I want pages which can only be edited by Stewards [15:53:40] now I see. yes, I think it'll work [15:54:24] and how? ;-) [15:54:57] by experimenting a bit :-) your line of reasoning seems correct [15:57:25] i didn't know distinct protection levels existed [15:57:40] oh, i guess the page_restrictions thing does it sort of [15:58:13] Ireas: set $wgGroupPermissions['steward']['steward'] = true; [15:58:53] Then $wgRestrictionLevels[] = 'steward'; [15:59:04] The problem ist not getting the restricton level, the problem is that sysops could also protect a page with "steward" restriton level, and so they can unprotect it, too. The protection action for the restriction level steward should just be done by stewards [16:00:10] you could probably restrict *any* protection so steward level, would that work? [16:00:12] Ireas: they can't (un)protect it since MediaWiki 1.12alpha [16:00:14] *to [16:00:18] hey how can i make that a popup will open when someone launch my mediawiki? [16:00:36] that's all? (in the defeaultsettings.php?) [16:01:23] ? [16:01:35] vasilievVV: But I've got 1.11 :-/ [16:02:32] hey how can i make that a popup will open when someone launch my mediawiki? [16:04:53] via javascript in your MediaWiki:Common.js [16:05:31] where can i find this? [16:05:39] google it. [16:05:58] MediaWiki:Common.js is an article in your wiki. [16:18:10] ive got a problem ive istalled secure html [16:18:30] but i get these error: invalid hash [16:34:59] 03(mod) Interface "variant" overruling "language" preference [ bug in StubUserLang::_newObject()] - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=10837 (10niklas.laxstrom) [16:35:04] is it normal that the more you try to work with mediawiki, the stronger your urge to kill gets? [16:38:41] depends on what you're trying to work with ;) [17:04:36] 03(mod) Interface "variant" overruling "language" preference [ bug in StubUserLang::_newObject()] - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=10837 (10alefzet) [17:08:18] 03simetrical * r28826 10/trunk/phase3/includes/SpecialPrefixindex.php: Fix typo in comment. [17:11:53] Simetrical: I can't see the difference between: [17:11:57] - // Inherit $magPerPage [17:11:58] + // Inherit $maxPerPage [17:12:11] VasilievVV, look more closely. :) [17:12:28] OIC [17:12:33] *VasilievVV feels stupid [17:15:33] *qsheets is going north and will be back later if anyone wants to speak to him [17:21:58] *brion waves [17:43:34] 03(mod) Section preview should render according to the "cursors" directionality (LTR or RTL) at the start of the section definition - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=4866 (10gangleri) [17:46:45] . [17:49:53] 03brion * r28827 10/trunk/tools/planet/ru/config.ini: fix output config [18:12:18] 03vasilievvv * r28828 10/trunk/tools/planet/ru/ (config.ini templates/index.html.tmpl): Initial update. Added users from incubator. [18:25:24] 03vasilievvv * r28829 10/trunk/tools/planet/ru/templates/index.html.tmpl: Forgot to translate this [18:36:36] 03(mod) Add section edit link for 0th section - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=156 (10N/A) [18:54:46] 03(NEW) Gadgets on polish Wikipedia - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12403 15enhancement; normal; Wikimedia: Site requests; (adziura+wiki) [18:55:26] 03(mod) Add section edit link for 0th section - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=156 (10brion) [19:00:57] 14(INVALID) Gadgets on polish Wikipedia - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12403 +comment (10kalan.001) [19:21:38] 03(mod) Add section edit link for 0th section - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=156 (10voyagerfan5761) [19:31:02] 03vasilievvv * r28830 10/trunk/tools/planet/ru/www/planet.css: Pretty background for Christmas and New Yaer. [19:51:04] 03vasilievvv * r28831 10/trunk/tools/planet/ru/ (config.ini templates/index.html.tmpl): Fix locale and formatting, removed one user per request [20:19:37] 03vasilievvv * r28832 10/trunk/tools/planet/ru/config.ini: Fix date&time because of problems with encoding [20:26:22] 03(NEW) Method to avoid namespace conflicts - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12404 15enhancement; normal; MediaWiki: General/Unknown; (rememberthedot) [20:27:52] *MZMcBride wonders if that bug has _any_ chance of being resolved as anything other than WONTFIX [20:28:04] unlikely [20:30:50] is applying a new design to mediawiki a fool's errand, or something quite easily accomplished? any advice? [20:30:51] s/unlikely/very unlikely [20:31:29] bakert: Very simple if you know what you are doing - I have done it myself ;) but you need to know what each bit does and have at least a bit of competence with PHP. [20:31:42] i code php for a living so that's fine [20:31:56] hehe [20:31:58] :) [20:32:09] i was thinking of following these instructions to start: "Copy the monobook.php file and the monobook folder. Rename the monobook.php file to skinname.php (replace skinname with the name of your skin) and rename the folder to skinname." [20:32:11] Basically just copy MonoBook.php and hack it up. [20:32:15] cool [20:32:20] i begin ... :) [20:32:32] bakert: I warn you, the code in that file is in pretty bad shpae. :) [20:32:48] yes, that's what i feared :) oh well i will try and figure it out ... [20:35:40] 03(NEW) Move PngFix code to IEFixes.js - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12405 15enhancement; normal; MediaWiki: Images; (rememberthedot) [20:39:11] bad shape? pfft. [20:39:20] it's beautiful. ;-) [20:39:59] 03(mod) indirect sort key alterations - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12332 (10gangleri) [20:44:15] hi Splarka :) [20:44:32] rar [20:45:14] gzip! [20:45:24] 7z] [20:45:27] *7z [20:55:09] ok, i am stoopid. i've made my copy of MonoBook. changed $wgDefaultSkin in LocalSettings.php. but MonoBook is still the skin. how do i change the skin of the whole site? [20:55:15] (to my new one) [20:56:13] bakert: are you logged in? [20:56:23] aha [20:56:24] yes [20:56:32] i have a personal skin overriding or something? [20:56:33] preferences => skin [20:56:36] yeah [20:56:48] cool thanks [20:57:09] magic [20:57:31] :p [21:02:56] 03(NEW) Create Crimean Tatar Wikipedia (approved by subcommittee) - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12399 15enhancement; normal; Wikimedia: Site requests; (jhsoby) [21:03:39] 03(mod) Method to avoid namespace conflicts - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12404 +comment (10erwin) [21:04:20] 03(mod) Logs about watched pages should appear in the watchlist and recentchanges - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=5546 summary; +comment (10gangleri) [21:05:31] 03(mod) Interface "variant" overruling "language" preference [ bug in StubUserLang::_newObject()] - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=10837 (10alefzet) [21:13:26] 14(WFM) rollback doesn't roll back category sort key - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=3622 +comment (10cbass) [21:24:58] 03(mod) Interface "variant" overruling "language" preference [ bug in StubUserLang::_newObject()] - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=10837 (10alefzet) [21:32:30] 14(WFM) indirect sort key alterations - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12332 +comment (10gangleri) [21:35:43] hmm [21:36:31] not sure if anyone noticed now it looks like wgPageName (et al) have been addslashes()ed (or not stripslashes()ed) [21:36:53] didn't know if that was intentional or not [21:37:20] (i.e., when the page is rendered and the variables are sent for javascript) [21:39:29] 03(mod) New:=?UTF-8?Q?=20BiDi=20error=20at=20=C2=AB=20spe?= =?UTF-8?Q?cial?=:=?UTF-8?Q?Whatlinkshere=20=C2=BB?= - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12406 (10N/A) [21:39:31] 03(mod) RTL/bidirectional issues (tracking) - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=745 (10gangleri) [21:49:50] slakr do you mean as in does "Page_name" rather then "Page name"? [21:50:48] or show "Page_name/"? [22:00:05] darkcode > actually I think it's adding "\" to "Jack's page" to make "Jack\'s page" [22:00:36] but I could be totally on crack if that's intended behavior, because I've been kind of out of it the past week on vacation :P [22:00:47] 03(NEW) MediaWiki:Comma-separator should be (or ) instead of  - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12407 minor; normal; MediaWiki: Internationalization; (lejonel) [22:00:50] *slakr just doesn't remember seeing that [22:01:58] ok [22:04:29] guess its just to be safe, it really only needs to do it for " though rather then ' [22:05:41] if it hasn't always been there then it was broken before ^_^ [22:09:21] /includes/Xml.php -> $s .= '"' . self::escapeJsString( $name ) . '": ' . [22:11:47] been there at least since http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Xml.php?r1=18220&r2=18219&pathrev=18220 afaikt [22:12:26] well, before that, since in the same revision it was removed from skin.php and moved there [22:12:41] http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Skin.php?r1=18220&r2=18219&pathrev=18220 [22:12:48] var wgPageName = "' . Xml::escapeJsString( $data['titleprefixeddbkey'] ) . '"; [22:13:49] where: [22:13:49] "\"" => "\\\"", [22:13:49] '\'' => '\\\'', [22:15:40] slakr: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Skin.php?r1=15827&r2=15871&pathrev=18220 [22:16:08] looks like they've been escaped since the first instance [22:16:16] weird [22:16:29] *slakr can't figure out why his pagebar.php suddenly stopped working in the last week [22:17:56] oh n/m [22:18:43] sorry... I'm totally out of it today. [22:18:55] *slakr goes back to hitting the crack pipe :P [22:18:58] ;) [22:41:27] hey [22:42:00] i'm looking for an extension which adds a small button to each article which downloads the wiki source text [22:42:04] does anyone know of one? [22:43:59] could do it in javascript [22:44:54] yeah, problem is i'm not too familiar with javascript and certainly not with integrating it with mediawiki [22:45:04] i don't suppose anyone here would be kind enough to do it for me? [22:45:29] skorpan, you can just append ?action=raw or &action=raw to the end of the URL. [22:46:04] whoa, that's cool [22:46:13] however, i need to add a file extension to each one of the files [22:46:36] skorpan, what do you mean? Add a file extension to the default file name? [22:46:46] addOnloadHook(function() { addPortletLink('p-cactions',wgServer + wgScript + '?title=' + encodeURIComponent(wgPageName) + '&action=raw','Download source','ca-source','Download the source of this page'); }); [22:47:01] no, when i use action=raw, firefox tries to download the file with the name the same as the article (no file extension) [22:47:21] ahh [22:49:49] *Splarka has idea [22:50:13] 'curid=' overrides the article path... so... using wgArticleId ... [22:50:25] skorpan, well, yes. You can save it as whatever you want. I'm not sure if there's any way to specify the file extension . . . [22:50:53] Sim: there is, heh... [22:51:01] but it is a dirty hack, testing it to make sure [22:52:35] what file extension do you want, skorpan ? [22:52:49] .srt [22:53:06] *Splarka tests [22:53:20] addOnloadHook(function() { addPortletLink('p-cactions',wgServer + wgArticlePath.replace(/\$1/,wgPageName) + '.srt?action=raw&curid=' + wgArticleId ,'Download source','ca-source','Download the source of this page'); }); [22:54:07] i have no idea what to do with that function [22:54:08] that makes Mozilla/FF think the name of the file is the last URI component after the last slash, before the first query parameter (?) [22:54:09] o_O [22:54:20] but it makes mediawiki think the requested file is the curid [22:54:37] skorpan: put that in the site-wide JS [22:54:38] Hahaha. [22:54:39] what version of mw? [22:54:45] "the latest" [22:54:47] It will only work for pretty URLs, though. [22:54:48] installed it today [22:54:50] okay, Common.js [22:54:58] sim: damnm true [22:55:03] works on Wikipedia anyhow ^_^ [22:55:12] skorpan, from where, mediawiki.org? Various redistributors have . . . interesting ideas about what the "latest" version is. [22:55:16] skorpan: before you do, view a page source... [22:55:23] var wgArticlePath = "/wiki/$1"; [22:55:27] and tell me what your wgArticlePath is [22:55:33] Simetrical: arch linux repositories [22:55:40] skorpan, I'm betting it's outdated. [22:55:54] skorpan, we release a new version quarterly and aren't terribly important, most repos don't keep up. [22:55:56] uhh what Splarka ? [22:56:29] anyways i'm using 1.11.0-1 [22:56:36] That's good, then. [22:56:37] skorpan: in every page source of a mediawiki install (in versions released in the last year or so) has a set of JS globals at the top for easy scripting [22:56:45] in a