[00:08:08] 03(NEW) limit=40 on RC gives default in preferences, not 50 - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14659 normal; normal; MediaWiki: Page rendering; (RLUllmann) [00:10:20] 03(mod) limit=50 on RC gives default in preferences, not 50 - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14659 summary (10RLUllmann) [00:19:21] 03(mod) Using Microformats for Categories - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14656 +accessibility; +comment (10danny.b) [00:19:26] 03(mod) Use semantic XHTML (tracking) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=10467 (10danny.b) [00:39:06] 03(mod) limit=50 on RC gives default in preferences, not 50 - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14659 (10herd) [00:49:55] Is there someway to have namespace specific template [00:53:23] what do you mean by "namespace specific template"? [00:54:43] 03shinjiman * r36690 10/trunk/phase3/languages/messages/MessagesZh.php: Localisation updates Chinese [00:54:43] something that would be like namespace:Template:newpage [00:54:58] a template that belongs within a namespace [00:55:30] ok, ya you can have templates inside other namespaces besides the Template namespace [00:55:46] you mean [00:55:59] so calling {{foo}} in main namespace behaves differently than {{foo}} in user namespace? [00:56:05] does that work like namespace:Template:newpage [00:56:09] just use {{namespace:page}} [00:56:11] no [00:56:16] do i have to create custom namespace [00:56:28] no... but you can do it with parserfunctions [00:56:55] but it would be a bit of messy wikicode for each such template you wanted to do that for [00:57:07] is there a page were I can find out about how to use a parser function [00:57:25] well, lets examine what you want first [00:57:37] easiest would be to make a separate template for each such need [00:57:40] templates are in the Template namespace typically [00:57:52] so if you wanted {{foo}} for articles and {{user foo}} for user pages that'd be easy [00:58:04] eg, just name them different [00:58:06] {{foo}} refers to Template:Foo [00:58:16] if you wanted {{foo}} to always call a specific page or show specific content, that is a little harder [00:58:21] it could be done, for example with.. [00:58:52] {{#switch:{{NAMESPACE}}|=Main namespace content|Talk=Talk namespace content|User=User namespace content ... .etc [00:59:06] you'd then have every version of that template at Template:Foo [00:59:27] you could subpage that, like... [01:00:04] {{#ifexist:Template:Foo/ns-{{NAMESPACE}}|{{Template:Foo/ns-{{NAMESPACE}}}}|Template:Foo/default}} [01:00:37] that would call {{foo/ns-}} for main, {{foo/ns-User}} for User, {{foo/ns-User talk}} for user talk, etc, only if they existed though [01:00:40] by subpage you mean add it to exiting page [01:00:49] no, as a page named with a slash [01:01:12] [[Template:Foo]], [[Template:Foo/bar]], are separate pages, but the latter is treated as a subpage of the former [01:01:14] however [01:01:20] you could also do it in the syntax you suggested above [01:01:34] {{foo}} could for example, check if Namespace:Template:Foo existed: [01:01:43] is there someone I could have mediawiki add it to an existing wikipage as a substitution like a frame [01:02:20] {{#ifexist:{{NAMESPACE}}:Template:Foo|{{{{NAMESPACE}}:Template:Foo}}|{{Template:Foo/default}}}} [01:02:48] are you suddenly asking another question in the middle of your previous question? ^_^ [01:03:20] kind of the same jus tdifferent implementation i think [01:04:04] not sure if Splarka or I understand the first part of your question yet [01:04:12] indeed [01:04:19] so my resonse is to confuse them back! [01:04:37] if you want templates to behave differently in every Mediawiki namespace, the easiest method is #switch [01:04:45] i think if i could substitute I could just place them all in Template: and the files effectively be in the namespace I want by substituting into that page [01:04:55] you can then make part or all of the template content different for different namespaces [01:04:56] a template that belongs within a namespace <--- templates already reside in a namespace, the Template namespace [01:04:56] oh [01:05:15] well, lets look at template syntax [01:05:32] {{foo}}, if foo is not a magic word or parser function, is then treated as a transclusion [01:05:39] Hi all! May someone help me to install a language pack in mediawiki? [01:05:51] this means, it checks for {{Template:Foo}} and tries to copy it, if it doesn't find it it provides an edit link to create it [01:05:58] the switch checks which namespace its in [01:06:22] mhack: all languages are installed by default [01:06:22] you can transclude from non-Template namespace by specifiying it, like {{:Main Page}}, {{User:Foo}}, etc [01:06:23] you can use {{foo}} on any page you want the contents of Template:Foo to appear on [01:06:48] so, you could transclude User:Template:Foo with {{User:Template:Foo}}, but that is a bit bulky [01:06:49] you have to do nothing to enable them [01:07:24] so i would do {{User:Foo}} ?? [01:07:37] that would transclude the userpage of User named foo [01:07:45] if you wanted to include the contents of User:Foo on some wiki page yes [01:07:53] Template: is only assumed where *no* namespace is specified, eg {{foo}} [01:08:01] oh [01:08:02] FunPika: I tried to change "$wgLanguageCode" to "Pt_br" but nothing was translated except the name of the main page to "Página Inicial" (the same thing in Portuguese" [01:08:18] I suggest creating just Template:Foo and using #switch for your needs [01:08:24] http://meta.wikimedia.org/wiki/Help:ParserFunctions <-- but #switch requires this extension [01:08:27] well you still don't have to download anything [01:08:38] FunPika: The names link names (edit, discuss and etc) wasn't translated [01:08:39] we don't know what john2's needs are [01:08:57] you can translate those with the appropriate pages in the mediawiki: namespace [01:09:06] right [01:09:11] or better yet, help with the localization on betawiki [01:09:17] *FunPika forgets the link [01:09:29] john2: what exactly do you want different about {{foo}} in User: namespace compared to say, Image: namespace? [01:09:50] or is that even what you want [01:11:08] FunPika: Sorry but I didn't understand what you mean with "appropriate pages in the mediawiki: namespace" [01:11:11] are you trying to say for instance "hey this was used in the wrong namespace!" when added to a User page instead of a Image page, or something else? [01:11:39] mhack MediaWiki:Message/pt_br presumably [01:12:22] its like if I had a house category that I wanted to have a template were people could fill in based on color height and a different category like Vehicle were I wanted to describe different characteristics in a different template like amount of wheels [01:12:26] mhack, what version of MediaWiki are you running? [01:12:42] FunPika: There is a Brazilian Portuguese wikipedia version, and there everything is in Portuguese. Isn't there a Portuguese version of Mediawiki? The guys of Wikipedia translated everything? [01:12:52] im not sure how to implement that [01:13:10] once again...what version are you running? :| [01:13:12] i thought i could have House namespace and Vehicle Namespace and have them act differently [01:13:22] FunPika: 1.11.0 [01:13:33] john: perhaps you misunderstand the use of namespaces in MediaWiki a bit [01:13:41] oh [01:13:52] namespaces define behavior of pages more than they delimit types of content [01:13:53] O_o [01:14:25] for example, Image: namespaces are associated with uploaded files, and link syntax shows files instead of links: [[Image:Foo.jpg]] [01:14:45] that is strange... [01:14:50] User: namespace is very similar to main namespace, except some subpages are protected from non-user editing, such as User:Foo/script.js [01:15:08] Category: namespace indicates categorization when linking, and has other special properties [01:15:17] I would say that is true of the default namespaces, but custom namespaces tend to be used to differentiated types of content [01:15:22] Template: namespace as above, is assumed in transclusion [01:15:28] sure, they do [01:15:29] even though you really should upgrade to 1.12.0, the language file in the tag for 1.11.0 looks like it has plenty of translations [01:15:40] but they should be treated as delimiters of types of content, not categories of content [01:15:56] oh [01:15:57] IMHO ^_^ [01:16:27] for example, without specifying it, you can't usually search all custom namespaces at once, or have them count as "Articles" in statistics [01:16:45] you should be using the Category namespace to differentiate categories of content [01:16:48] it is best to keep all non-user and non-meta content in the "Main" namepace [01:17:14] although this is subject to differing opinions ^_^ [01:17:26] like Category:Houses and Category:Vehicles [01:17:28] for example, some gaming wikis like to have a few extra namespaces... [01:17:29] I am also unclear as to the use of a template, I imagine like a template to build a new page or reusable wiki code but it seems to be more like copy and paste [01:17:45] well, a bit of both [01:17:56] the two main uses of templates are boilerplates and infoboxes [01:18:25] a boilerplate is something like {{Delete}} which usually is written to put a message at the top indicating the page is being voted on for deletion, as well as categorizing it as such [01:18:30] yes they can be used to build new pages and to provide reusable wiki code [01:18:34] an infobox is something like... [01:18:47] {{infobox house|type=victorian|age=1857|owner=For sale|}} etc [01:19:04] which makes a preconstructed table (usually floating) with the information filled out from parameters [01:19:25] to use them to build new pages you would want to use {{subst:template-name|anything you want to pass to the template}} [01:19:28] FunPika: Ok, thank you! [01:19:30] usually it does not contain all of a page's content, but sometimes it does [01:19:37] well [01:19:47] for a template for a new page, a &preload template is often useful too [01:19:55] ya [01:20:04] depends on your needs [01:20:25] you can use the infobox extension and say... [01:20:35] [ ] create new page about a house [01:21:13] and it will then take you to the edit page of that specified title, and preload a specified template page's contents to it [01:21:15] ya [01:21:57] how would i take input for the [ ]? [01:22:19] http://www.mediawiki.org/wiki/Extension:Inputbox [01:22:30] *Splarka wonders why he thought it was called infobox [01:22:58] iputbox creates simple forms, using elements [01:22:59] because you were talking about infoboxes before... [01:23:32] yah yah [01:23:36] half track mind [01:25:44] type=create preload=Template.House Is that how I would use it? [01:26:05] oops i meant : [01:26:44] pretty much, yep [01:27:08] you'd put that on your main page, or possibly a page about creating house-related articles [01:27:17] you'd populate it with an outline and some [[Category]] tags [01:29:15] thanks I get how the implementation works [01:29:18] now [01:30:09] np [01:35:37] Im using LdapAuthentication with media wiki. I have it working with active directory. Now I would like to make it so no one can see any of the pages or edit them without a valid login. [01:42:43] Any idea's ? [01:50:14] simprix: http://www.mediawiki.org/wiki/Manual:Preventing_access [01:50:56] if the ldap authentication assigns them to the user group 'user' (aka, logs them in), it should be simple [01:52:07] $wgGroupPermissions['*']['read'] = false; as well as edit, createaccount, etc [01:52:39] !secrets simprix [01:52:39] --mwbot-- MediaWiki was not designed with read-restrictions in mind, and may not provide air-tight protection against unauthorized access. We will not be held responsible should private information, such as a password or bank details, be leaked, leading to loss of funds or one's job. [01:52:44] !secrets | simprix [01:52:44] --mwbot-- simprix: MediaWiki was not designed with read-restrictions in mind, and may not provide air-tight protection against unauthorized access. We will not be held responsible should private information, such as a password or bank details, be leaked, leading to loss of funds or one's job. [01:52:50] thats what I meant :P [01:53:24] Alex: that is mostly for people who want to read-protect a namespace or a few pages [01:53:38] even the Wikimedia Foundation trusts full read restriction [01:55:40] eg: http://board.wikimedia.org/wiki/Main_Page [02:29:02] http://tinyurl.com/2t93ch [02:29:50] ops, you might want to kickban that guy. :) [02:29:56] http://tinyurl.com/2t93ch [02:33:38] http://tinyurl.com/2t93ch [02:36:15] lol. did you actually click the link krimpet? [02:36:38] Splarka: you may also want to ban *!*@76.119.225.230 to prevent them from using other hosts on the same IP [02:36:45] http://tinyurl.com/preview.php?num=2t93ch [02:36:51] a 4chan swf [02:36:53] ds5: no, but he's been spamming every wikimedia channel in turn. people in #wikipedia told me to ban him there. ;) [02:37:05] oy, is there any way (extension) of displaying an Excel file in MediaWiki?.. [02:37:31] Alexfusco5: if they come back [02:37:38] damn, if only I was here 5 mins sooner, I could've used /hammer [02:37:48] ... [02:38:16] /hammer = /remove ? [02:38:18] Sadr: the closest I can find is a VBA macro for converting excel to wikitext :/ [02:38:22] http://de.wikipedia.org/wiki/Wikipedia:Helferlein/VBA-Macro_for_EXCEL_tableconversion [02:38:39] Alexfusco5: ops, optionally bans after doing a few changes to the hostmask, removes, then deops [02:38:49] /hammer = penis extension for insecure ops [02:38:55] >_< [02:39:06] Splarka: it took me half an hour to code that script [02:39:10] heh [02:39:27] Any /backstab? [02:39:33] no :P [02:39:43] Multiple in one shot? [02:39:47] I could probably code it if I knew what it did [02:40:01] don't turn this channel in your target practice playground kthx [02:40:18] It's basically the same as /hammer... Except it targets users who have parted/quit [02:40:19] Splarka: I use my own channel for that [02:40:35] Good for the part/join spammers [02:40:43] hmm... good idea [02:40:45] Skizzerz: where can I get the /hammer script [02:40:53] no, you're using this channel for that [02:40:54] Alexfusco5: what client do you use? [02:40:57] by having this conversation here [02:41:08] Skizzerz: chatzilla [02:41:41] Splarka: we're merely talking about it... it's not like I'm just going to randomly use it unless someone actually is deserving of it [02:42:07] sure, but in this way, the URL is still spamming the channel, do not feed the dead trolls ^_^ [02:42:14] ^URL troll [02:42:34] ... k. [02:42:54] *Splarka gives it a respectable burial, and invoices the family [03:17:36] Is there someway I can allow users to protect page but not unprotect? [03:18:38] probably $wgGroupPermissions['user']['protect'] = true; $wgGroupPermissions['user']['unprotect'] = false; [03:19:09] user refers to just to default user ?Idont have to create new group? [03:19:35] well, you do if you don't want *all* users to be able to [03:20:00] yes, great that should work [03:20:14] see http://www.mediawiki.org/wiki/Help:User_rights [03:20:20] I add that to Localsettings.php [03:20:52] *Splarka doesn't think there is an 'unprotect' right actually...mm [03:22:17] im going to test it out [03:22:48] no, 'unprotect' is not a right [03:22:51] nope, just 'protect' [03:23:01] heh [03:23:07] *Splarka jinxes Skizzerz [03:23:12] :o [03:24:11] yup didnt work it allowed everyone to protect/unprotect [03:24:26] guess somebody should add it, to compliment undelete [03:25:50] mm... [03:26:39] darkcode: file a bug? [03:27:11] most of the extensions for page protection are designed for protecting read access, protecting certain sections, or adding more levels of protection, none seem to deal with splitting the ability to protectg and unprotect [03:27:19] right now, the ability to unprotect is dependant on two things: 1) having the 'protect' right, and 2) being able to edit the page you're trying to unprotect [03:27:22] -g [03:27:53] Skizzerz: or if they're a 'sysop' [03:27:57] 03(mod) AntiSpoof should return more than one result - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12232 +comment (10sxwiki) [03:27:59] which is hard coded, why is that hard coded! [03:28:06] it isn't hard-coded IIRC [03:28:30] either that or I did a complete hack when writing the AuthorProtect extension [03:28:34] if( $val == 'sysop' ) { [03:28:48] mmm... [03:28:54] yeah, I did a hack [03:29:45] *Splarka stabs skizzers for fun ^_^ [03:29:51] that should really be fixed... [03:30:21] *darkcode sticks a sticky note on Skizzerz's forehead with the bug on it [03:30:57] it's 10:30pm where I live, I'm not about to tackle a core bug. I'm not Tim Starling who bugfixes at midnight :P [03:31:53] that's what time it is here too [03:36:14] i just wanted to do it to minimize protecting it myself [03:38:19] well, surely you can find some people to trust into giving them both protection and unprotection [03:39:21] i could spread work that way too [03:39:25] out of curiosity is there a user rating system implemented as an extension based on edits [03:46:54] 03(mod) remove apostrophe \' from $linkTrail (introduced in r36253) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14655 (10dan_the_man) [04:58:09] 03(NEW) Request for AntiSpoof to be Database Agnostic - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14660 15enhancement; normal; MediaWiki extensions: AntiSpoof; (overlordq) [05:05:39] Hey guys, I hope this doesn't sound crazy, but... user goes to en.foo/wiki and apache rewrites that to a balancer and directs to an internal server with the path /wiki/en, however with $wgScriptPath set to '/w' and $wgArticlePath set to '/wiki/$1' I get a recursive loop (yay), if I append a /en/ to the end of both (so /w/en and /wiki/en/$1) the content loads, but the page is broken because it tells the browser to access en.foo/wiki/en/... [05:06:04] any thoughts? [05:12:01] My head is spinning [05:12:13] Talking about recursive loops... [05:17:09] Recursion (n.): see Recursion. [05:17:37] toweri: exactly, and it's driving me nuts :) [05:38:57] I saw a wiki earlier about having a really simple sitemap for google, I can't find it again, and the information I used from it failed through google webmaster tools. Anyone have an idea? [05:50:49] this is nuts, user requests /wiki/.., apache requests (via load balancing) /wiki/en/.. on the wiki server, mediawiki decides that isn't right because /wiki/en/ $wgArticlePath is '/wiki/$1' so it tells the users browser to request /wiki/.. it does it and it goes an on infinate loop [05:51:42] if I set $wgArticlePath to /wiki/en/$1 then it's fine, unless you want the layout to render properly (all other links a made as /wiki/en/.... instead of /wiki/... [05:52:35] the layout? you mean the stylepath fails? [05:53:07] (note that the css/js is mostly loaded from a 3rd folder, not articlepath or scriptpath) [05:54:22] for example, "/skins/monobook/main.css" for the default path of the default skin's layout, and "/skins/common/wikibits.js" for the main js [05:55:26] Splarka: err $wgScriptPath/skins... normally I believe [05:56:30] and yeah, it just adds an extra /en/ to everything, basically, what I want to tell mediawiki is "link as /wiki/ and /w/ but expect the pages to arrive at you as /w/en/ and /w/en/" [05:57:42] well, regardless (or irregardless if you consider that a word, heh) [05:57:57] is the "layout" problem that you are getting nothing loaded from your /skins folder? [05:58:27] correct, and I just noticed that can be corrected by setting $stylepath directly [05:58:35] heh [05:58:38] well, there you go [05:58:44] but it still means I have bad links [05:59:05] what exactly does Mediawiki:sitetitle do? [05:59:05] because the external URL is different from the internal URL [05:59:22] hcec: sets the title in cologneblue skin IIRC [05:59:47] Splarka: oh, ok. There's nothing similar for the Monobook theme? [05:59:48] G: well, *that* is annoy [06:00:01] hcec: well, there is no similar title in Monobook [06:00:35] perhaps you mean MediaWiki:Pagetitle which sets the attribute contents, in all skins including cologneblue [06:00:45] <Splarka> Sitetitle sets the thing in blue at the top of the page: http://en.wikipedia.org/wiki/Foo?useskin=cologneblue [06:01:53] <G> Splarka: exactly, and I can't see the solution [06:02:12] <Krimpet> Splarka: doesn't it set the blurb _below_ the title? [06:02:17] <Splarka> <a href="/wiki/Main_Page"><span id="sitetitle">Wikipedia</span></a> it serves the same function as the logo in other skins, and those have no need for a translated text content (the alt attribute is the link) [06:02:34] <Krimpet> nm, I'm wrong. :) [06:02:43] <Splarka> that is Tagline [06:02:57] <Krimpet> hmm, it's capitalized though, unlike the tagline in other skins [06:03:08] <Splarka> I mean MediaWiki:Tagline [06:03:21] <Splarka> first letter is case-insensitive [06:03:31] <Splarka> http://en.wikipedia.org/wiki/MediaWiki:Tagline and http://en.wikipedia.org/wiki/MediaWiki:tagline both work ^_^ [06:03:45] <Splarka> (unless you're on wiktionary I suppose) [06:04:48] <Krimpet> what I mean is, in cologneblue it's "The Free Encyclopedia" rather than "From Wikipedia, the free encyclopedia" :) [06:05:44] <Splarka> well, that is because it is a different message, I'd imagine [06:06:00] <Splarka> http://en.wikipedia.org/wiki/MediaWiki:Sitesubtitle [06:06:57] <Krimpet> ah [06:07:46] <Splarka> lets review ^_^ [06:08:09] <Splarka> in cologne blue, <title> is MediaWiki:Pagetitle, the thing where the logo would be is Sitetitle, and the text under it is Sitesubtitle [06:08:50] <Splarka> in template skins, the <title> is also Pagetitle, there is no big bold text naming the site in the body, and the text under the page title is Tagline [06:09:52] <Splarka> the page title, the <h1> comes from various messages, for example on an edit page it is "Editing $1" from MediaWiki:Editing [06:09:59] <Splarka> you can mess with this ^_^ [06:10:26] <Splarka> http://test.wikipedia.org/w/index.php?title=MediaWiki:Editing&oldid=58321&action=edit [06:11:57] <Splarka> (and just so you don't feel bad, back when I was a noob, it took me a week to figure out what Sitetitle was for) [06:14:14] <wikibugs> 03(NEW) categoryinfo doesn't seem to support post - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14661 15enhancement; normal; MediaWiki: API; (jutiphan) [06:19:07] <CIA-53> 03werdna * r36691 10/trunk/extensions/AbuseFilter/ (9 files): Add AbuseFilter extension [06:24:56] <CIA-53> 03werdna * r36692 10/trunk/phase3/includes/ (Article.php Block.php EditPage.php Title.php Xml.php): (log message trimmed) [06:24:56] <CIA-53> Core changes for AbuseFilter extension. [06:24:56] <CIA-53> In particular: [06:24:56] <CIA-53> Xml.php [06:24:56] <CIA-53> * Add textarea method to Xml class. [06:24:58] <CIA-53> * Make submit button optional for Xml::buildForm [06:25:00] <CIA-53> * Right-align labels in buildForm. [06:34:34] <piksi> so, i'm generating my sitemaps with the maintenance tools in 1.12.0 [06:34:47] <piksi> and sending them to google, and google processes *most* of them ok but gives this warning: All the URLs in your Sitemap are set to the same priority (not the default priority). [06:36:28] <CIA-53> 03dantman * r36693 10/trunk/phase3/languages/messages/MessagesEn.php: Removing single ' from linktrail as per bug 14655 and wikitech-l. [06:38:13] <wikibugs> 03(FIXED) remove apostrophe \' from $linkTrail (introduced in r36253) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14655 +comment (10dan_the_man) [06:51:28] <cybercobra> how do I make nifty boxes e.g. like the Featured Article box on WP's main page? [06:54:02] <Nikerabbit> Werdna: mmm? [06:54:35] <Nikerabbit> you are using {{SITENAME}} in message that is pulled with wfMsg? [06:56:52] <Werdna> where [06:57:20] <Nikerabbit> abusefilter-blocked-display [06:57:49] <Nikerabbit> it looks like if I traced correctly, passed as reference up to some hook and then probably to some error thing? [06:59:28] <Werdna> yes, which uses wikitext. [07:00:30] <Nikerabbit> Werdna: it parses it? [07:00:43] <Werdna> correct. [07:00:49] <Werdna> I've tested it. [07:00:56] <Nikerabbit> Werdna: can you point the place? [07:02:34] <Werdna> oops, not done in MovePage.php [07:02:45] <Werdna> but it is done in EditPage.php [07:04:18] <Nikerabbit> return self::AS_HOOK_ERROR; [07:05:28] <Nikerabbit> where does it go from that? [07:05:38] <Werdna> where are we talking? [07:06:29] <Nikerabbit> Werdna: I can't find the place where that is parsed [07:07:09] <CIA-53> 03werdna * r36694 10/trunk/extensions/AbuseFilter/abusefilter.tables.sql: Fix SQL error [07:07:10] *Werdna shrugs. [07:07:18] <Werdna> It shows correctly when I tested it. [07:08:20] <Nikerabbit> $wgOut->addWikiText( $this->hookError ); [07:08:22] <Nikerabbit> ahha [07:09:52] <Nikerabbit> Werdna: you should use wfMsgNoTrans then, because plain wfMsg triggers call time transform... which does not know that it is supposed to parse for interface language, and thus GRAMMAR doesn't work correctly, and neither plural [07:09:59] <CIA-53> 03werdna * r36695 10/trunk/extensions/AbuseFilter/abusefilter.tables.sql: Oops, another SQL error [07:10:24] <Werdna> time transform? [07:10:32] <Nikerabbit> call time transform [07:10:45] <Nikerabbit> unless it's been fixed [07:11:05] <Werdna> what is time transform? [07:11:27] <Nikerabbit> "call time" transform [07:14:50] <Werdna> which is? [07:15:10] <Nikerabbit> wfMsg calls wfMsgReal, which defaults to $transform = true, which calls wfMsgGetKey, which calls $wgMessageCache->transform, which does parsing if it finds {{ [07:16:08] <Nikerabbit> but it does parsing in wrong language (content), because wfMsg doesn't pass information about the interface language [07:17:48] <Nikerabbit> complex? yes it is [07:17:58] *Splarka grumbles that the preferences <form> has no name or id [07:18:05] <wikibugs> 03(mod) LocalSetting.php Encoding type (multi-language/ Hebrew support as site name) - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=14653 +comment (10dan_the_man) [07:18:45] <Nikerabbit> + $form .= Xml::tags( 'td', array('valign'=>'top','align' => 'right'), wfMsgExt( $labelmsg, array('parseinline') ) ); [07:19:03] <Nikerabbit> would mw-label and mw-input css classes be more suitable here.. they should work for ltr too? [07:19:05] <Raymond_afk> 'class' => 'mw-label' [07:19:12] <Raymond_afk> have seen it too :) [07:19:24] <Werdna> ah, well that should go in Xml::buildFOrm [07:19:30] *Splarka offers sexual favors to whoever goes through and puts an id '''and''' name on *every* <form>, and at least and id on every form element (textarea, submit, button, and input type=text at the least) [07:19:49] <Nikerabbit> Raymond_afk: maybe I should but fat warning to wfMsg that it is ev0l [07:19:59] <Splarka> (in all the extensions as well) [07:20:07] <Nikerabbit> Splarka: id's are bad [07:20:15] <Raymond_> Nikerabbit: yeah [07:20:16] <Splarka> bad IDea? [07:20:25] <Nikerabbit> what if you want to have multiple forms on the same page? [07:20:29] <Splarka> names are bad, because they can be duplicated (radio buttons at least) [07:20:33] <Splarka> numerically increment them! [07:20:44] <Nikerabbit> Splarka: for every element? no thanks [07:20:46] <Dantman|Away> foo[] ! [07:20:56] <Splarka> no thanks? in what way? [07:21:01] <Splarka> not every element, just every <form> [07:21:09] <Splarka> id="mw-imputbox-1" id="mw-imputbox-2" ... [07:21:19] <Nikerabbit> "and at least and id on every form element" [07:21:29] <Splarka> oop, meant name there, sorry [07:21:35] <Splarka> brain fart:/ [07:21:37] <Splarka> but lets look at Special:Preferences... [07:21:39] <CIA-53> 03werdna * r36696 10/trunk/extensions/AbuseFilter/ (AbuseFilter.i18n.php SpecialAbuseFilter.php): Actually allow people to add filters... [07:21:45] <Nikerabbit> which is crap.. but please continue [07:21:50] <Splarka> <form action="/wiki/Special:Preferences" method='post'> [07:22:02] <Splarka> okay, please explain how every form element having a name is crap? [07:22:33] <CIA-53> 03werdna * r36697 10/trunk/phase3/includes/Xml.php: Use class=mw_label instead of valign and align [07:22:38] <Nikerabbit> Splarka: not name, id [07:23:08] <Splarka> Contributions form: <form method="get" action="/w/index.php"> [07:23:10] <Dantman> document.getElementsByName() / document.getElementById() [07:23:27] <Splarka> GetElementsByName()[0], hate [07:23:33] <Splarka> er G/g [07:23:53] <Dantman> mhmm... cept if something can have multiple existances, then name > id [07:23:57] *Splarka has used getElementsByAnything() before, that checks id, then name, then class, then tag name, then parameters [07:23:59] <Dantman> ^_^ But class rules over all [07:24:16] <Splarka> sure, but things that can't have multiple existences should have a unique ID... [07:24:28] <Dantman> $('.jquery') FTW! [07:24:29] <Splarka> like prefs form, contribs form, undelete preview form [07:24:40] <Splarka> which is: <form method="post" action="/w/index.php?title=Special:Undelete&action=submit"> [07:24:59] <Splarka> and forms that can have multiple instances, like inputbox, how hard is it to number them? really! [07:25:45] <Dantman> $('table td:odd').addClass('odd'); [07:25:49] <Dantman> ;) heh [07:25:54] <Dantman> ohwait [07:25:55] <Splarka> ugh [07:25:59] <Dantman> $('table tr:odd').addClass('odd'); [07:26:14] <Splarka> doesn't sortable tables already do that in JS? (haha) [07:26:28] <Dantman> heh ya [07:26:45] <Nikerabbit> <form action="/sandwiki/index.php?title=Special:Preferences" method="post" id="mw-preferences-form"><div id='preferences'><fieldset ><legend> [07:26:49] <Nikerabbit> would this be better? [07:27:07] <Splarka> well, yes, but a drop in the bucket [07:27:11] <Nikerabbit> I wonder wth is the space after fieldset [07:27:20] <Splarka> so many forms are missing id's [07:27:26] <Splarka> Nikerabbit: I more wonder about... [07:27:45] *Splarka tries to find it... [07:28:06] <Splarka> <legend> [07:28:06] <Splarka> Skin</legend> [07:28:37] *Splarka sighs, and uses .parentNode.parentNode.parentNode for now [07:28:49] <Dantman> That one is probably explained by a translation by wfMsg [07:29:06] <Splarka> if I wasn't so lazy I could try it in other languages, heh [07:29:17] <Dantman> heh [07:29:23] <Werdna> how annoying. [07:29:35] <Werdna> This line of code doesn't return rows where no row in abuse_filter_actions exists [07:29:38] <Werdna> $res = $dbr->select( array('abuse_filter','abuse_filter_action'), '*,group_concat(afa_consequence) AS consequences', array( 'afa_filter=af_id' ), __METHOD__, array( 'LIMIT' => 100, 'GROUP BY' => 'af_id' ) ); [07:29:43] <Werdna> what do I do to fix that up? [07:30:12] <Nikerabbit> :o [07:30:47] <OverlordQ> get really really drunk until you think it does what you want it to, call it good, and then go have a beer with the guys [07:30:53] <OverlordQ> in other words, not a clue. [07:30:56] *Werdna is not a drunkard. [07:31:02] *Werdna looks at Dantman hopefully [07:31:14] <Dantman> Heh... SQL [07:31:45] <Dantman> I may be creating my own Database handling class for my app... but I've never even made active use of JOINs myself [07:32:10] *Splarka wonders the most efficient way to recurse over parentNode's to a particular tagName [07:32:14] <gmc> Dantman: you probably have, if you ever did a select over more than one table [07:32:19] <CIA-53> 03nikerabbit * r36698 10/trunk/phase3/includes/specials/SpecialPreferences.php: * Add id to preferences form, requested by Splarka [07:32:24] <Dantman> ^_^ Wouldn't you love making SQL queries with syntax like http://wiki-tools.pastebin.com/d1813dc6 [07:32:34] <Nikerabbit> can elements have multiple id's? [07:32:42] <Splarka> no:/ [07:32:51] <Nikerabbit> shit [07:32:54] <Splarka> that is against the specs [07:32:56] <Nikerabbit> that's very nice for bc [07:32:57] <Werdna> I never explicitly use JOINs [07:32:59] <Dantman> Heh... who said I ever did complex queries like that over a rare check in raw sql through phpMyAdmin [07:33:10] *Splarka was trying to get flying/parchment to add id="content" to the id="mw-content" [07:33:12] <Nikerabbit> how in earth could we ever get sensible id's if we can't change them [07:33:15] *Werdna looks hopefully at Nikerabbit [07:33:21] <str4nd> o_O? [07:33:37] <Dantman> class ftw! [07:33:44] <Splarka> Nikerabbit: it is fun when they change, for scripts, especially inconsistently! [07:33:51] <Nikerabbit> Werdna: wrt the query? [07:33:56] <Werdna> Nikerabbit: yes [07:34:06] <Nikerabbit> I'm not very good at SQL [07:34:38] <Werdna> gah [07:34:42] <Splarka> <input type="submit" value="Delete" name="mw-filedelete-submit" id="mw-filedelete-submit" tabindex="3" /> [07:34:43] <Splarka> <input type="submit" value="Delete page" name="wpConfirmB" id="wpConfirmB" tabindex="4" /> [07:34:44] <Dantman> ^_^ heh.... $db->query()... or perhaps even... $db->queries() ! [07:34:48] <Nikerabbit> is that second one tables or fields? [07:34:53] <Splarka> both are action=delete, but one is for Image: namespace, wtf!@ [07:34:54] <Dantman> mmmmm... multi_query [07:35:32] <Nikerabbit> Splarka: another reason why ids are bad [07:35:41] <Splarka> well, the name there has the same problem [07:35:51] <Splarka> I don't think you can have multiple names either [07:36:00] <Nikerabbit> well, I think we can change names more easily [07:36:04] <Dantman> ^_^ And in the script world... <script type="text/javascript defer="defer">... [07:36:05] <Splarka> (that is an element with multiple names) [07:36:13] <Nikerabbit> especially if there is no big risk of hand crafted urls [07:36:27] <Splarka> well, anything with an action=GET shouldn't change names [07:36:32] <Dantman> Hmmm... I wonder [07:36:32] <Splarka> or you can break bookmarks [07:36:45] <Splarka> both in form GETs, and in anchors [07:36:50] <Nikerabbit> Splarka: bookmarking deletion pages... give me a break [07:36:59] <Splarka> no no... [07:37:10] <Dantman> heh... [07:37:18] <Splarka> I mean like <a name="foo"> for #foo [07:37:38] <Splarka> or Special:Search?search=Foo [07:37:45] <Dantman> ^_^ "These pages keep getting recreated... So... I'll just bookmark the deletion page for all of them, and put them in a folder... Then hit 'Open All in Tabs'" heh [07:37:58] <Splarka> although that would be interesting [07:38:18] <Nikerabbit> I'm really sad that all attempts to sanitise our ids and classes have dried up [07:38:23] <Splarka> if you had form buttons click() on url anchor fragments #foo matching the ID of a submit button [07:38:32] <Splarka> yes, IDs do need to be unique [07:38:36] <Dantman> Wasn't <a name"foo"/> depreciated in favor of <a id="foo"/> [07:38:48] <Dantman> name=* [07:38:54] <Splarka> in fact, my request above should be considered secondary to that [07:39:35] <Splarka> but most form elements (code appearance wise, not document appearance wise), especially those in Special: pages, can have IDs unique not only to the page but to the site, without harming that requirement [07:39:48] <Splarka> IMHO ^_^ [07:40:18] <Nikerabbit> Splarka: that greatly limits what we can do with them in the future [07:40:27] <Splarka> in what way?? [07:40:37] <Splarka> if the preferences form has no id="", what is the harm in adding one? [07:40:41] <Splarka> as long as you don't have to change it [07:41:21] <Splarka> the Sanitizer should probably parse out any IDs in user input and extensions (on page render) that start with "mw-" and "wp" (or change them), as well as remove or numerate any duplicates in user/extension output [07:41:22] <Nikerabbit> Dantman: BOM are explicit NONO in PHP world.. don't even think about them :o [07:41:49] <Dantman> ^_^ Python has some issues with them to [07:41:58] <Nikerabbit> not some, but all [07:42:32] <Dantman> Hmmm... Well, I recal 2.3 failing in them... but 2.5 might have handled BOM alright [07:42:40] <Nikerabbit> Splarka: you now have one id more, will the users celebrate? :o [07:43:23] <Splarka> Niker: hmm? [07:43:55] <Splarka> did you change Preferences? can I get you to modify the Undelete preview form and Special:Contributions form too? ^_^ [07:44:16] <Dantman> But what do you think about feeding http://wiki-tools.pastebin.com/d1813dc6 into a function? It is for my own project, however it's going to be pretty modular... I could probably extract some code for MW to... It would probably make all the JOINs the API does much simpler [07:44:52] *Splarka ponders stealing an isDescendant() function [07:45:01] <Nikerabbit> Splarka: [10:32:19] CIA-53> nikerabbit * r36698 /trunk/phase3/includes/specials/SpecialPreferences.php: * Add id to preferences form, requested by Splarka [07:45:13] <wikibugs> 03(ASSIGNED) enhancement of languageConverter - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14604 +comment (10fdcn64) [07:45:39] <Splarka> Nikerabbit: yes they will, ta <3 [07:46:12] <Splarka> you may wonder wtf I needed that for [07:46:22] <Nikerabbit> n/a [07:46:31] <Nikerabbit> Splarka: is there page where most of id's and all are listed? [07:46:50] <Splarka> not really [07:46:59] <Splarka> which is, of course, why they are so fucked up [07:47:12] <Splarka> mw-filedelete-submit vs wpConfirmB [07:47:33] <wikibugs> 14(WFM) categoryinfo doesn't seem to support post - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14661 +comment (10Bryan.TongMinh) [07:48:27] <Nikerabbit> I'm sure there is one [07:48:33] <Nikerabbit> just can't remember where [07:49:03] <Splarka> I'm working on improving prefs.js to do three things in JS: let you jump to a specific tab by specifying an anchor, eg Special:Preferences#math or Special:Preferences#prefsection-2, find the link to such a button (you can right-click the tabs and copy link location to do that even now), and bring you back to the same tab after [save] [07:49:36] <Nikerabbit> Splarka: there is next to no use adding new ones if they are not documented [07:49:44] <Nikerabbit> Werdna: should I fix the wfMsgNoTrans for you? [07:50:02] <Nikerabbit> hi mohr [07:50:04] <Splarka> Nikerabbit: there is for future use... [07:50:24] <Nikerabbit> Splarka: it's stupid to create more work for future documenters [07:50:31] <Splarka> I, at least, if I want to style or script a page, first check for IDs and classes [07:50:37] <Splarka> heh [07:50:43] <Splarka> by that logic SVN should be locked down! [07:50:47] <Splarka> how many people document all their changes? [07:51:11] <Splarka> an ID does not need to be documented to be useful [07:51:28] <Splarka> (ask anyone who knows how to view a page source) [07:51:33] <Nikerabbit> that's stupid [07:51:38] <Splarka> ...why? [07:51:43] <Nikerabbit> even the developers do not have the full view then, and adding them is a pain [07:52:19] <Splarka> if one person knows about the ID in Special:Preferences... [07:52:45] <Splarka> they can more easily write an addition to prefs.js that affects every installation in the world, affecting major changes to the operation, that is NOT useless [07:53:03] <Nikerabbit> what if I just added a id that conflicts with another?! [07:53:13] <Splarka> not on the same page, right? [07:53:37] <Splarka> prefs.js only loads on the Special: page in question, and no user scripts load on it ^_^ [07:53:42] <Nikerabbit> Splarka: that doesn't matter, id's should be site unique to some extent [07:54:22] *Splarka wonders just how likely mw-preferences-form is to be duplicated... [07:55:28] <CIA-53> 03werdna * r36699 10/trunk/extensions/AbuseFilter/ (AbuseFilter.class.php SpecialAbuseFilter.php): Change multi-table select to LEFT OUTER JOIN, so actions without consequences show up on the filter page' [07:55:38] *Splarka gives Nikerabbit a cookie for doing the right thing even if not quite agreeing with it [07:55:41] <Nikerabbit> you are not thinking in high leven enough [07:55:54] <Werdna> Nikerabbit: I don't quite understand what you're suggesting. [07:56:16] <Nikerabbit> Werdna: wfMsg -> wfMsgNoTrans if it is later passed to ->addWikiText [07:56:37] <Werdna> okay. [07:56:47] <Werdna> and why? [08:00:58] <Nikerabbit> [10:16:08] Nikerabbit> but it does parsing in wrong language (content), because wfMsg doesn't pass information about the interface language [08:06:00] <CIA-53> 03werdna * r36700 10/trunk/extensions/AbuseFilter/abusefilter.tables.sql: Forgotten column in abuse_filter_log [08:07:34] <wikibugs> 03(mod) Enable FlaggedRevs custom configuration on he.wikisource - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14648 (10dovijacobs) [08:08:16] <Splarka> Niker (or do you prefer to be shortened to Nike? I hate using full names all the time!): hypothetical changes to prefs.js http://test.wikipedia.org/w/index.php?title=MediaWiki:Common.js/prefs.js&diff=60962&oldid=60839 (not tested fully yet, just idle speculation at this point) [08:08:40] <wikibugs> 03(mod) Enable FlaggedRevs custom configuration on pt.wikinews - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14254 (10dovijacobs) [08:08:56] <flyingparchment> Splarka: his name is usually shortened to 'finnish guy' [08:09:17] <Werdna> Nikerabbit is finnish? [08:09:28] <Splarka> when did he start? [08:09:57] <Nikerabbit> ug? [08:10:21] <Splarka> SuomalaisetHenkilo ? [08:10:25] <Nikerabbit> Splarka: Nikerabbit is not my full name, and using it gives my nice highlight :) [08:10:52] <Splarka> well, full nick [08:11:03] *Dantman|FS goes to put Dant on his highlight list [08:11:12] <Nikerabbit> Splarka: anyway, isn't it so that js is not executed on special:preferences? [08:11:22] <CIA-53> 03werdna * r36701 10/trunk/extensions/AbuseFilter/SpecialAbuseLog.php: Actually restrict viewing private data [08:11:31] <Splarka> Nikerabbit: only user JS, and possibly gadgets [08:11:44] <Splarka> site JS is executed, as well as wikibits.js, and prefs.js is loaded specifically on that page [08:11:44] <Nikerabbit> Splarka: mm was it so? [08:11:59] <Nikerabbit> bout you can't override prefs.js can you? [08:12:03] <Splarka> no, you can't [08:12:05] <Splarka> not even in site.js [08:12:10] <Splarka> the only way I can test it is to do it locally [08:12:19] <Nikerabbit> Splarka: ok [08:12:22] <Splarka> annoyingly [08:13:22] <Splarka> heh [08:13:35] <Splarka> http://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29#Problems_installing_Twinkle [08:13:42] <Splarka> notice the username [08:15:36] <wikibugs> 03(mod) categoryinfo doesn't seem to support post - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14661 (10jutiphan) [08:16:23] <CIA-53> 03werdna * r36702 10/trunk/extensions/AbuseFilter/AbuseFilter.hooks.php: Pass a title instead of a user object. For some reason we were passing a user object into the hook :/ [08:16:23] *Splarka does note his prefs.js changes are hacky, but not near as hacky as the rest of the code that was already there... [08:19:46] <dmc900> Is it possible to allow a selected range of user’s access to modifying article content in a selected range of namespace and allow all registered users the ability to modifying discussion pages? [08:20:37] <Splarka> yes...ish [08:20:42] <Werdna> !access [08:20:42] --mwbot-- For information on customizing user access, see <http://www.mediawiki.org/wiki/Manual:User_rights>. For common examples of restricting access using both rights and extensions, see <http://www.mediawiki.org/wiki/Manual:Preventing_access>. [08:21:09] <Splarka> http://www.mediawiki.org/wiki/Manual:$wgNamespaceProtection [08:21:50] <dmc900> ok thanks, I'll read through all the articles you've suggested :) [08:22:08] <Splarka> well, start with mine, or jump down to http://www.mediawiki.org/wiki/Manual:Preventing_access#1.10_upwards in werdna's [08:22:44] <Splarka> note also you can prevent creation of new pages separate from editing of existing pages, in some namespaces [08:23:02] <CIA-53> 03werdna * r36703 10/trunk/extensions/AbuseFilter/ (AbuseFilter.class.php AbuseFilter.hooks.php): Remove some ugly debugging code [08:24:43] <Nikerabbit> Werdna: can afl_ip ever be null? [08:25:05] <Werdna> Nikerabbit: afl_ip varchar(255) not null, [08:25:11] <Nikerabbit> ok then [08:29:05] <Werdna> LoginForm::addNewAccountInternal: a hook blocked creation [08:29:07] <Werdna> oops [08:29:53] <ierpe> What would be the link format to the article creation page? <a href="???">Create New Article</a> [08:31:20] <ierpe> No idea?? :p [08:32:08] <Splarka> in wikicode or html? [08:32:38] <Splarka> yourscriptpath + '/index.php?title=PAGENAMEaction=edit' is usually sufficient [08:32:58] <Splarka> you can get this with {{fullurl:PAGENAME|action=edit}} in wikicode for example [08:33:33] <ierpe> i want to reach the page where i have to insert the tiltle for a new page [08:34:00] <Splarka> oh, a new section? [08:34:07] <ierpe> yeah [08:34:14] <Splarka> action=edit§ion=new [08:34:18] <Splarka> but that works on existing pages too [08:34:24] <ierpe> hmm [08:34:30] <Splarka> perhaps you want <inputbox> which lets you enter the title of a nonexisting page [08:34:45] <Splarka> http://www.mediawiki.org/wiki/Extension:Inputbox [08:34:47] <CIA-53> 03werdna * r36704 10/trunk/extensions/AbuseFilter/AbuseFilter.hooks.php: Handle case where no filters were matched [08:35:07] <Nikerabbit> Werdna: yes, no? [08:35:36] <ierpe> see we have a "News" section where people can write sports news, so they just have to create new article allt he time, it was working fine, but yesterday i added new countries and now it doesnt work for all the languages [08:35:53] <Werdna> Nikerabbit: what? [08:36:54] <Nikerabbit> Werdna: don't make this hard... maybe I do it then later when you are sleeping or something [08:37:19] <Werdna> Nikerabbit: yes no what? [08:38:03] <Nikerabbit> Werdna: should I fix the code or do you want to dit yourself [08:38:14] <Splarka> <Nikerabbit> bout you can't override prefs.js can you? <--- actually, you just gave me an idea, I didn't even know you could unattach event listeners, but bless MS you can... window.removeEventListener('load',tabbedprefs,false) and window.detachEvent('onload',tabbedprefs) [08:38:27] <Werdna> Nikerabbit: you do it. I don't really understand what it is you're asking me to do. [08:38:50] <Nikerabbit> Werdna: ok, I'll do it when you are not touching the code [08:40:21] <ierpe> What do you mean, are you not usig subversion to code together? [08:42:17] <Splarka> they probably don't wanna conflict [08:42:32] <ierpe> yeah thats what subversion is made for... [08:42:37] <ierpe> we are using it and its great! ^^ [08:43:26] <ierpe> its managing all the versionning, code merging, you can work at many programmers on the same projects and you want interfere with each other [08:43:35] <ierpe> you wont* [08:44:27] <Splarka> unless you're both editing the same line, as they might be [08:45:11] <ierpe> but in this case, the one that will commit last will receive what the other did and it will highlight the diferences [08:45:41] <CIA-53> 03jojo * r36705 10/trunk/extensions/Collection/Collection.i18n.php: fix PDF download link in Ukrainian translation [08:50:17] <CIA-53> 03werdna * r36706 10/trunk/extensions/AbuseFilter/AbuseFilter.class.php: Add contains operator [08:52:08] <ialex> Werdna: there's a lot of E_NOTICE in abuse filter [08:53:43] <Nikerabbit> any ideas what I should do now [08:54:01] <Nikerabbit> I can either improve ffs of Translate, or work on any i18n related item [08:55:34] <Nikerabbit> ialex: btw, does recentchangeslinked use the same hooks? [08:55:46] <ialex> Nikerabbit: no [08:56:22] <ialex> it should ? [08:58:12] <Nikerabbit> ialex: not necessarily [08:58:20] <Nikerabbit> I don't know how well it plays with the queries [09:01:20] <CIA-53> 03grondin * r36707 10/trunk/extensions/Translate/groups/mediawiki-defines.txt: Adding Abuse Filter extension to Translate features [09:01:22] <CIA-53> 03nikerabbit * r36708 10/trunk/extensions/CleanChanges/CleanChanges.php: * Add header for copyright etc, let user filter default to true [09:05:17] <_wooz> lo [09:11:04] <Zach> on special:wantedpages, it says you can exclude titles; can you exclude multiple titles? (if so, what should i use to seperate them?) [09:11:28] <Werdna> ialex: O RLY? [09:11:35] <Werdna> ialex: what kinda E_NOTICE? [09:11:59] <ialex> Werdna: $row no defined when Special:AbuseFilter/new [09:12:08] <Werdna> mmm [09:12:10] <ialex> Werdna: but i can comit the fixes [09:12:12] <CIA-53> 03werdna * r36709 10/trunk/extensions/AbuseFilter/AbuseFilter.class.php: Add contains to the list of operators [09:12:14] <ialex> +m [09:12:15] <Werdna> ialex: don't bother [09:12:16] <Werdna> I'll do it [09:12:30] <ialex> Werdna: i already did the fixes :) [09:13:53] <Werdna> fine.. [09:13:54] <Werdna> :P [09:18:57] <CIA-53> 03werdna * r36710 10/trunk/extensions/AbuseFilter/AbuseFilter.hooks.php: === instead of == for comparing with true [09:19:54] *Dantman|FS wishes someone would create a Semantic Uploads extension [09:21:44] <VasilievVV> Werdna: is that extension planned to be installed on Wikimedia? [09:22:25] <CIA-53> 03werdna * r36711 10/trunk/phase3/includes/Block.php: Don't be lazy: Initialise autoblock objects with both the blocker ID and their name [09:27:07] <CIA-53> 03ialex * r36712 10/trunk/extensions/AbuseFilter/ (AbuseFilter.hooks.php SpecialAbuseFilter.php): Fix some E_NOTICE [09:28:52] <CIA-53> 03ialex * r36713 10/trunk/extensions/AbuseFilter/SpecialAbuseFilter.php: Oops [09:29:28] <Werdna> VasilievVV: hopefully. [09:30:40] <ialex> weird, why my MySQL only put one row in abuse_filter_action? >.< [09:39:07] <CIA-53> 03werdna * r36714 10/trunk/extensions/AbuseFilter/ (AbuseFilter.class.php install.php): Add install.php, installer which adds the blocker account if it doesn't exist, adds the tables [09:40:39] <VasilievVV> Werdna: blocker account? [09:41:01] <VasilievVV> Do you use user account from code? [09:41:35] <Werdna> yes. [09:41:42] <VasilievVV> You should not [09:41:51] <VasilievVV> You should use reserved username [09:42:07] <Werdna> why? [09:42:08] <Splarka> User:MediaWiki_rogue_sysop with ID=0? [09:42:30] <VasilievVV> Werdna: because user accounts are for users and bots, not for engine [09:42:41] <VasilievVV> It's like MediaWiki default etc. [09:42:48] <VasilievVV> We don't create any user for them [09:44:11] <Werdna> yes, but id=0 doesn't work with blocking [09:44:12] <Werdna> I tried it [09:44:28] <VasilievVV> We have such fields in the database [09:44:38] <VasilievVV> All you need is to modify Block class [09:44:38] <Werdna> ? [09:44:42] <Splarka> make all anon users sysops [09:44:45] <Werdna> and Title class [09:44:47] <Werdna> and User class [09:44:51] <Werdna> and about ten zillion other classes. [09:45:03] <VasilievVV> Werdna: I added ipb_by_text in March [09:45:11] <Splarka> (you did give them potentially full access to userrights for a while, heh) [09:45:15] <VasilievVV> So it's possible for zero-id-users to block them [09:45:23] <Werdna> I know, but User, Title, everything else class still uses ipb_by [09:45:37] <Werdna> and does User::whoIs( ipb_by ) [09:45:52] <VasilievVV> Werdna: fix them, not principles [09:46:24] <VasilievVV> At least CrosswikiBlock extension used to work a while ago [09:46:57] <ialex> Werdna: hmm, you can use only one action per filter? [09:47:07] <Werdna> I got the feeling that I was doing something "naughty" by using id=0 [09:47:11] <Werdna> ialex: where'd you get that idea? [09:47:36] <ialex> Werdna: primary key of abuse_filter_action [09:47:55] <Werdna> ialex: yes, I fixed that [09:47:56] <Werdna> svn up [09:48:09] <Werdna> oh wait [09:48:12] <Werdna> no, I fixed it locally [09:49:39] <CIA-53> 03werdna * r36715 10/trunk/extensions/AbuseFilter/ (4 files): Change primary key of abuse_filter_action from afa_filter to afa_filter,afa_consequence [09:51:02] <Werdna> ialex: ARE YOU HAPPY NOW? :P [09:51:12] <ialex> Werdna: YES!!! :) [09:51:51] <Splarka> "FIXED, I fixed it in my mind" "what?" [09:52:05] <Werdna> hehe [09:53:41] <CIA-53> 03jojo * r36716 10/trunk/extensions/Collection/Collection.body.php: fix: remove timeout from curl POST request [09:57:19] <Nikerabbit> ialex: :o [09:58:58] <CIA-53> 03nikerabbit * r36717 10/trunk/extensions/cldr/ (LanguageNames.body.php LanguageNames.php): * Split class to body while to speed up parsing [10:24:08] <Nikerabbit> Dantman|FS: uh? [10:24:16] <CIA-53> 03ialex * r36718 10/trunk/phase3/ (4 files in 2 dirs): [10:24:16] <CIA-53> * Fixed some Doxygen warnings [10:24:16] <CIA-53> * Removed unused global declaration of $wgOut in AjaxFunctions.php [10:24:26] <Nikerabbit> Dantman|FS: multibyte stuff? [10:25:07] <Nikerabbit> 2 PHP Fatal error: Call to a member function getDbKey() on a non-object in /var/www/w/includes/api/ApiQueryBase.php on line 328 [10:25:11] <Nikerabbit> has this been fixed? [10:25:49] <Dantman|FS> Well... UTF-8 is basically ASCII... The only thing different is multibyte stuff... So afaik the real issue is multibyte stuff, but PHP has an alternate method of entering those in in plain ASCII [10:26:15] <Nikerabbit> offending revision r36678 by catrope [10:26:25] <Nikerabbit> hmm, doesn't seem to be here now? [10:26:30] <Dantman|FS> Or rather... You entier them in ASCII... but PHP probably reads the strings in UTF-8 for you [10:26:45] <Nikerabbit> Dantman|FS: wtf [10:27:01] <Nikerabbit> php has no fancy handling... it just reads bytes after bytes [10:27:43] <Dantman|FS> Meh... all I know is in the past people have been poked for using pure UTF-8 and told to encode differently [10:28:06] <VasilievVV> Werdna: any progress on opt-out/in of global groups? [10:28:43] <Nikerabbit> Dantman|FS: hmhm? [10:28:50] <Nikerabbit> maybe it has to do with BOM [10:29:00] <Nikerabbit> we use utf-8 without bom everywhere [10:29:09] <Werdna> VasilievVV: I might look at it at some stage. [10:29:24] <Nikerabbit> !seen RoanKattouw [10:29:24] --mwbot-- I don't know anything about "seen". [10:29:28] <Nikerabbit> stupid bot [10:29:36] <VasilievVV> Werdna: because I've already done some work on wikisets while I was offline [10:29:43] <Dantman|FS> Nah... it had to do with characters getting skewed because some devs were encoding differently than others, and because of it the stupider text editors were breaking the text [10:29:53] <Werdna> VasilievVV: O RLY [10:30:37] *VasilievVV just doesn't want to be rude bug theif [10:31:12] <Werdna> you can do it if you want. Just don't do it as an "opt out" [10:31:17] <Werdna> do something more intelligent and flexible. [10:31:46] <VasilievVV> Yes, it will be done using wiki-sets idea you proposed [10:32:20] <Nikerabbit> Dantman|FS: well, stupid text editors who can't stop breaking utf-8 files without boms [10:34:00] <Dantman|FS> Yup... but all I know is that you can enter the multibyte-equiv using single byte ASCII characters, and the end result will be the single multibyte character on the web, without breaking in editors [10:37:55] <CIA-53> 03catrope * r36719 10/trunk/phase3/includes/api/ApiQueryBase.php: Fix fatal errors introduced in r36678 [10:37:57] <Nikerabbit> Dantman|FS: well, that happens to be sometimes possible because the bytes UTF-8 uses happen to mean something in ASCII [10:40:33] <ialex> catrope, Roan, ...: you are in a static function, you can't use $this [10:40:56] <Nikerabbit> ialex: better mail him like I id :) [10:41:11] <ialex> Nikerabbit: ahh :) [10:42:03] <ialex> "Fatal error: Using $this when not in object context in /Library/WebServer/Documents/phase3/includes/api/ApiQueryBase.php on line 329" [10:43:00] <VasilievVV> Werdna: Special:AbuseFilter/new gives me HTML junk inside the fieldset [10:43:10] <Werdna> O RRY? [10:43:23] <Werdna> lames. [10:44:29] <Nikerabbit> wouldn't it be nice if $wgOut was XMLwriter object :) [10:45:02] <CIA-53> 03jojo * r36720 10/trunk/extensions/Collection/pdf-server/pdfserver.py: fix: use sys.stdout.write() instead of print [10:45:38] <CIA-53> 03werdna * r36721 10/trunk/extensions/AbuseFilter/SpecialAbuseFilter.php: Fix regression in which textareas would spontaneously contain the rest of the HTML for Special:AbuseFilter/new [10:46:00] <VasilievVV> Syntax error now [10:46:17] <CIA-53> 03werdna * r36722 10/trunk/phase3/includes/Xml.php: Don't let textareas be done in short form [10:46:18] <Nikerabbit> let me guess, passing null to Xml::element? [10:47:12] <Werdna> Nikerabbit: correct. [10:47:13] <CIA-53> 03werdna * r36723 10/trunk/extensions/AbuseFilter/SpecialAbuseFilter.php: Fix syntax error [10:47:17] <Werdna> big pain in the ass. [10:48:40] <Nikerabbit> Werdna: indeed, one of the reasons why all those are suboptimal [10:49:30] <Nikerabbit> maybe if we added Xml::contentlessTag() and removed that behaviour [10:50:25] <VasilievVV> Nikerabbit: when I had to write such library, I made tag empty (<aa></aa>) when $content === '' [10:52:13] <ialex> Werdna: now I have a lot of new lines in <textarea> [10:52:35] <Werdna> mmm [10:52:57] <Werdna> $newRow[$value] = trim($wgRequest->getText( $key )); [10:53:01] <Werdna> that's why I do that. [10:53:36] <VasilievVV> Werdna: anyway, those new lines look ugly [10:54:23] <Nikerabbit> hmhm? [10:54:32] <Nikerabbit> VasilievVV: yeah better [10:54:40] <Nikerabbit> VasilievVV: < /> should be special case [10:54:47] <Nikerabbit> not something you can do accidentally [10:54:53] <Nikerabbit> this is xHTML after all [10:56:06] <VasilievVV> Werdna: may you please make a trivial example of a filter that has most of filter language features used? [10:56:55] <Werdna> VasilievVV: actually, I'm just writing one now [10:56:57] <Werdna> one moment [10:57:27] <Werdna> (&: ACTION eq move; (|: norm MOVED_TO_TEXT contains hager; (&: specialratio MOVED_TO_TEXT gt 0.5; length MOVED_TO_TEXT gt 5; ); ); USER_EDITCOUNT lt 100; ) [10:57:43] <VasilievVV> omg [10:58:50] <Werdna> VasilievVV: ? [10:59:47] *VasilievVV don't like & 1 2 3 syntax. 1 & 2 & 3 is more natural [11:00:27] <Werdna> yeah, but I found the former easier to implement :) [11:00:44] <VasilievVV> Easier to implement != better :) [11:00:53] <Werdna> of course not [11:01:00] <Werdna> but if it does the job... [11:01:05] <VasilievVV> I have some basic expirence in writing PL parser [11:01:21] <CIA-53> 03ialex * r36724 10/trunk/phase3/includes/Xml.php: Don't allow contentless tags for <textarea> [11:02:07] <VasilievVV> It was written in VB (it was me school project) and was able to parse statements like Out("AA" + (2 + 2 * 2 ^ 2) ); [11:02:22] <VasilievVV> Now I gotta go. Seeya :) [11:02:50] <Werdna> bye [11:03:00] <Werdna> ialex: you know I already fixed it. [11:03:20] <VasilievVV> Will you be around at ~16:30 UTC? [11:03:43] <ialex> Werdna: yes, but now you don't need to put new lines to avoid them [11:03:43] <Werdna> uh [11:03:58] <Werdna> that's 5 hours' time [11:04:02] <Werdna> it's now 21:00 local [11:04:04] <Werdna> so probably not [11:04:11] <VasilievVV> :( [11:04:37] <Splarka> he only needs 5hrs sleep? [11:04:53] <MinuteElectron> He didn't say he was going to sleep. [11:05:09] <MinuteElectron> =] [11:05:42] <rainman-sr> Splarka, when do you sleep?! or are you travelling constantly west eluding the night? [11:06:16] <Splarka> shh [11:06:29] <Splarka> (the day actually) [11:06:38] <Splarka> or maybe I sleep based on a D20 [11:11:52] <wikibugs> 03(mod) Separate link text from page header in MediaWiki:Contributions - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=13449 +comment (10niklas.laxstrom) [11:13:23] <CIA-53> 03werdna * r36725 10/trunk/extensions/AbuseFilter/AbuseFilter.class.php: Fix bug in OR condition parsing [11:19:11] <FunPika> weird...the install.php file for AbuseFilter doesn't appear to be working for me (I am installing it on a test wiki) O_o [11:21:47] <FunPika> Fatal error: MessageCache::require(): Failed opening required '' (include_path='/home/funpika/htdocs/html/w:/home/funpika/htdocs/html/w/includes:/home/funpika/htdocs/html/w/languages:.:/user/share/php:/usr/share/pear') in /home/funpika/htdocs/html/w/includes/MessageCache.php on line 813 [11:23:27] <Nikerabbit> FunPika: some extension is broken [11:23:42] <Nikerabbit> FunPika: are you running svn of mediawiki? [11:23:46] <FunPika> yes [11:24:01] <FunPika> my test wiki is running latest commit of mediawiki [11:24:37] <Nikerabbit> FunPika: try disabling extensions and look when it stops [11:33:46] <CIA-53> 03werdna * r36726 10/trunk/extensions/AbuseFilter/AbuseFilter.class.php: Add specialratio to modifiers [11:39:10] <FunPika> Nikerabbit: I finished doing that, and not a single one of my extensions is responsible. [11:43:54] <CIA-53> 03ialex * r36727 10/trunk/phase3/includes/specials/ (SpecialRecentchanges.php SpecialRecentchangeslinked.php): [11:43:55] <CIA-53> Tweaks for r36682: [11:43:55] <CIA-53> * output an error if an invalid title was given [11:43:55] <CIA-53> * Don't allow interwiki links [11:43:55] <CIA-53> * Removed unused global definition of $wgContLang in SpecialRecentchanges::makeOptionsLink() [12:04:12] <Nikerabbit> FunPika: hmhm? [12:04:47] <MinuteElectron> FunPika: What page does the error ocurr on? [12:05:00] <FunPika> it happens when I run install.php via shell [12:05:06] <MinuteElectron> I see. [12:05:25] <MinuteElectron> Maybe there is something wrong with that, it is fairly new. [12:05:36] <FunPika> I know [12:06:16] <FunPika> Nikerabbit: I disabled my extensions individually, and when they were all disabled install.php still failed. [12:06:27] <MinuteElectron> It probably won't be to do with an extension. [12:07:26] <Nikerabbit> MinuteElectron: it has to do [12:07:32] <Nikerabbit> something is corrupting $wgExtensionMessagesFiles [12:07:45] <MinuteElectron> right [12:08:18] <MinuteElectron> http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/AbuseFilter/install.php?revision=36714&view=markup [12:08:34] <MinuteElectron> Doesnt have a $wgExtensionMessagesFiles definition. [12:08:43] <MinuteElectron> So its trying to load a non-existant extension messages file. [12:09:26] <Nikerabbit> hmm [12:09:52] <Nikerabbit> FunPika: was there also warning about undefined index? [12:10:17] <FunPika> > Fatal error: MessageCache::require(): Failed opening required ” (include_path='/home/funpika/htdocs/html/w:/home/funpika/htdocs/html/w/includes:/home/funpika/htdocs/html/w/languages:.:/user/share/php:/usr/share/pear') in /home/funpika/htdocs/html/w/includes/MessageCache.php on line 813 [12:10:25] <FunPika> That was all I received [12:10:36] <MinuteElectron> YOu might not have full error reporting on. [12:10:43] <Nikerabbit> well, you should [12:10:58] <MinuteElectron> FunPika: Can you put 'error_reporting( E_ALL );' in your LocalSettings.php then try again? [12:11:17] <MinuteElectron> (without quotes, of course) [12:12:04] <MinuteElectron> install.php doesn't add the tables like it should either [12:13:39] <Nikerabbit> MinuteElectron: the function should probably check for the index and fail fast [12:13:50] <MinuteElectron> yeah [12:15:28] <FunPika> Notice: Undefined index: AbuseFilter in /home/funpika/htdocs/html/w/includes/GlobalFunctions.php on line 2560 [12:15:44] <FunPika> then after that line its just the usual fatal error [12:16:50] <MinuteElectron> as expected [12:17:18] <MinuteElectron> I think that install.php expects you to have put require_once( "$IP/extensions/AbuseFilter/AbuseFilter.php" ); in LocalSettings.php - but that shouldn't be the case. [12:17:20] <CIA-53> 03nikerabbit * r36728 10/trunk/phase3/includes/GlobalFunctions.php: * Fail fast [12:17:27] <MinuteElectron> Werdna: Are you stil here? [12:17:34] <Nikerabbit> MinuteElectron: probably missing require_once in install.php [12:17:41] <Nikerabbit> not that it works yet, anyway [12:17:44] <MinuteElectron> possibly [12:20:11] <Werdna> MinuteElectron: no. [12:20:16] <Nikerabbit> mmm [12:20:26] <Nikerabbit> MinuteElectron: what did you eat today? [12:21:05] <MinuteElectron> Nikerabbit: err... weetabix and chicken soup? [12:21:08] <MinuteElectron> Werdna: ok [12:21:24] <MinuteElectron> why? [12:21:26] <Nikerabbit> MinuteElectron: mm quite light [12:22:22] <Nikerabbit> I'm eating pork, mushroom and bamboo and what are those small cucumbers called? [12:22:28] <Werdna> MinuteElectron: what's up? [12:22:55] <MinuteElectron> Werdna: install.php doesn't work for FunPika because the extension message file isn't defined; also I think you forgot to uncomment the dbsource. [12:23:13] <MinuteElectron> Nikerabbit: sounds lovely, I haven't a clue about the small cucumbers :S [12:23:20] <Nikerabbit> MinuteElectron: no? [12:23:24] <Nikerabbit> have to look from wikipedia then [12:24:08] <MinuteElectron> hehe [12:24:17] <FunPika> okay then no more fatal error in install.php, but something still appears to be wrong... "Messages file for extensions AbuseFilter is not defined [12:24:19] <FunPika> Backtrace: [12:24:20] <FunPika> #0 /home/funpika/htdocs/html/w/extensions/AbuseFilter/install.php(14): wfLoadExtensionMessages('AbuseFilter') [12:24:22] <FunPika> #1 {main} [12:24:23] <Werdna> MinuteElectron: yes, I did, thank you. [12:24:28] <Werdna> MinuteElectron: FunPika? [12:24:46] <FunPika> I just copy-pasted what happened when I tried to run install.php from AbuseFilter [12:24:50] <MinuteElectron> FunPika: Yeah, that just got added; it means the extension messages file isn't defined. [12:25:02] <Nikerabbit> MinuteElectron: avomaankurkku, frilandsgurka, pickling cucumber, [12:25:05] <Werdna> oh right [12:25:07] <Werdna> let me see [12:25:08] <CIA-53> 03werdna * r36729 10/trunk/extensions/AbuseFilter/install.php: Forgot to uncomment this [12:25:20] <MinuteElectron> Werdna: yw =] [12:25:24] <MinuteElectron> Nikerabbit: nice... [12:25:44] <Werdna> FunPika: you need to require_once( 'extensions/AbuseFilter/AbuseFilter.php'); first. [12:25:49] <FunPika> oh [12:25:50] <Nikerabbit> MinuteElectron: mm, wok food [12:26:07] <MinuteElectron> i see [12:26:29] <Nikerabbit> I should learn to make this myself :) [12:26:42] <MinuteElectron> :P [12:27:09] <Nikerabbit> this only costed 5 euro [12:34:27] <Morbus> g'day. has there been any progress/movement on a) being able to rename or redirect an Image:, b) being able to rename the literal file on disk? [12:35:26] <Werdna> yes, renaming is possible [12:35:33] <Werdna> vasilievvv did it a while ago. [12:35:45] <Duesentrieb> Werdna: oh? redirects too? [12:36:01] <Werdna> I dunno [12:36:03] <Morbus> so it renames the file on *disk* too? [12:36:03] <Werdna> but it's done. [12:36:06] <Werdna> I dunno [12:36:13] <Morbus> i'd be ok with lack of redirects if it did both NS and file on disk [12:36:25] <Morbus> is that in 1.12? [12:37:40] <Nikerabbit> uh? [12:37:41] <Duesentrieb> Morbus: the name of the file on disk should not matter to you, ever. its copletely arbitrary. [12:37:58] <Nikerabbit> afaik we don't have renaming, only redirects [12:38:01] <Morbus> Duesentrieb: untrue. true if my interface to the images was *only* the wiki. but that's not the case. [12:38:09] <Morbus> i have thousands of images that must be accessible multiple ways. [12:38:11] <Morbus> so filenames are very important. [12:38:16] <Duesentrieb> Morbus: everything else should go via Special:Filepage. [12:38:27] <Duesentrieb> Morbus: that's the canonical way to resolve an image name to a working url [12:38:49] <Duesentrieb> Morbus: alternatively, go via thumb.php, shich also supports on-demand scaling [12:38:50] <Morbus> i'm talking about building CDs, external applications, etc. [12:39:03] <Morbus> ie., non-dynamic or programmatic access. file level only. [12:39:16] <Duesentrieb> uh... [12:39:28] <Duesentrieb> you should still be using mediawiki's facilities to find the file [12:39:46] <Morbus> that's never gonna be the case. [12:40:04] <Morbus> mediawiki is not the central way of organizing the images. mw is just an interface. [12:40:09] <Morbus> the central way of organizing the images is on the file system. [12:40:13] <Morbus> via the filename. [12:40:19] <Morbus> for this particular need. [12:41:08] <Morbus> is Special:Filepage in 1.12 only? it's not in my 1.11 install. [12:41:31] <Nikerabbit> special:filepath [12:41:41] <Morbus> thanks. [12:42:02] <Morbus> ok, and that's 1.12 only, at least :) [12:42:12] <Morbus> "Enter the file name without the "Image:" prefix. " [12:42:14] <Morbus> makes no sense to me. [12:42:34] <Morbus> if remaming of Image: URLs is possible, then the filename is not necessarily the URL. [12:43:06] <Morbus> is it asking for the literal filename on disk, or the current Image:<Name>? [12:44:10] <Duesentrieb> Morbus: you should consider mediawiki's image store to be opaque. just like mediawiki's text store. [12:44:19] <Morbus> Duesentrieb: so, assume that I do use MediaWiki's capability to map URLs to filename. [12:44:51] <Duesentrieb> no. map file names to urls. "file name" being the name used internally in the wiki, not the one for the *disk* file. [12:45:10] *FunPika found another bug with AbuseFilter [12:45:12] <Morbus> if MW is the interface to the "right name of the files", could I detect changes from path to filename, and fix the filename on disk? I'd have to fix the disk filename in the database, then clear the cache? [12:45:32] <FunPika> On Special:AbuseFilter I get... [12:45:34] <Morbus> lemme reohrase. [12:45:39] <FunPika> A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: [12:45:41] <FunPika> (SQL query hidden) [12:45:43] <FunPika> from within function "SpecialAbuseFilter::showList". MySQL returned error "1051: Unknown table 'abuse_filter' (localhost)". [12:45:51] <Morbus> if MW is the interface to the "right name", could I detect changes from wiki filename, and fix the disk filename? I'd have to fix the disk filename in the database, then clear the cache? [12:46:20] <Morbus> Duesentrieb: no matter how silly you think it, i need to remain consistent with wiki filename and disk filename. [12:46:28] <Morbus> :) [12:46:29] <FunPika> for some reason it sounds like it wants the table with no prefix O_o [12:47:11] <Morbus> and, with thousands of images, is there a faster access than Special:Filepath? some query i could run in the db instead? [12:47:29] <Duesentrieb> Morbus: i dcan imagine that it makes life easier for you. it might even work for now. it's just not The Right Thing. [12:47:30] <Morbus> i have about 900 images in right now, and about 30,000 to go <g> [12:47:46] <Morbus> Duesentrieb: well, if i can't do this, then I can't use MediaWiki. [12:48:01] <Duesentrieb> well, why do you want to use it? [12:48:04] <Morbus> MediaWiki can not be my primary interface for logic to filename. [12:48:26] <Morbus> i want everything a wiki does, but it's a movie site, so I have lots of images. [12:48:35] <Duesentrieb> Morbus: well... mediawiki supports plugable media store modules. [12:48:48] <Morbus> http://www.videounderbelly.com/wiki/Category:Posters_and_covers [12:48:54] <Morbus> don't browse the rest of the site. nsfw. [12:48:58] <Duesentrieb> so... if you have a media repository and want to access it through mediawiki, write an image store [12:49:02] <Morbus> the posters section is relatively tame though. [12:49:53] <Morbus> Duesentrieb: save for the filesystem, there's no "media store", per se. [12:50:22] <Morbus> filenames are created in a certain styled format. [12:50:24] <Duesentrieb> "media store" is whatever way you store your images. filesystem or no [12:50:30] <Morbus> http://www.videounderbelly.com/wiki/Special:Upload [12:50:31] <Morbus> some examples there. [12:50:38] <Duesentrieb> my point is: if you want full control over file names etc, make mediawiki use your logic [12:50:51] <Duesentrieb> or use mediawiki as the sole interface to mediawikis "native" store [12:51:01] <Duesentrieb> don't try to access the natove store "sideways". that's bound to break [12:51:04] <Morbus> that's not ideal for me. becuase it needs to work when i stop using mediawiki ;) [12:51:11] <Morbus> or whatever program i choose. [12:51:19] <Duesentrieb> err. that's the point [12:51:33] <Morbus> gotcha. [12:51:33] <Duesentrieb> make your own repository. make mediawiki use it. [12:51:56] <Morbus> so, if i wrote a media store module, mediawiki would create URLs for each image in the store? [12:52:10] <Morbus> basically, i want everything mediawiki does not with images, just wikipaths need to map to diskpaths. [12:52:13] <Morbus> ;) [12:52:18] <Morbus> *does now [12:52:54] <Morbus> is there an example media store extension you could point me to? [12:52:57] <Duesentrieb> yea. and that is probably already the case. the question is basically who controls the mapping, you or some mediawiki developer# [12:53:07] <Duesentrieb> if you use "our" store, things can simply change suddenly [12:53:24] <Duesentrieb> if you use your won, you have full control. even if your own implementation for now is simply a copy of "ours". [12:53:27] <Morbus> well, honestly, i don't mind writing some crap-ass hack that i run every so often. [12:53:42] <Morbus> db queries, force renames, clear cache, blah blah. [12:53:50] <Morbus> it's not forward thinking, certainly. [12:53:56] <Morbus> but probably "easier" for me than writing a media store. [12:54:02] <Morbus> i've only wrote one mediawiki extension before. [12:54:09] <Morbus> i'm by no means skilled at mediawiki coding. [12:54:16] <CIA-53> 03werdna * r36730 10/trunk/extensions/CentralAuth/ (CentralAuth.i18n.php CentralAuth.php SpecialCentralAuth.php): Add shortcut "lock and hide" method for Special:CentralAuth [12:54:24] <Morbus> ah, interesting. [12:54:28] <Duesentrieb> i havn't looked into how complex the store stuff is. if you built on top of existing code, it should be pretty simple [12:54:34] <Duesentrieb> but whatever [12:54:37] <Morbus> so, i could just copy MW's current store, and, upon Image: update, rename the file on disk? [12:54:48] <Morbus> and clear the cache. [12:54:58] <Duesentrieb> sure. well, i assume it actually does that already, but i'm not sure [12:55:12] <Duesentrieb> again, the point is only who controls the mapping [12:55:15] <Duesentrieb> you or us. [12:55:42] <Duesentrieb> you can hack your stuff to somehow match mediawiki's way of storing things [12:55:51] <Morbus> i'm not running a 1.12 yet. can i test an image upload on mediawiki.org and try to rename it, then use Special:Filepath to see if it renamed the image? [12:55:59] <Duesentrieb> or you can write a plugin to mediawiki that does things your way [12:56:11] <Duesentrieb> yes you can [12:56:13] <Morbus> ty [12:56:17] <Duesentrieb> well, try test.wikipedia.org [12:56:49] <Morbus> mmkay [12:57:23] <Morbus> hah. can't upload images there. [12:58:03] <FunPika> ? [12:58:12] <FunPika> you mean on test.wikipedia.org? [12:58:24] <Morbus> yeah. "Jump to: navigation, search [12:58:24] <Morbus> The action you have requested is limited to users in one of the groups Autoconfirmed users, Administrators." [12:58:29] <Morbus> just confirmed the account email. [12:58:38] <FunPika> just register and wait 4 days [12:58:46] <Werdna> FunPika: what do you think of the extension? [12:59:20] <FunPika> A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: [12:59:22] <FunPika> (SQL query hidden) [12:59:24] <FunPika> from within function "SpecialAbuseFilter::showList". MySQL returned error "1051: Unknown table 'abuse_filter' (localhost)". [12:59:29] <FunPika> That happened on Special:AbuseFilter [12:59:45] <Werdna> yes, you need to svn up, then run install.php again [13:00:50] <Morbus> Duesentrieb: hrm. either i can't see the Rename/Move functionality on mediawiki.org, or it's not enabled for mya ccess. [13:01:15] <FunPika> didn't work [13:01:17] <Duesentrieb> oh... it may be disabled for new users. it is limited that way on many wikipedias. [13:01:27] <Morbus> i've been on mw.org for a while. [13:01:28] <FunPika> ttw_abuse_filter exists [13:01:34] <FunPika> already [13:01:35] <Werdna> ah [13:01:41] <Werdna> that's weird [13:01:44] <Duesentrieb> Morbus: that limit is per wiki [13:01:45] <Morbus> since january, at least. [13:01:45] <FunPika> its as if its asking for a prefixless table [13:01:59] <Werdna> it shouldn't be, I'm using the proper methods [13:02:05] <Duesentrieb> Morbus: oh, you are trying mediawiki.org? [13:02:21] <Morbus> Duesentrieb: yeah. after testing didn't work impatiently ;) [13:02:23] <Morbus> http://www.mediawiki.org/wiki/Image:Picture_3.png [13:02:42] <Werdna> $res = $dbr->select( array('abuse_filter', 'abuse_filter_action'), 'abuse_filter.*,group_concat(afa_consequence) AS consequences', array( ), __METHOD__, array( 'LIMIT' => 100, 'GROUP BY' => 'af_id' ), [13:02:43] <FunPika> part of the error does say "Unknown table 'abuse_filter' " and there is no sign of a prefix in there [13:02:46] <Werdna> array( 'abuse_filter_action' => array('LEFT OUTER JOIN', 'afa_filter=af_id' ) ) ); [13:02:56] <Werdna> yeah, but that's the line which checks the database. [13:02:59] <Werdna> ohhhh [13:03:06] <Werdna> 'abuse_filter.*,group_concat(afa_consequence) AS consequences' [13:03:23] <Duesentrieb> Morbus: uh, i don't see it either [13:03:35] <Duesentrieb> Werdna: sure image moving was implemented? i see no way to do that [13:03:40] <Morbus> maybe it was removed in 1.13 alpha ;) [13:03:53] <Duesentrieb> maybe it never went live at all [13:04:04] <Duesentrieb> maybe it's an option [13:04:27] <Duesentrieb> ah, there we go [13:04:28] <Duesentrieb> $wgAllowImageMoving = false; [13:04:32] <Duesentrieb> Morbus: ---^ [13:04:43] <Morbus> !wgAllowImageMoving [13:04:43] --mwbot-- I don't know anything about "wgallowimagemoving". [13:04:45] <Morbus> !w gAllowImageMoving [13:04:45] --mwbot-- http://www.mediawiki.org/wiki/gAllowImageMoving [13:04:47] <Morbus> !wg AllowImageMoving [13:04:47] --mwbot-- http://www.mediawiki.org/wiki/Manual:%24wgAllowImageMoving [13:04:52] <Morbus> sorry [13:04:52] <FunPika> Also <abusefilter> and <abuselog> appears on Special:SpecialPages [13:05:09] <CIA-53> 03werdna * r36731 10/trunk/extensions/AbuseFilter/SpecialAbuseFilter.php: Respect DB prefixes in query. [13:05:26] <Morbus> Duesentrieb: ooh, yes. [13:05:28] <Morbus> http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/filerepo/LocalFile.php?r1=34169&r2=34168&pathrev=34169 [13:05:31] <Morbus> does look like it renames files too [13:06:03] <Morbus> this is quite helpful. thanks [13:07:03] <CIA-53> 03werdna * r36732 10/trunk/extensions/AbuseFilter/AbuseFilter.i18n.php: Give special pages names on Special:Specialpages [13:07:09] <Werdna> FunPika: fixed [13:07:25] <Werdna> (both) [13:07:56] <Hoxzer> Do you guys know a program to enable internet radio in S60v2 (6630) phone? I found "S60 internet radio" but I don't see any way to add custom urls O_o which I think is a vital feature [13:08:37] <Duesentrieb> Hoxzer: uh, that question seems to be VERY offtopic. [13:08:38] <CIA-53> 03yaron * r36733 10/trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php: [13:08:38] <CIA-53> Removed most "0_7" (SMW-0.7-compatible) versions of functions, except for [13:08:38] <CIA-53> sffGetAllPagesForProperty_0_7(), which was renamed sffGetAllPagesForProperty_orig(); [13:08:38] <CIA-53> replaced "SMW_STRCOND" constants with new constants [13:08:50] <Duesentrieb> Hoxzer: perhaps read the channel topic :) [13:09:50] <Hoxzer> duh [13:13:13] <Nikerabbit> hello [13:13:51] <CIA-53> 03yaron * r36734 10/trunk/extensions/SemanticForms/includes/SF_FormClasses.inc: [13:13:51] <CIA-53> Removed SMW-0.7-specific code, removed automatic lowercasing of template [13:13:51] <CIA-53> field names that happens in CreateForm page [13:14:00] <CIA-53> 03nikerabbit * r36735 10/trunk/extensions/Invitations/ (4 files): * Coding standards, plural for two messages [13:14:32] <CIA-53> 03yaron * r36736 10/trunk/extensions/SemanticForms/includes/SF_AutocompleteAPI.php: sffGetAllPagesForProperty_0_7() replaced with sffGetAllPagesForProperty_orig() [13:15:09] <CIA-53> 03nikerabbit * r36737 10/trunk/extensions/Invitations/Invitations.i18n.alias.php: * Alias files [13:15:25] <wikibugs> 03(mod) 125M memory limit exhausted when editing nearly empty page - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13233 (10maxsem.wiki) [13:15:26] <CIA-53> 03yaron * r36738 10/trunk/extensions/SemanticForms/includes/SF_FormInputs.inc: sffGetAllPagesForProperty_0_7() replaced with sffGetAllPagesForProperty_orig() [13:16:54] <CIA-53> 03yaron * r36739 10/trunk/extensions/SemanticForms/includes/SF_TemplateField.inc: Removed setTypeAndPossibleValues_0_7() (part of general removal of SMW-0.7-compatible code) [13:17:01] <Werdna> FunPika: any more troubles? [13:17:10] <FunPika> haven't seen any yet [13:17:15] <Werdna> good-o [13:17:22] <Werdna> I need to document the damn thing :P [13:19:05] <CIA-53> 03yaron * r36740 10/trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc: Removed SMW-0.7-specific code [13:20:10] <CIA-53> 03yaron * r36741 10/trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php: Removed replacement of spaces with underlines in query string of #formlink function [13:20:45] <Nikerabbit> someone needs to write archiver extension for talk pages [13:21:54] <MinuteElectron> you could use liquid threads instead? [13:22:28] <CIA-53> 03yaron * r36742 10/trunk/extensions/SemanticForms/specials/ (SF_CreateProperty.php SF_CreateTemplate.php): Removed SMW-0.7-specific code [13:23:05] <Nikerabbit> MinuteElectron: kidding? does it really work? [13:23:09] <CIA-53> 03yaron * r36743 10/trunk/extensions/SemanticForms/INSTALL: New version, 1.2.5: now requires SMW 1.0 or higher [13:23:25] <MinuteElectron> Nikerabbit: I've seen it work, not sure if it still does. [13:23:36] <Nikerabbit> I'd like to have something that is maintained [13:23:52] <MinuteElectron> No, not kididng; it might be worth a try - although you'd need someone on hand to fix stuff I suspect... [13:23:57] <MinuteElectron> true [13:25:39] <Nikerabbit> there really should be at least one active wiki listed for each extension... [13:25:57] <Nikerabbit> it's not fun to go fixup some extension if it may be totally unused [13:27:57] *^demon kicks CIA-53 [13:27:57] <CIA-53> ow [13:29:15] *Nikerabbit kicks ^demon [13:29:41] *^demon throws a stick at Nikerabbit [13:29:47] <Nikerabbit> what's wrong? [13:30:02] <^demon> Nothing, why? [13:34:47] <Werdna> Full details on the new extension: http://www.mediawiki.org/wiki/Extension:AbuseFilter [13:35:53] <CIA-53> 03demon * r36744 10/trunk/phase3/ (4 files in 3 dirs): Localize Virus scanner messages. [13:38:00] <CIA-53> 03simetrical * r36745 10/trunk/phase3/ (RELEASE-NOTES docs/hooks.txt): Update RELEASE-NOTES and hooks.txt for r36692. Contrary to the commit message, the AbortMove hook seems not to have been changed, so I didn't mention that. [13:43:16] <Nikerabbit> ^demon: wrapWikiMsg? [13:44:53] <Nikerabbit> like $wgOut->wrapWikiMsg( '<div class="error">$1</div>, array( 'virus-badscanner', $wgAntivirus ) ); [13:45:02] <Nikerabbit> if you can add a variable to the message [13:48:30] <^demon> Nikerabbit: Fixing. [13:50:18] <CIA-53> 03demon * r36746 10/trunk/phase3/ (2 files in 2 dirs): wrapWikiMsg() instead of doing it raw. [14:08:55] <CIA-53> 03jojo * r36747 10/trunk/extensions/Collection/ (4 files in 2 dirs): Generalize code to allow other output formats than just PDF. Includes fix for problem with pdfserver.py on Windows, reported by kometa_triatlon. [14:10:16] <wikibugs> 03(mod) AntiSpoof should return more than one result - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12232 (10tylerromeo) [14:11:16] <wikibugs> 03(mod) AntiSpoof should return more than one result - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12232 (10tylerromeo) [14:13:15] <wikibugs> 03(mod) Admins should be asked for confirmation when Antispoof applies - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13426 +comment (10tylerromeo) [14:17:19] <Nikerabbit> ugh [14:17:22] <Nikerabbit> BOM in patch [14:20:10] <Duesentrieb> does JS have a way to dump a structure to a string? basically, get a json string from a js structure? [14:21:42] <zocky> Duesentrieb, there are functions for that. it's not very hard to write one [14:21:52] <zocky> it really only works properly for arrays, though [14:22:27] <zocky> actually, for objects too [14:22:43] <zocky> you need to filter out the non-scalar values [14:22:56] <zocky> i.e. not try to encode functions [14:23:14] <Duesentrieb> zocky: huh? why would i need to do that? js is fully introspective. [14:23:27] <Inez> hi [14:23:34] <Duesentrieb> i mean, i only need arrays, but... what should prevent me from using complex nested objects? [14:23:37] <Inez> Is there Robert Stojnic? [14:23:46] <zocky> Duesentrieb, because you probably don't want to encode functions :) [14:24:22] <Duesentrieb> zocky: even that works. but i probably wouldn't want to. so that means i would filter out functions, not all non-scalars. [14:24:27] <zocky> of course you do it recursively [14:24:32] <Duesentrieb> i.e. include scalars, arrays and objects [14:24:38] <zocky> yeah, that's what I meant [14:24:48] <Duesentrieb> well "non-scalars" includes arrays and objects [14:25:05] <zocky> yeah, yeah [14:25:32] <Duesentrieb> hrm. i wonder if mediawiki already has a function for this... [14:25:36] <jMCg> Strings? [14:25:42] <zocky> anyway, catch any exceptions, in case you want to export any built-in objects [14:26:14] <zocky> i had weird exceptions thrown up when i tried to do for (i in builtInObject) [14:27:39] <Duesentrieb> bah. i really only need to encode a simple list :/ [14:28:46] <CIA-53> 03rotem * r36748 10/trunk/phase3/ (4 files in 2 dirs): [14:28:46] <CIA-53> * Not optional messages. [14:28:46] <CIA-53> * Reorganizing the messages in messages.inc. [14:28:46] <CIA-53> * Update for he. [14:31:02] <CIA-53> 03shinjiman * r36749 10/trunk/phase3/languages/messages/ (4 files): Localisation updates Cantonese, Chinese and Old/Late Time Chinese [14:32:59] <Th3Nom4D> hi everyone [14:33:42] <CIA-53> 03rotem * r36750 10/trunk/extensions/CentralAuth/CentralAuth.i18n.php: Update for he. [14:39:06] <Th3Nom4D> is there anyway to disallow acces to one of my pages by user [14:39:15] <Th3Nom4D> I mean depending of the group a user belongs [14:47:33] <Duesentrieb> !access | Th3Nom4D [14:47:33] --mwbot-- Th3Nom4D: For information on customizing user access, see <http://www.mediawiki.org/wiki/Manual:User_rights>. For common examples of restricting access using both rights and extensions, see <http://www.mediawiki.org/wiki/Manual:Preventing_access>. [14:47:57] <Duesentrieb> Th3Nom4D: there are some attempts to allow this per page, but doing it per namespace makes more sense to me [14:48:02] <Duesentrieb> (which is why i wrote Lockdown) [14:48:24] <Th3Nom4D> Ok, thanks [14:48:34] <Duesentrieb> Th3Nom4D: note that most extensions that provide access control are proken in 1.12 or require a patch. this will be fixed in 1.13 [14:49:56] <Th3Nom4D> ok ok. I think it will be enough using read permission (I hope ;)) [15:01:22] <wikibugs> 03(mod) Namespace selection via checkboxes on Special: Watchlist instead of drop down - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14658 summary (10danny.b) [15:01:50] <Th3Nom4D> Duesentrieb: Just one more question. I have disallowed a group from viewing anything with the $wgGroupPermissions. I can "White List" some pages with $wgWhitelistRead, but haven�t seen any option to do this for a specific group. My intention is disallow everything for this group and just give it access to certain pages (I thought it could be done through the options I have told you) [15:02:58] <Werdna> !readonly [15:02:58] --mwbot-- http://www.mediawiki.org/wiki/Manual:%24wgReadOnly [15:03:18] <wikibugs> 03(mod) limit=50 on RC gives count set in preferences, not 50 - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14659 summary (10danny.b) [15:06:34] <CIA-53> 03demon * r36751 10/trunk/phase3/includes/db/ (DatabaseMssql.php DatabaseOracle.php DatabaseSqlite.php): Add no-ops for the (un)lock functions. [15:06:54] <Duesentrieb> Th3Nom4D: no it can't, and generally, you disallow for everyone and then grant rights to specific groups. however, mediawiki was not designed with this type of restrictive permissions in mind, especially not for read permissions. [15:07:09] <Duesentrieb> mediawiki is not a cms, and not intended for "enterprise use". [15:07:36] <Duesentrieb> it's designed for being as open as possible, for large scale cooperation, where everyone can do everything [15:08:33] <wikibugs> 03(FIXED) enhancement of languageConverter - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14604 +comment (10shinjiman) [15:09:05] <Th3Nom4D> Duesentrieb: ohhhh :(. So this doesn not fit my needs. Do you know of any other wiki that provides this? [15:09:34] <Duesentrieb> havn't looked into other engines to much, but there's a big comparison on wikipedia [15:09:42] <vous> ah, you are there [15:09:55] <vous> i'm the one with the blank page [15:10:02] <Duesentrieb> i'm about to go, actually :) [15:10:09] <vous> oh [15:10:17] <vous> i did the same thing local [15:10:20] <vous> on my pc [15:10:27] <vous> and there are no problems [15:10:33] <Th3Nom4D> Duesentrieb: thanks a lot mate [15:10:57] <vous> but on this server, there's a blank page [15:11:33] <vous> i checked the apache log [15:11:34] <Duesentrieb> Th3Nom4D: http://www.opensourcecms.com/index.php?option=content&task=view&id=388&Itemid=143 [15:11:43] <vous> there isn't any error [15:11:51] <Duesentrieb> vous: sorry, i have no clue. [15:12:00] <vous> ok [15:12:15] <vous> what server settings must be set? [15:12:19] <Duesentrieb> if it works for you but doesn't work on the server, ask an admin there. [15:16:31] <vous> kann es sein, dass vielleicht der Memory Limit zu gering ist, Duesentrieb ? [15:16:50] <Duesentrieb> kann. sollte aber im log auftauchen [15:17:09] <Duesentrieb> kann übrigens sein, dass php nicht in apache's log schreibt [15:17:16] <Duesentrieb> das kannst du auch 'nen admin fragen [15:17:39] <vous> ich kann den memory limit in der localsettings.php doch festlegen, oder? [15:18:13] <vous> soll ich mal ausprobiern den runter zu schrauben? [15:18:47] <Duesentrieb> probieren kann man das [15:18:50] <Duesentrieb> so, ich bin weg [15:18:51] <Duesentrieb> bbl [15:18:53] <vous> ok [15:19:00] <vous> bb [15:31:06] <wikibugs> 03(mod) Extension Makebot is obsolete; should be removed - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14156 (10maxsem.wiki) [15:32:15] <vous> hi [15:32:20] <vous> anybody there? [15:32:28] <vous> I get this error: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 57 bytes) in /srv/www/htdocs/web251/html/mediawiki-1.11.2/includes/ParserOptions.php on line 84 [15:32:35] <vous> what does it mean? [15:32:43] <vous> is the memory limit to low? [15:33:08] <dungodung> yes [15:34:05] <wikibugs> 03(NEW) If two users do a rollback simultaneously, two equal revisions are the result - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14662 15enhancement; normal; MediaWiki: General/Unknown; (Wiki.Melancholie) [15:36:27] <CIA-53> 03jojo * r36753 10/trunk/extensions/Collection/ (Collection.body.php pdf-server/pdfserver.py): introduce timeout again. instead do not wait for mw-zip/mw-render to return (even with --daemonize) but spawn new processes and return from CGI script immediately. [15:38:37] <wikibugs> 03(mod) Undo should automatically be a minor edit like rollback - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=11599 +comment (10Wiki.Melancholie) [15:39:06] <Tom-Servo> Mediawiki's "Group Based Access Control" page says if I want per-page access restrictions I'd need to install a content management package. Anyone have any suggestions on which one to use? [15:50:44] <moshe> im having problems installing texvc [16:15:47] <Werdna> Dantman|FS: when does brion usually come on? [16:17:24] <Dantman|FS> No clue... I always have issues contacting him [16:17:33] <Werdna> maybe he's avoiding you [16:17:37] *Werdna sends Dantman|FS away. [16:17:37] <Dantman|FS> >.< Cept when I don't need him arround [16:18:30] <Werdna> o luk [16:18:32] <Werdna> a VasilievVV [16:19:40] <VasilievVV> hi Werdna [16:20:55] <VasilievVV> Werdna: can your parser parse expressions like "2 + 2"? [16:21:16] <Werdna> VasilievVV: nope [16:23:10] <wikibugs> 03(NEW) Tabs linking to a nonexisting talk (or content page) do not use redlink=1 - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=14663 minor; normal; MediaWiki: User interface; (mormegil) [16:23:18] <VasilievVV> Werdna: we should be very careful with "degroup" action. Otherwise, someone malicious will just add a condition that matches every change and desysop all sysops in that way [16:23:26] <VasilievVV> Are automatical desysops logged? [16:23:46] <wikibugs> 03(mod) Tabs linking to a nonexisting talk (or content page) do not use redlink=1 - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14663 (10mormegil) [16:23:58] <Werdna> VasilievVV: in the abuse log. [16:24:04] <VasilievVV> $blockPeriod = (int)mt_rand( 3*86400, 7*86400 ); // Block for 3-7 days. [16:24:08] <Werdna> I'm thinking that will be disabled on mediaWiki. [16:24:10] <VasilievVV> I really like that code [16:24:28] <VasilievVV> You meant Wikimedia? [16:27:53] <Werdna> yeah [16:28:00] <Werdna> the auto-desysop one. [16:29:28] <VasilievVV> Werdna: will antivandal rules be public on Wikimedia? [16:30:14] <Werdna> VasilievVV: I hope not [16:34:10] <CIA-53> 03jojo * r36754 10/trunk/extensions/Collection/pdf-server/ (pdfserver.py tests.py): adjust unittest. encoding fixes (only relevant for unittest) [16:36:11] <Werdna> VasilievVV: CTCP REPLY TOOLATE [16:40:13] <moshe> some1 here knows how to install texvc [16:40:13] <moshe> ? [16:40:22] <moshe> on linux [16:42:04] <VasilievVV> Werdna: ? [16:42:21] <Werdna> VasilievVV: you TIME'd me [16:42:29] <VasilievVV> Ah [16:43:01] <VasilievVV> Then you may go asleep :) I'll be coding following 2 hours [16:43:16] <Werdna> I'm waiting for brion. [16:47:08] *Werdna om nom nom ^demon [16:47:35] <VasilievVV> Werdna: I haven't seen him for a long time [16:47:50] <Werdna> O RLY? [16:47:54] <Werdna> I emailed him early in the week [16:48:28] <VasilievVV> He commited nothing this week :( [16:48:37] *^demon glances at Werdna, then goes back to checking his e-mail [16:48:38] <Werdna> O RLY? [16:48:38] <MinuteElectron> He's at a wiki conference. [16:48:46] <Werdna> O RLY? [16:48:48] <Simetrical> You know, aren't we using boatloads of unnecessary memory by loading the messages files? [16:48:49] <MinuteElectron> So is Tim, I believe. [16:48:56] <Werdna> O RLY? [16:48:56] <Simetrical> We used to just initialize the database and retrieve as needed. [16:49:01] <Simetrical> Werdna, YA RLY. [16:49:03] <Werdna> okay, I'll go away [16:49:05] <Werdna> :) [16:49:06] <Werdna> hey Simetrical [16:49:28] <MinuteElectron> Simetrical: Sure, but the old way doesn't easily update automatically when messages are changed. [16:49:38] <MinuteElectron> I mean, the defaults, of course. [16:51:05] <Werdna> Simetrical: why don't we split message files by function [16:51:09] <Werdna> have a set of 'core' messaegs [16:51:18] <Simetrical> MinuteElectron, well, we had update.php do that. [16:51:23] <Werdna> and then put them in groups, and disperse them throughout languages/messages. [16:51:33] <Simetrical> Werdna, I was thinking that we should do that, but not split up the message files, have them grouped in memcached. [16:51:44] <Werdna> yay memcached. [16:51:47] <Simetrical> So every message that's used on each request gets grabbed in one memcached hit. [16:51:57] <Simetrical> Or one DB hit, or APC hit, or whatever the cache is. [16:52:02] <MinuteElectron> Simetrical: Sure, but its annoying top have to do that every time one message is changed - especially as a developer. [16:52:05] <Simetrical> Rather than getting them one by one. [16:52:06] <Werdna> the solution to all of our "We don't want a query per-pageview, but we do want to store data persistently" problems./ [16:52:09] <MinuteElectron> Simetrical: That also doesn't work very well for extensions. [16:52:19] <Werdna> sure it does. [16:52:34] <Simetrical> MinuteElectron, okay, so minor upgrade nuisances, fine. [16:52:45] <Simetrical> IIRC, that's not why we did it. Didn't we start using the message files for performance somehow? [16:52:51] <Werdna> $wgMemc->get( wfMemcKey( 'messages-extension-AbuseFilter' ) ); [16:53:17] <MinuteElectron> A hashtable style cache would solve most of the memory problems anyway, no? [16:53:20] <Simetrical> Werdna, no, that forces getting all of them for every view, if any one is needed for every view. [16:53:27] <Simetrical> MinuteElectron, that's called memcached. [16:54:01] <Werdna> Simetrical: yeah, but if you're loading the extension at all, it'd only be if you were viewing a specialpage or something. [16:54:04] <Simetrical> What would actually solve a lot of memory problems is if PHP processes could actually share memory. [16:54:06] <Werdna> group them by when they're needed. [16:54:12] <Simetrical> Werdna, well, in your case, maybe. [16:54:39] <Werdna> This would be overkill for abusefilter, but you could have a set of messages that need to be loaded if a filter matches, a set for each special page offered, etc. [16:54:56] <Simetrical> Anyway, it seems to me like every single process copies hundreds of kilobytes of messages into its private memory on every single request. [16:55:17] <Werdna> correct. [16:55:20] <Simetrical> That should be in persistent shared memory of some kind. [16:55:26] <Werdna> probably. [16:55:29] <Simetrical> Don't we do something funky for interwikis? [16:55:44] <Werdna> I don't want to know :P [16:56:01] <Simetrical> Domas once said we do, because the interwiki map is like 20 MB or something. [16:56:11] <Werdna> mmm [16:56:12] <Simetrical> And at one time it got called from memcached. On every request. [16:56:16] <Werdna> haha [16:56:22] <Werdna> that is.. amusing. [16:56:33] <Simetrical> Now I think it's configured to be stored in a special file somewhere on each Apache and manually updated somehow. [16:56:42] <Werdna> possibly. [16:56:47] <Simetrical> But not by default. [16:56:53] <Werdna> right [16:56:56] *Werdna has to go to bed. [16:56:58] <Werdna> it's like 3am [16:57:00] <Simetrical> This all came up because I complained to domas that my local wiki was running like 50 interwiki queries per request. [16:57:11] <Werdna> and I should proobably go to sleep, since brion's not going to be on. [16:57:26] <MinuteElectron> Simetrical: There's some special configuration, apparently; someone was talking about it earlier today or yesterday. [16:57:36] <MinuteElectron> [for interwiki] [16:57:40] <wikibugs> 03(mod) Request for AntiSpoof to be Database Agnostic - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14660 (10overlordq) [16:58:08] <Simetrical> Argh, the www-style list has Reply-To set up incredibly annoyingly. Hitting "Reply" replies to the individual, not the list. [16:58:09] <Werdna> Simetrical: while you're here, on AbuseFilter, the reason it's better than a bot is because it can do far nicer, softer block options. It can warn users before they submit, it can disable autoconfirmed for them, and so on. It also has the ability to prevent edits from occurring, rather than reacting to them. [16:58:17] <Werdna> night. [16:58:39] <Simetrical> Bots can warn users, bots could disable autoconfirmed if that were written, same for "and so on". [16:59:01] <Werdna> mmm.. a software solution is much better [16:59:07] <Simetrical> Preventing edits is exactly what we *don't* want, transparency-wise, because then nobody knows what happened. Better to revert so it's easy to see what's being filtered. [16:59:09] <Werdna> and doesn't rely on somebody else. [16:59:16] <Werdna> Simetrical: that's why we have an abuse log. [16:59:18] <Simetrical> Software solutions are good for some things, not for everything. [16:59:20] <Werdna> which logs all details. [16:59:28] <Simetrical> Which is not as readily accessible as edits. By design. [16:59:42] <Werdna> maybe that's a good thing. [16:59:47] <Simetrical> Maybe not. [16:59:56] <Werdna> we hardly want this kind of thing exposed to the public: [17:03:47] <^demon> Simetrical: I'm redoing the various db lock functions like you suggested. Makes much more sense to do it that way. [17:04:11] <Simetrical> ^demon, there are probably a lot of others that should do the same, things like handling of force index and whatnot. [17:04:32] <Simetrical> Didn't used to make much of a difference, with only one other database class. [17:04:58] <Simetrical> Werdna, almost everything should be exposed to the public. For everything else, there's oversight. [17:05:09] <Simetrical> (or just deletion, depending on how much exposed-to-the-public is a problem) [17:05:17] <^demon> Yeah. I'll do the locks now, and then look for any others that could probably be redone. [17:06:17] <Simetrical> ^demon, make sure nothing relies on Database == DatabaseMySQL, though. [17:06:37] <Simetrical> Actually, best to make the Database class abstract, once you make sure. [17:06:38] <Simetrical> To be certain that nothing relies on it. [17:06:47] <Simetrical> Because if Database is directly instantiated you'll have some problems, I guess. :) [17:06:48] <CIA-53> 03demon * r36755 10/trunk/phase3/includes/db/ (5 files): Refactoring (un)lock. All the subclasses are currently returning true, except for mySQL. Makes more sense to put the no-op in the parent class then just subclass it as needed. Other things could maybe do this too. [17:11:13] <wikibugs> 03(mod) Hide confusing 'move'-tab on user page - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14592 (10N/A) [17:11:27] <ds5> G-Stream TV. TV for gamers: http://www.warcraftstream.com/gstream.php [17:16:18] <wikibugs> 03(mod) Hide confusing 'move'-tab on user page - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14592 (10innocentkiller) [17:26:03] <wikibugs> 14(DUP) Restrict user page moving - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13883 +comment (10innocentkiller) [17:26:09] <wikibugs> 03(mod) Hide confusing 'move'-tab on user page - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14592 +comment (10innocentkiller) [17:28:52] <^demon> Am I the only one who things wfShowingResults and wfShowingResultsNum are rather useless as global functions? [17:42:33] <AzaTht> en.wikiquote are still using qif... [17:42:48] <AzaTht> no one maintaining that part of the web? [17:42:57] <wikibugs> 03(mod) AntiSpoof should return more than one result - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12232 +comment (10overlordq) [17:43:28] <AzaTht> and yea, it's using the original version, not even a #if wrapper [17:46:59] <dmulter> any chance the MediaWiki team would be willing to share the template and skin used for your internal Bugzilla at https://bugzilla.wikimedia.org/ ? [17:48:00] <dmulter> i also integrate a suite of open source tools with MediaWiki as the main app, and i would love to give all the tools a MW look. [17:55:51] <CIA-53> 03dale * r36756 10/branches/MetavidWiki-exp/MetavidWiki/includes/specials/MV_SpecialMediaSearch.php: updates for category autocomplete [17:56:46] <AtharHameed> Hi everyone. What's the best way to create a couple thousand pages in the wiki from a source database? [17:58:34] <Brad_> hi [17:59:02] <jlerner> AtharHameed: maintenance/importTextFile.php [17:59:04] <nakon> hello [17:59:20] <Brad_> I am a novice user who is trying to use the auto import script [17:59:33] <Brad_> but I can't exactly figure out where you imput the commands [17:59:41] <Brad_> a stupid question, i know [17:59:54] *SQLDb just finished that yesterday [18:00:09] <FunPika> you mean one of the maintenance scrpts? [18:00:32] <Brad_> yes, i wanted to automatically import some documents into my new wiki [18:00:38] <AtharHameed> jlerner: thanks [18:00:39] <SQLDb> Brad_: "php maintenance/importDump.php < dump_file.xml" ought to get you [18:00:42] <Brad_> and I take it that a script is the easiest way? [18:00:59] <FunPika> do you have shell access to your wiki? [18:01:06] <Brad_> yes [18:05:48] <Brad_> so how exactly do you run scipts [18:05:50] <Brad_> ? [18:08:09] <jlerner> you need to be comfortable with the unix shell (if on unix) [18:08:18] <jlerner> just like SQLDb wrote... [18:10:36] <wikibugs> 03(NEW) lack of alignment in watchlist marks - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14664 minor; normal; MediaWiki: Page rendering; (azatoth) [18:11:35] <wikibugs> 03(mod) Hide confusing 'move'-tab on user page - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14592 (10Simetrical+wikibugs) [18:18:42] <wikibugs> 03(mod) AntiSpoof should return more than one result - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12232 +comment (10sxwiki) [18:29:25] <wikibugs> 03(mod) Provide updated distributions of the custom templates - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=9025 (10david) [18:42:02] <Nikerabbit> hello [18:42:03] <Nikerabbit> what's up [18:42:17] <SQLDb> mornin Nikerabbit :) [18:44:56] <^demon> Nikerabbit: Just out of curiosity...timezone? You go to bed and then wake up during my day :-) [18:45:13] <Nikerabbit> ^demon: huh? [18:45:30] <Nikerabbit> I sleep only 7-10 hours [18:48:33] <^demon> Gotcha. [18:49:15] <tekmosis> ahoyhoy :O are there any good bots around that spider for plagiarism? [18:50:33] <Nikerabbit> tekmosis: teachers [19:05:24] <wikibugs> 03(NEW) Several tweeks for se.wikimedia.org - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14665 15enhancement; normal; Wikimedia: Site requests; (mickewiki) [19:08:37] <Subfader> any idea when 1.13 will be compiled and released? [19:10:30] <Nikerabbit> nope [19:11:48] <tekmosis> Nikerabbit, teachers? [19:12:21] <Nikerabbit> tekmosis: yeah I have heard they are pretty good in it [19:15:25] <Duesentrieb> i'm tempted to add the json support lib from http://www.json.org/json2.js to the core. any thoughts about this [19:15:47] <Duesentrieb> and if i do, should it alaways get loaded, or just sit around, to be referenced by extensions or gadgets that need it? [19:16:03] <Duesentrieb> (btw... whatever happened to brion?) [19:16:27] <tekmosis> Personally I would do the later. Some instances may not need it and would just be excess overhead [19:17:27] <Duesentrieb> well yea. but it could be argued that that's an argument for not having it in the core at all [19:17:36] <Duesentrieb> if nothing in the core code uses it, why have it there? [19:17:45] <Duesentrieb> but then, if multiple extensions could use it... [19:22:06] <tekmosis> meh, no real reason to add it in at the moment then if no extensions currently use it. Once a bunch of extensions utilize it then it'd probably be more ideal to include it [19:22:29] <wikibugs> 03(mod) lack of alignment in watchlist marks - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14664 (10danny.b) [19:25:24] <Lung> hi [19:25:33] <Lung> i have another really simple question [19:25:54] <Nikerabbit> Duesentrieb: mmm [19:26:00] <Nikerabbit> Duesentrieb: a bit similar to the cldr extension? [19:26:11] <Duesentrieb> huh? [19:26:29] <Duesentrieb> what's cldr? [19:26:30] <Lungs> how do I directly link to a file on my harddrive, on my local wiki? I just want to be able to click on the link and have the file open [19:27:01] <Duesentrieb> Lungs: uh... you mean if the wiki is running on your desktop comuter? [19:27:06] <Duesentrieb> +p [19:27:07] <Lungs> yes thats correct [19:27:09] <Nikerabbit> Duesentrieb: * An extension which provised localised language names for other extensions. [19:27:11] <Duesentrieb> !fileurl [19:27:11] --mwbot-- To allow local file:///xxx links, use $wgUrlProtocols[] = "file:"; See http://www.mediawiki.org/wiki/Manual:%24wgUrlProtocols for more information. Beware that several browsers do not allow file urls on pages loaded via http. Also note that most browsers do not support "remote file" urls like file://server/share [19:27:16] <Duesentrieb> Lungs: ---^ [19:27:42] <Duesentrieb> Nikerabbit: you mean i should make an extension that does nothing but provide a js file? [19:28:26] <Nikerabbit> Duesentrieb: no i'm just saying that there is an extension that is used by other extensions [19:28:48] <Lungs> hmm [19:28:49] <Duesentrieb> yea... [19:29:18] <Lungs> it seems like i should be able to link to local files on my machine, but firefox wont let me, I guess? [19:29:46] <Duesentrieb> Lungs: yep. though it can probably be made to, using some arcane setting or plugin [19:30:09] <Lungs> i see [19:30:14] <Duesentrieb> Lungs: for mediawiki, all you have to do is to add file:// as an allowed protocol prefix [19:32:12] <Lungs> but will firefox open the link? [19:32:23] <Duesentrieb> no. [19:32:27] <Duesentrieb> not without fiddeling [19:32:31] <Lungs> ok, i see [19:32:58] <Lungs> and where exactly do i add "file://"? [19:33:07] <Lungs> what document do I add that to [19:33:14] <VasilievVV> LocalSettings.php [19:34:19] <tekmosis> What would the best way be while using the ArticleSaveComplete hook to get the difference in byte size from what was previously there to what is being saved? [19:35:44] <Duesentrieb> Lungs: read again what mwbot told you, it includes the info where to add that. just follow the link. anyway... here's the full scoop for firefox: http://kb.mozillazine.org/Links_to_local_pages_don%27t_work [19:44:04] <CIA-53> 03ialex * r36757 10/trunk/extensions/FormPreloadPostCache/FormPreloadPostCache.php: E_STRICT [19:44:52] <ialex> oops [19:45:36] <CIA-53> 03btongminh * r36758 10/trunk/phase3/ (RELEASE-NOTES includes/templates/Userlogin.php): * Allow extensions to modify the user creation form by calling addInputItem(); [19:46:03] <CIA-53> 03ialex * r36759 10/trunk/extensions/FormPreloadPostCache/FormPreloadPostCache.php: Oops [19:49:56] <CIA-53> 03btongminh * r36760 10/trunk/extensions/AntiSpoof/ (AntiSpoof.i18n.php AntiSpoof.php): Only ignore the antispoof if the wpIgnoreAntiSpoof checkbox is set (fixes bug 13426) [19:51:08] <wikibugs> 03(FIXED) Admins should be asked for confirmation when Antispoof applies - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13426 +comment (10Bryan.TongMinh) [19:55:00] <neelaManga> hello friends [19:55:03] <wikibugs> 03(mod) Extension Makebot is obsolete; should be removed - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14156 +comment (10Bryan.TongMinh) [19:55:53] <neelaManga> how to make a web like this http://ml.web4all.in/index.php/Main_Page [19:55:55] <neelaManga> ? [19:56:06] <neelaManga> is it free? [19:59:08] <neelaManga> hello plz [19:59:37] <neelaManga> how to make a web like this http://ml.web4all.in/index.php/Main_Page [19:59:39] <neelaManga> ? [19:59:52] <tekmosis> download and install the MediaWiki software [20:00:21] <neelaManga> is it possible in windows? [20:00:42] <Subfader> it's not that easy if you never ran a website [20:00:57] <Duesentrieb> why would you want to run a website on windows? [20:01:11] <Mike_lifeguard> because that's what they have [20:01:21] <Subfader> hardcore :D [20:01:38] <Bryan> IRQ_LESS_OR_ZERO_EPIC_FAIL! [20:01:38] <tekmosis> Duesentrieb, because we all know IIS is the best webserver out there ;D [20:01:49] <Duesentrieb> Mike_lifeguard: on their computer at home. where you generally do not host websites. [20:02:26] <Mike_lifeguard> I'm just saying it's not totally insane [20:02:28] <Duesentrieb> neelaManga: look for some wiki hosting service. [20:02:33] <Mike_lifeguard> only mildly ;) [20:02:48] <Duesentrieb> Mike_lifeguard: it usually implies that people don't even know what hosting a website means :P [20:03:00] <Duesentrieb> which makes explaining things rather difficult [20:03:08] <Mike_lifeguard> that's possible too [20:03:17] <Subfader> you scared him now [20:04:01] <Subfader> neelaManga: you wanan run a wiki website on your home pc or online [20:04:17] <tekmosis> But we've only scraped the surface. There's still setting up LAMP, that's like the bulk of all the fun :D he can't get scared just yet! [20:04:56] <Subfader> it starts with unzipping gz for most [20:05:32] <Subfader> then seraching for the setup.exe [20:05:35] <neelaManga> in my home pc. [20:05:45] <Duesentrieb> tekmosis: XAMPP took the fun out of that one. but after getting through with that, try to set up dyndns... [20:06:02] <Duesentrieb> neelaManga: why do you want to run a website on your home pc? no one but you will be able to see it. [20:06:27] <Subfader> many ppl set a wiki at home instead of keeping stuff in hundreds of word files. [20:06:34] <Subfader> good for organizing and studiying [20:06:39] <Duesentrieb> neelaManga: and mediawiki isn't such a great choice as a personal wiki. it's built for massive collaboration. it has a lot of requirements [20:06:40] <neelaManga> ok in online; is it free? [20:07:07] <Duesentrieb> Subfader: yes, but mediawiki isn't such a good choice for that. and i have a personal (mediaiki) too, but it's a) online and b) i hack it do do what i want :) [20:07:08] <Subfader> you need a webhost [20:07:11] *Mike_lifeguard sees Duesentrieb's point... :| [20:07:30] <Duesentrieb> neelaManga: the software is free. good hosting isn't. though there are some "scrapbook" sites that let you set up a personal wiki for free. [20:07:54] <Duesentrieb> neelaManga: google for "free wiki hosting". [20:07:55] <Subfader> same here duesentrieb. but i started using wiki for studying issues on my pc then put it online for having access to it everywhere [20:08:13] <Duesentrieb> neelaManga: most will not use mediawiki, but play with some to get a feel for what you need & want [20:08:30] <neelaManga> thanks [20:08:54] <Duesentrieb> Subfader: well... do you thing for the average user, it's worth setting up XAMPP just to do that? instead of setting up a scrapbook wiki online somewhere, in five minutes? [20:09:29] <Subfader> never tried those. and yes, setting up xampp sucks. esp for the root login [20:10:04] <Duesentrieb> neelaManga: the free mediawiki hosting place is of course Wikia. they let you set up a scrapbook too. but wikia has several requirements, for content licensing, etc [20:10:14] <Duesentrieb> it's for community wikis, not really for personal wikis [20:10:47] <neelaManga> but it come with many ads. yea [20:11:44] <Duesentrieb> neelaManga: wikiahas many ads? it has some, but i never found them intrusive. but yes, most "free" stuff is financed using ads. try to find a place that doesn't abuse them too much. [20:13:22] <tekmosis> hmm when doing a rollback the ArticleSaveComplete hook gets called. Is there a way to tell if it's a rollback? I'm looking to exclude rollbacks [20:14:03] <Duesentrieb> uh... when i assign an array to a variable in php, does it copy the array, or only thereference? [20:15:47] <Duesentrieb> it copies the array. ugh. sucks in principle, though it's just what i need right now :=) [20:16:58] <tekmosis> Why not assign it by reference then? :O $var =& $array_var; or if it's a function, function test(&$var); and your function call would just be test($array_var); [20:19:32] <Duesentrieb> tekmosis: yes i know about that. i actually wanted a copy. it's just that since php5, objects are always assigned by reference. Why not arrays too? the inconsistency is irritating. [20:19:59] <Duesentrieb> also, php references are... odd. they are not what you expect. [20:20:53] <Duesentrieb> one peeve of mine (I haven't tried in php5 though): if $x contains some object, and you do $y =& $x, and then do $y = null, this *destroys* the object. you have to use unset($y). [20:26:37] <Splarka> quantum variable entanglement? [20:27:59] <Duesentrieb> Splarka: no, just the fact that =& creates an *alias*, not really a reference. [20:28:13] <Duesentrieb> or at least, used to [20:28:24] <Duesentrieb> suppoedly, stuff like this got better in php5 [20:28:51] <Splarka> an empathetic reference? [20:35:56] <CIA-53> 03btongminh * r36761 10/trunk/phase3/ (RELEASE-NOTES includes/api/ApiQueryCategories.php): Added clprop=timestamp to prop=categories [20:43:02] <Splarka> tekmosis: ArticleRollbackComplete is called right *after* that hook, if it is a rollback, not much help I suppose? [21:07:30] <wikibugs> 03(mod) Add "override-antispoof" right to accountcreator group. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14576 +comment (10alexfusco5) [21:08:15] <wikibugs> 03(mod) Add "override-antispoof" right to accountcreator group. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14576 (10alexfusco5) [21:08:28] <Juikn> Hi, I'm still having trouble getting my intranet wiki to open local files [21:09:01] <Juikn> I added $wgUrlProtocols[] = "file:"; to my localsettings.php [21:09:24] <Juikn> but the relevent sections in my wiki still appear as plain texts, not links [21:09:29] <Juikn> anyone have any ideas? [21:13:47] <vorex> does an extension exist for mediawiki for multisite support? [21:14:01] <vorex> like one installation/codebase for multiple wiki's [21:14:32] <tekmosis> !extensionmatrix [21:14:32] --mwbot-- http://www.mediawiki.org/wiki/Extension_Matrix [21:15:06] <vorex> didn't find anything there--was curious if anyone knew of one in development or anything [21:15:29] <tekmosis> search for "wiki farm" there's also an extension listed there called Farmer, which, may be what you want [21:15:49] <vorex> kk, ty [21:17:08] <Splarka> !farm [21:17:08] --mwbot-- To run multiple wikis, you can simply install MediaWiki in different folders, with different databases or in one with database prefixes. You can also have multiple wikis using a single installation: <http://www.mediawiki.org/wiki/Manual:Wiki_family> and <http://booleandreams.wordpress.com/2007/06/12/running-multiple-instance-of-mediawiki-on-the-same-server-using-the-same-source-code/>. [21:17:38] <Splarka> I don't think you really need an "extension" for to do that [21:18:46] <Juikn> anyone have ideas about opening local files? [21:18:47] <vorex> ah, was having problems finding that, thanks guys ;) [21:20:12] <jisatsu> is there a variable anywhere that indicates what OS the server is running? [21:23:03] <ialex> jisatsu: try php_uname( 's' ); [21:23:33] <jisatsu> aha, thanks :) [21:24:10] <Splarka> Juikn: you can't without editing the parser [21:24:30] <Splarka> $wgUrlProtocols[] is for external links, not external images [21:24:56] <Splarka> so http/https/ftp/irc/gopher/telnet/nntp/worldwind/mailto/news/file prefixes will change: [21:25:03] <Splarka> http://google.com [21:25:04] <Splarka> into [21:25:22] <Splarka> <a class="external" href="http://google.com">http://google.com</a> etc [21:25:42] <Splarka> the only protocols allowed for external images are http/https [21:25:58] <Nada> hello everyone, i have some questions about getting the mediawiki api to work , can anybody help? [21:28:48] <tekmosis> What's your Q, Nada? [21:29:35] <Nada> apparently, the api.php file is not installed. if we install that file, should we have api access, or is further server side work needed? [21:30:32] <Nada> or, is it possible somehow to install the api part separately of the rest of the mediawiki code? [21:31:54] <tekmosis> You should only just need to api.php [21:31:55] <tekmosis> !api [21:31:55] --mwbot-- The MediaWiki API provides direct, high-level access to the data contained in the MediaWiki databases. Client programs should be able to use the API to login, get data, and post changes. Find out more at http://www.mediawiki.org/wiki/API [21:32:03] <Bryan> Nada: it is unlikely to work [21:32:21] <Bryan> what version of MediaWiki are you using, 1.7.0 or something? [21:32:51] <Nada> I'm using 1.11.0 [21:33:15] <Bryan> that has api.php [21:33:38] <Bryan> you are probably either not looking in the right place or something went wrong during installation [21:33:46] <Nada> it seems that it wasn't installed, perhaps on purpose, so we're trying to figure out what we need to do to get it to work [21:34:12] <Bryan> you need api.php, the includes/api directory and have all api classes loaded in includes/AutoLoader.php [21:34:22] <Bryan> be sure that you grab the version corresponding to your wiki [21:34:36] <Nada> ok. That's what I was looking for. Thanks for your help! [21:35:25] <wikibugs> 03(NEW) Enable e-mail notifications on Bulgarian projects - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14666 15enhancement; normal; Wikimedia: Site requests; (b.manolov) [21:42:03] <katie> can someone tell me how to do an external hyperlink to a network location? (not internet, but to a network share ) [21:42:57] <Splarka> what URI protocol? [21:43:06] <katie> \\servername\share [21:43:46] <Splarka> well, you could try adding that to the $wgUrlProtocols array but it might break something X_X [21:44:12] <Splarka> http://www.mediawiki.org/wiki/Manual:$wgUrlProtocols [21:44:23] <Duesentrieb> !fileurl | katie [21:44:23] --mwbot-- katie: To allow local file:///xxx links, use $wgUrlProtocols[] = "file:"; See http://www.mediawiki.org/wiki/Manual:%24wgUrlProtocols for more information. Beware that several browsers do not allow file urls on pages loaded via http. Also note that most browsers do not support "remote file" urls like file://server/share [21:44:50] <katie> alright :-) thanks. [21:44:55] <Duesentrieb> basically, it's not hard to tell mediawiki to allow it. but unless you are using internet explorer, the browser won't. [21:45:07] <katie> so ff doesn't like them, huh? [21:45:07] <Duesentrieb> and even IE imposes restrictions, afaik [21:45:15] <Splarka> http://kb.mozillazine.org/Links_to_local_pages_don%27t_work [21:45:29] <Duesentrieb> katie: follow the links, it has more info on that, including a mozillazine article on the subject [21:45:33] <katie> darn. Well, I guess I'll just leave it for cut and paste then :-p [21:45:38] <Duesentrieb> (added that only a couple of hours ago) [21:45:47] <Splarka> heh [21:45:49] <Duesentrieb> katie: it can be done, but you need to tweak ff. [21:46:01] <Splarka> first thing I do when installing zilla, allow file:// links [21:46:17] <Duesentrieb> Splarka: o_O [21:46:20] <Duesentrieb> whatever for? [21:46:25] <katie> good to know [21:46:34] <Splarka> for <script> testing [21:46:56] <Duesentrieb> uh,i have apache runnign anyaway, so there's no need for that... [21:47:11] <Splarka> good for you [21:47:48] <Duesentrieb> well, if you donÄt, you are loading the html up from a file:// url already, no? [21:48:00] <Duesentrieb> in that case, ff will allow file:// urls in that page anyway [21:48:10] <Splarka> well, for example, testing ajax on a site [21:48:18] <Splarka> hard to do from a file:// (but possible........) [21:48:30] <Duesentrieb> hm, i guess [21:48:35] <Splarka> pref("capability.policy.default.XMLHttpRequest.open", "allAccess") [21:48:48] <Duesentrieb> that's a bit dangerous though :) [21:48:51] <Splarka> no shit [21:48:57] <Splarka> so I figured file:// was safer [21:49:06] <Duesentrieb> yes, probably [21:49:14] <Duesentrieb> i just never felt the need [21:49:46] <^demon> For what it's worth, $wgUrlProtocols[] = '\\\\'; doesn't work. [21:49:55] <Splarka> do you remember when domas told squid to ignore pragma-nocache for 5 minutes? [21:50:12] <Splarka> and it became totally impossible to purge css/js caches in a timeperiod less than 5 minutes? [21:50:22] <solifugus> Is it possible to modify the left menu in a wiki? [21:50:25] <Splarka> file:// was quite helpful there [21:50:28] <Splarka> !sidebar | solifugus [21:50:28] --mwbot-- solifugus: To edit the navigation menu on the left, edit [[MediaWiki:Sidebar]] using its special syntax. For more details, see <http://www.mediawiki.org/wiki/Manual:Interface/Sidebar>. [21:50:52] <Splarka> ^demon: it would be nice if / worked as well [21:51:13] <Splarka> [/w/index.php?title=foo&action=edit edit] to make <a href="/w/index.php?title=foo&action=edit"> [21:51:25] <Splarka> as a local absolute path instead of full URL [21:51:28] <^demon|food> Splarka: Yes it would, but it don't ;-) [21:51:34] <Splarka> same protocol, same server [21:51:44] <Splarka> well, gmax is pondering protocol URIs... [21:51:58] <Duesentrieb> Splarka: but that would trigger on any occurance of / [21:52:07] <Duesentrieb> not only inside [...] [21:52:13] <Splarka> dues: well, the code would obviously have to be changed [21:52:21] <Splarka> to only check for such links in [] [21:52:24] <^demon|food> Off to dinner I go. [21:52:31] <Duesentrieb> yea. well, adding file:// up front isn't so bad, is it? [21:52:36] <Splarka> and probably //:en.wikipedia.org/wiki/Foo type links too [21:53:05] <solifugus> Splarka: thanks! [21:53:08] <Splarka> well, file:// won't solve all such requirements [23:01:37] <wikibugs> 03(NEW) Missing side-scrolling for long string in narrow floating box - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14667 normal; normal; Wikimedia: General/Unknown; (dmacks) [23:28:53] <agro1986> Help: I need to add link tags to my HTML output file. I'm guessing we have to call the method addLink of class OutputPage, but on what class instance do we call it and when? Thanks [23:35:00] <wikibugs> 03(NEW) Special: ExpandTemplates choke on unselecting removal of comments - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14668 normal; normal; MediaWiki: Special pages; (azatoth) [23:50:01] <Mookie> My Semantic Calendar isn't displaying a very simple entry. I know the semantic data is getting inserted, and I believe the calendar extension is probably the problem. [23:59:50] <agro1986> Help: I need to add link tags to my HTML output file. I'm guessing we have to call the method addLink of class OutputPage, but on what class instance do we call it and where? Thanks