[00:06:30] What are the configuration variables related to bot api? [00:06:46] is there a way to define a textarea by means of pixels instead of rows / columns? in other words, how do you perfectly align a textarea with a different object? [00:07:12] use CSS to define width: ##px shuold work [00:07:41] naa doesn't pick up i'm afraid [00:08:27] DanielTahar, use CSS. [00:08:51] YurtleTheTurtle, look in includes/DefaultSettings.php for a list of all config variables, some documentation for each, and of course the default settings. [00:09:34] i am, it's not picking up. i'm not sure you're even theoretically supposed to be able to set a textarea pixel width, because of the cols / rows, but was wondering if anyone has any tips [00:11:12] What browser are you using? [00:11:16] firefox [00:11:45] DanielTahar, you can set a textarea width in whatever unit you want. You're doing it wrong. [00:11:55] If you have a link, I can tell you how exactly you're doing it wrong. [00:12:05] width? of course. has nothing to do with cols/rows [00:12:48] sorry, correction. it works fine in ie, but not in firefox; i have a CSS that defines the textarea; when changing fonts, colors etc. on it, it works fine; when adding "width: 500px", it works in IE, not in firefox [00:13:32] ah, that width [00:14:03] FF2 or 3? [00:14:46] 3 [00:15:18] DanielTahar, then you probably have a syntax error or other error that IE accepts and Firefox ignores. [00:15:24] Could you paste the code somewhere? [00:15:32] should work anyway ;). [00:15:41] try this in a plain html file locally: [00:15:41]
[00:15:41]
[00:15:41]
[00:15:49] if that works, then you're just doing it wrong ^_^ [00:15:54] ;) [00:15:54] well [00:16:12] thing is i can only do textarea class, because i'm using semantic forms [00:16:20] "Textarea class"? [00:16:24] are you putting it inline, in main.css, MediaWiki:Common.css, MediaWiki:Monobook.css ? [00:16:55] Can you link to your wiki? [00:16:59] textarea { width:500px; } <-- like that? [00:17:07] in common [00:17:07] try !important or higher specificity [00:17:09] well [00:17:30] if you say "I'm using .textarea" then Simetrical will hit you [00:17:37] the semantic forms thing allows me to create a field: {{{input|class=}}} [00:17:38] naa [00:17:48] heh [00:18:02] could it be a caching issue with common.css or something? [00:18:04] but you said "semantic" so flyingparchment will hit you anyway [00:18:16] well, yes, they are client side cached and server side cached [00:18:22] DanielTahar, yes, it could. Clear your client cache. [00:18:28] did you not hit ctrl-f5 in FF? [00:18:32] *Splarka hits DanielTahar! [00:18:40] (pet peeve) [00:19:43] yeah ofcourse [00:19:48] naa not a caching issue [00:22:42] Can you link to the wiki or not? [00:24:04] no sorry that's the prob [00:24:30] ok, here [00:24:31] [09:16:58] put that in a local html, and it will URLencode any input you give it [09:17:39] Splarka: you closed with div not form :) [09:18:04] *Splarka blinks, did, heh [09:18:11] replace with , bah [09:19:24] it doesn't encode spaces [09:19:31] or if yya wanna get fancy: [09:19:31] but I'll manage [09:19:33]


[09:19:55] well, it turns spaces into + [09:20:16] yes [09:20:23] %3CDor%3E%20but%20I'll%20manage [09:20:24] the second one is better [09:20:37] just a wrapper for encodeURIComponent() [09:20:43] :D [09:20:50] if you wanna do the same in mIRC... [09:20:54] http://p.defau.lt/?1vsVNFnJV72Lz37FaG6LiA this does something similar [09:21:06] I already have one for IRC [09:21:14] but it can't encode line breaks [09:21:24] because all commands are only one lines [09:21:30] mIRC* [09:22:05] works for me, you mean you can't input line breaks? [09:22:18] true [09:22:19] $chr(13) $+ $chr(10) (windows linebreak) [09:22:25] I know [09:22:29] mIRC also have $crlf [09:22:29] *Splarka shrugs [09:22:36] which is the same only shorter [09:22:47] $crlf = $chr(13) $+ $chr(10) [09:23:38] *Splarka nods [09:23:43] 03(mod) Use wfDebugLog instead of wfDebug by default - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14601 +comment (10dev) [09:25:34] okay [09:25:48] now all that's left is to fully understand the POST syntax [09:25:51] and then we're done [09:26:03] nut [09:32:40] 03(mod) Image move/rename doesn't work on live Wikimedia sites - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14745 (10Bryan.TongMinh) [09:35:54] http://en.wikipedia.org/w/index.php?title=Wood&oldid=224066992#Wood_in_Popular_Culture [09:38:39] 03btongminh * r37239 10/trunk/phase3/includes/filerepo/LocalFile.php: Remove the thumb moving coding all together since thumbs are purged anyway. This should also fix bug 14745. [09:40:13] 03(NEW) Bad extension URL for the ParserFunctions extension in Special:Version - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14747 trivial; normal; MediaWiki extensions: ParserFunctions; (emmanuel) [09:44:52] Splarka: heh [09:47:33] hallo, kann mir vielleicht einer sagen, wie ich mit dem wiki-code ein externes bild extern verlinke? als html würde das so aussehen: english please .... [09:49:29] hello, can anyone help me? I try to set a image as a hyperlink to an external website, no linking to the full image size [09:50:06] !imagelink [09:50:06] --mwbot-- Image linking is intentionally not supported in MediaWiki, so access to the image's description page is always available. If you need image links, see for methods and information. One way to achieve this is . [09:50:29] Extension:Click also does it [09:50:32] note that most of the extensions mentioned there won't work for your purposes, unless you add the external website to your interwikis [09:50:51] the laziest method is to allow "external" images, which transforms a bare image URL into a link [09:50:51] 03btongminh * r37240 10/trunk/phase3/RELEASE-NOTES: Add release notes entry for r37239: (bug 14745) Image moving works on sites that transform thumbnails via 404 [09:51:14] er, tag, not link, but you can make it a link [09:51:41] 03(FIXED) Image move/rename doesn' t work on sites that transform thumbnails via 404 - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14745 summary; +comment (10Bryan.TongMinh) [09:52:55] [http://www.wikipedia.org http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png] [09:53:03] for example [09:53:11] Splarka can you give me an concretly example? [09:53:12] code [09:55:21] thx Splarka [09:56:09] dieter86: you have to set $wgAllowExternalImages = true; for that though [09:57:57] Splarka the image isn't external, only the hyperlink [09:58:20] hey, don't blame me, I didn't write the code [09:58:27] but if you don't want to install an extension, this is the way to do it [09:58:29] hum [09:58:54] you need an "external" image (it can be local, just not internal), as opposed to an [[Image:]] tag (internal) [09:59:13] there are other ways to do it, like with site css, which is good if you just need to do one of these, rather than a lot [09:59:26] ah okay [09:59:35] do you need just one, or a lot? [09:59:36] hi [09:59:48] one, two [10:00:03] http://www.mediawiki.org/wiki/Help:Linked_images#Site_CSS [10:00:42] you define a class with a background-image: in Common.css (background-image is blocked from inline css) [10:00:50] and then you put an external link inside that class [10:00:55] Splarka I don't like the html output of this methode [10:01:15] what HTML do you desire? [10:01:17] it's important, that the link is good for search engines [10:01:43] [10:01:54] jup [10:02:05] with the alt tag [10:02:15] uhm [10:02:17] attribute [10:02:48] you'll probably have to write a custom extension then, adding a parser hook [10:03:18] I don't want this.. :/ [10:04:48] http://www.mediawiki.org/wiki/Manual:Tag_extensions [10:05:47] this is to complex for my client but thanks for all.. this was help me [10:06:05] well, you could enable raw html, but that is insecure! [10:06:13] yes [10:06:50] okay [10:06:54] internet explorer crashing codes and so on *lol* [10:06:57] if you are willing to install one simple pre-existing extension [10:07:50] you can use the Click, Icon, or Imagemap extension to do this, but you have to register the external URL as an interwiki link [10:08:08] for example: [10:08:08] [10:08:08] Image:Foo.jpg|200px|picture of a foo [10:08:09] default [[mw:foo]] [10:08:11] [10:08:27] mw: directs to http://www.mediawiki.org/wiki/$1 where $1 is replaced with foo there [10:09:06] the html is: [10:09:07]
picture of a foo
[10:09:23] for example [10:09:28] hmhm [10:09:53] is it possible to have logs that are not shown in special:logs? [10:10:09] where would they be shown? just recent changes? [10:10:27] 14(INVALID) Detecting wrong PHPVersion on amd64 Linux. Aborting... - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14641 +comment (10genkitek) [10:10:28] nowhere? [10:10:30] or watchlist/contribs? [10:10:39] just for storing log data for further use [10:10:41] heh, well checkuser/oversight logs do that [10:11:26] on another thought, maybe I just write those to a file [10:11:34] lazy! [10:12:09] Splarka: yeah, and performance [10:15:42] 03siebrand * r37241 10/trunk/extensions/ (70 files in 63 dirs): Localisation updates for extension messages from Betawiki (2008-07-07 11:59 CEST) [10:27:43] 03siebrand * r37242 10/trunk/phase3/ (67 files in 3 dirs): Localisation updates for core messages from Betawiki (2008-07-07 11:59 CEST) [10:37:30] 03(mod) Request editcount for rvprop in prop=revisions - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14746 +comment (10roan.kattouw) [10:45:29] 03(mod) [tables] Please implement COL, COLGROUP - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=986 +comment (10happy_melon) [10:47:36] Hello [10:48:06] I need help with my wiki installation [10:48:21] somebody to help me? [10:48:57] Aidum, ask [10:49:47] i'm installing it (v 1.12.0) and i have a error with mysql failed with error code "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=InnoDB' at line 20 (localhost)". [10:49:56] i cheched it in the FAQ [10:50:02] and change tables.sql [10:50:08] but nothing [10:51:50] somebody knowk what's the problem? [11:00:34] 03nikerabbit * r37243 10/trunk/phase3/ (2 files in 2 dirs): * Plural for delete-toobig and delete-warning-toobig [11:01:46] i'm installing it (v 1.12.0) and i have a error with mysql failed with error code "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=InnoDB' at line 20 (localhost)". Somebody know the solutions. I try changed tables.sql script but nothing [11:01:57] please help [11:02:40] Aidum, there is no need to ask a question twice, we all see it first time [11:02:53] just wait and someone will respon as soon as possible [11:02:54] soory [11:03:09] someone who knows how to solve your problem [11:05:47] Aidum: what version of mysql are you using? [11:06:47] mysql 6.0.4-alpha [11:07:26] I'd recommend running against mysql 5.x until Mediawiki starts saying that mysql 6 is supported [11:10:14] Aidum: on the other hand, you could try selecting MyISAM instead of innodb [11:10:29] 03raymond * r37244 10/trunk/extensions/WikimediaMessages/ (WikimediaMessages.i18n.php WikimediaMessages.php): [11:10:29] * Add extension credits and description message [11:10:29] * Add a comment to 'sitesupport-url'. Should be ignored by, at least optional for Betawiki [11:10:29] * Add the URL of the German donation page [11:11:02] Aidum: of course, if you do that, take heed of the warning on the setup page, specifically: "InnoDB is best for public web installations, since it has good concurrency support. MyISAM may be faster in single-user installations. MyISAM databases tend to get corrupted more often than InnoDB databases. " [11:11:07] InnoDB [11:11:35] 03(NEW) Enable Portal namespace on Hungarian Wikinews - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14748 15enhancement; normal; Wikimedia: Site requests; (gondnok345) [11:13:07] i try with MyISAM and doesn't run [11:13:40] 03(mod) Enable Portal namespace on Hungarian Wikinews - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14748 +shell (10raimond.spekking) [11:14:23] in that case, my original reply still stands, you should definately consider installing a mysql 5.x server somewhere, as I'm pretty sure we don't support MySQL 6 [11:14:32] someone might be able to clarify though [11:15:57] 03(mod) Enable Portal namespace on Hungarian Wikinews - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=14748 -shell (10gondnok345) [11:16:19] 03(mod) Enable Portal namespace on Hungarian Wikinews - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14748 +shell (10gondnok345) [11:21:56] I must confess, I didn't even know the mysql folks were working on a mysql6 atm :) [11:50:36] Hi there! [11:52:38] I have a question regarding external Links. Links work for HTTP://, FTP:// and IRC://. But how do I get for example an HLSW:// - Link to work? (in my own wiki) [11:57:01] !protocols [11:57:01] --mwbot-- To allow additional protocols (prefixes) for urls ("free links"), see [12:00:05] Thank you very much, Overlord! I would never have found that one. [12:31:06] 03siebrand * r37245 10/trunk/extensions/ (129 files in 121 dirs): Localisation updates for extension messages from Betawiki [12:33:42] 03(WONTFIX) Allow multiple categories for categorymembers list - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14425 +comment (10roan.kattouw) [12:36:07] 03(WONTFIX) Parse Renderer needs to allow base url specification - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14598 +comment (10roan.kattouw) [12:39:32] 03(mod) Timestamp parameters and fields do not support ISO 8601 fully - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14449 summary; +comment (10roan.kattouw) [12:48:22] 03catrope * r37246 10/trunk/phase3/includes/api/ApiQueryAllLinks.php: API: Add description for alcontinue parameter [12:50:09] 03shinjiman * r37247 10/trunk/extensions/WikimediaMessages/WikimediaMessages.i18n.php: Localisation updates Cantonese and Chinese for extension messages [12:50:43] *^demon facepalms. [12:50:58] <^demon> When testing something with wgMemc, helps to have caching not set to CACHE_NONE. [12:51:31] ^demon: ohh you can have a look at the patch I submitted to BZ? let me get the bug id [12:51:44] <^demon> Sure. [12:52:32] 14698 [12:52:51] the BlockIP w/o Prevent Account Creation still blocks account creation bug [12:53:02] by the way, is there a way to edit localsettings.php from within the wiki, or do you need to edit it and upload every time? [12:53:28] DanielTahar1: edit and upload [12:53:31] k [12:53:33] 03siebrand * r37248 10/trunk/extensions/ (38 files in 38 dirs): Localisation updates for extension messages from Betawiki [12:53:55] ^demon: thanks a lot btw [12:53:57] how do I disable all namespaces aside of main? [12:54:02] *Sasa^Stefanovic off [12:54:27] DanielTahar1: there is no real way to disable them, because they are hardcoded for various functions [12:54:40] <^demon> G: Looking, give me a moment. [12:54:50] ok, is there a way to block users from adding data into any other namespace? [12:55:10] !mw-bot [12:55:10] --mwbot-- I don't know anything about "mw-bot". [12:55:15] !mwbot [12:55:15] --mwbot-- Hi! I'm mwbot, a bot that was quickly whipped up by Daniel Cannon (AmiDaniel) to help out around #mediawiki. Some quick help is at http://www.mediawiki.org/wiki/Mwbot, you can find all my source code at http://amidaniel.com/viewvc/trunk/MWBot/?root=svn [12:55:31] argh, DanielTahar1 you'd have to use an extension to do that [12:56:02] 03demon * r37249 10/trunk/phase3/includes/specials/SpecialVersion.php: Cache the SVN version so we're not doing a filesystem read every time Special:Version (or APIQuerySiteInfo) asks for it. [12:56:02] !access | DanielTahar1 [12:56:02] --mwbot-- DanielTahar1: For information on customizing user access, see . For common examples of restricting access using both rights and extensions, see . [12:56:07] *Duesentrieb pokes mwbot [12:56:12] wth? [12:56:12] Duesentrieb: thanks, I need to learn those :) [12:56:28] ok. last question for now. is there a way to add the toolbar, or any other formatting function, using CSS? the fields i'm using (textarea, for instance) are generated using the semantic forms extension, which doesn't have that option "built-in". I can, however, assign a CSS to the textarea element. [12:56:29] !dump | G [12:56:29] --mwbot-- G: For information on how to get dumps from Wikimedia Wikis, see http://meta.wikimedia.org/wiki/Data_dumps [12:56:39] damn, that's not what i meant :) [12:56:41] Duesentrieb: nah I got it now :) [12:56:56] it's botbrain btw :0 [12:57:12] !botbrain [12:57:12] --mwbot-- http://tools.wikimedia.de/~amidaniel/botbrain.html [12:57:12] yea. [12:57:23] DanielTahar1: HNP/Lockdown would most likely suit your needs from experience [12:57:25] i though "dump" was short for that. oh wait, it is. [12:57:27] @dump [12:57:27] --mwbot-- A dump is now available at http://tools.wikimedia.de/~amidaniel/botbrain.html [12:57:32] damn meta-functions :) [12:59:05] heh, I love !worstcase :) [12:59:45] how do i add a subtitle, like "from wikipedia, the free encyclopedia"? tried $wgExtraSubtitle and also mediawiki:sitesubtitle, no good [13:03:54] <^demon> G: It works. Still feels hacky though. [13:04:21] ^demon: it's the exact same 'hack' 5-or-so lines above [13:05:13] <^demon> True. [13:05:22] <^demon> Blah, I'll probably get reverted. :-P [13:05:56] it works, and should work consistantly [13:07:56] <^demon> As a thought: If we're already checking blocked from account creation, is there any reason why getUserPermissionErrors should even be checked? [13:08:15] 03catrope * r37250 10/trunk/phase3/includes/api/ApiQueryLinks.php: Killing filesort in prop={links,templatelinks} when {pl,tl}namespace isn't set. [13:08:25] yeah, because as I think I said in my comment, I may have disabled anonymous account creation [13:08:33] <^demon> True. [13:08:43] something that Fedora Project do for instance [13:08:47] how do I add a "TM" mark in wiki [13:08:55] (mainly because we use HTTP Auth :) [13:09:43] &trademark; maybe [13:10:26] ^demon: getUserPermissionsErrors should ideally be called any time permissions are checked. [13:10:38] nope [13:11:12] i can just add the character from charmap, but is that the correct way? [13:12:07] Werdna: exactly [13:12:22] DanielTahar1: it should just work [13:12:51] 03demon * r37251 10/trunk/phase3/includes/Title.php: Don't check block errors on account creation, we already explicitly check it earlier in UserLogin and checking it here is rather annoying (causes "Block Account Creation" to break). [13:13:20] there isn't a correct or wrong way to add the TM mark [13:13:28] ^demon: That's a huge hack. The correct way to fix that is to remove the check in UserLogin. [13:13:34] <^demon> Which is what I said. [13:13:49] *^demon goes to fix it properly. [13:14:20] About my problem with mysql 6 [13:14:40] i try it with 5.0.4 and run [13:14:43] ^demon: No, remove the block check in UserLogin. [13:14:52] not the getUserPermissionsErrors check. [13:15:31] uhm isn't checking if a user is blocked required in user login not just for block account creation, but for when an account is blocked normally? [13:15:41] Werdna: thats just going to create an even bigger hack, the one in UserLogin is explicitly checking if they are blocked for account creation [13:15:48] Correct. [13:15:51] That's why we should remove that. [13:16:10] Ideally, we would block per-permission. [13:16:16] As part of an evil plan I came up with.. [13:16:24] how do i change the default background image from monobook [13:16:26] <^demon> Werdna: I opened a bug about a rewrite of Blocking. [13:16:42] ^demon: I commented on that, with a few notes from my own planning which I did ages ago. [13:17:18] <^demon> Ah, I missed that :-) [13:17:58] Ideally, I'd like to merge the functionality of blocking and protection, to a unified, flexible access control system. [13:18:29] WHich allows matching on permissions, usernames, IP addresses, page titles. [13:18:37] But the performance impact is quite nasty. [13:18:45] well blocking and removing the right from Userrights, would be equivalent technically, someone was talking the other day about having some kind of expire time for userrights so maybe combine both into one thing [13:19:01] And the Blocking system is written to expect one-block-per-session. [13:19:09] darkcode: You've never used Userrights, have you? [13:19:10] allow rights to be enabled for a time frame or disabled for a time frame [13:19:25] Userrights doesn't allow you to revoke the 'edit' permission./ [13:19:54] <^demon> Nor should they be combined. Blocking should be per-role, but userrights is per-group. [13:19:59] I know that, but blocking is just removing the edit permission, could be part of the Userrights [13:20:23] 03(mod) [tables] Please implement COL, COLGROUP - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=986 +comment (10Simetrical+wikibugs) [13:20:25] Although, one other thing I've been meaning to do is implement local right-changing in the same way that I did global groups. [13:20:38] darkcode: right, but your not going to give sysop premissions to a whole netblock I don't think [13:20:40] I was very proud of my work on global groups, particularly the 'changing online' bit. [13:21:05] hello, what's the variable in MW for the article's title? [13:21:10] $wgTitle. [13:21:15] <^demon> Be back in a moment, folks. [13:21:16] thanks [13:21:33] Isb1009, note that that's a Title object, not a string. [13:21:48] and Werdna was talking about blocking per right, which would be equivalent to removing the permission from if it were in Userrights [13:22:05] darkcode: Userrights doesn't remove permissions, it removes groups. [13:22:08] And groups have permissions. [13:23:46] ya that's true, hmm maybe Userrights needs to be renamed to Usergroups, and then have Userrights do the individual rights, since that is what the name implies [13:24:25] I don't think there's a link between user permissions and blocking. I understand where you're coming from, but fundamentally, they're different ideas. [13:24:46] And their uses, intuitively, are distinct enough to justify different systems. [13:25:51] Simetrical: I see, it doesn't work. So, what's the string for the title? [13:25:58] 03(mod) [tables] Please implement COL, COLGROUP - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=986 (10happy_melon) [13:26:52] Isb1009, $wgTitle->getPrefixedText() or $wgTitle->getPrefixedDBKey() or variants on that, depending on what exactly you want. Probably one of those two is correct. You can look in includes/Title.php for more methods. [13:26:59] maybe you mean {{PAGENAME}} if your preferring to its name in wiki text [13:27:06] Isb1009, $wgTitle is a global, so remember to declare it as such if you're not using it in global scope. [13:27:27] And yeah, clarify if you're talking about PHP code or wiki text here. [13:27:42] I'm talking about php [13:27:50] then you need to declare it [13:27:54] global $wgTitle; [13:27:55] Okay, then what I said is probably what you want. [13:28:15] thanks, I'll try if it works [13:29:26] "svn: Target lists to diff may not contain both working copy paths and URLs" [13:29:28] Why the heck not? [13:32:46] try using --old=URL --new=. [13:33:41] I just gave the URL of the repo. My working copy was clean anyway. [13:42:44] 03(NEW) Create mailing list for the board of Wikimedia Norway - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14749 15enhancement; normal; Wikimedia: Mailing lists; (jhsoby) [13:46:12] Simetrical: The thing is I want to use the title inside another string and, because of that, what you told me doesn't work [13:46:28] Isb1009, you can use string concatenation . . . [13:46:48] Simetrical: I'll see... [13:48:05] 03mkroetzsch * r37252 10/trunk/extensions/SemanticMediaWiki/ (2 files in 2 dirs): enable RDF export to be restricted to new concept pages or to categories and concepts ("classes") [13:48:22] 04(REOPENED) Print stylesheet should be explicitly editable (e.g. MediaWiki: Print.css) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=2889 +comment (10AlexSm) [13:50:04] Simetrical: I get an error ("Fatal error: Call to a member function getPrefixedText() on a non-object in[...]") [13:50:26] Isb1009, did you use global $wgTitle; before calling it? Where is your code being executed? [13:51:03] Don't try to use globals in LocalSettings.php or anything executed directly after inclusion in LocalSettings.php. This is very early in the startup process and globals mostly aren't set at that point. [13:51:18] You have to use them inside functions that are run from hooks. [13:51:24] Ok [13:51:31] That was the problem [13:51:44] 03(mod) [tables] Please implement COL, COLGROUP - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=986 (10Simetrical+wikibugs) [13:51:48] I was inside LocalSettings.php [13:52:41] 03(mod) Correcting edit summaries (if own, last, & recent) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13937 (10huji.huji) [13:53:06] Yeah, that won't work. That's run near the beginning. Otherwise hooks wouldn't have a chance to affect initialization. [13:53:34] <^demon> Simetrical: I can revert the cache of the svn revision. I was thinking about it due to brion's comment on adding the svn version to the generator tag (not wanting a FS read on each pageload). [13:54:16] ^demon, oh, I didn't see that. [13:54:29] Yes, that might be a problem, of course, if it were on every page load. [13:54:46] I'd still be leery of caching it for an hour indiscriminately. [13:55:16] In practice, though, if a single disk block gets hit on every load, it will always be in the OS cache. [13:55:43] I'm not sure it's a big deal, shouldn't be more than a microsecond or two. [13:55:48] Less time than memcached, in fact. [13:55:56] 03(mod) [tables] Please implement COL, COLGROUP - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=986 (10happy_melon) [13:58:50] hi [13:58:53] <^demon> Simetrical: I'll rvt. One moment. [13:59:16] i am having problems with latex installation [13:59:36] I followed instructions in ./math/README [14:00:15] but still get an error when trying to visualize a latex formula: [14:00:17] No se pudo entender (No se puede escribir o crear el directorio temporal de math): [14:00:22] (sorry, in spanish) [14:00:30] 03demon * r37253 10/trunk/phase3/includes/specials/SpecialVersion.php: Remove cached svn version in r37249. Likely to be slower. [14:01:13] it says that math temp folder cannot be written or created [14:01:45] i created manually ./images/math [14:01:54] and chmoded to 777 [14:02:09] but still not working [14:02:12] any idea? [14:02:35] edmont: that's not the temp folder [14:02:47] edmont: check the upload path used by php internally [14:02:50] mmm ok [14:02:51] ^demon: does your r37251 fix bug 14698? [14:03:06] Duesentrieb: where can i check that? [14:03:17] in your php.ini, or by calling phpinfo [14:03:48] edmont: also check images/temp [14:04:14] edmont: also check which permissions directory have that get created automatically under image/math, image/temp, etc [14:04:15] Duesentrieb: already did [14:04:49] hm... coming to think of it, the php upload dir is probably only relevant for uploads, not math [14:05:14] 03(mod) [tables] Please implement COL, COLGROUP - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=986 (10Simetrical+wikibugs) [14:05:22] $ ls -l temp/ [14:05:22] total 0 [14:05:22] drwxr-xr-x 4 root root 96 2008-06-24 16:23 3 [14:05:22] drwxr-xr-x 3 root root 72 2008-06-24 16:23 8 [14:06:08] hi, i am having issues upgrading from 1.10.0 to 1.11.2 with postgres from 8.2 to 8.3. can anyone help? [14:06:29] edmont: why are they owned by root? [14:06:29] (please) :) [14:07:00] andrewcooke: please say what exactly the issue is. though few people know much about the PG backend, i'm afraid [14:07:03] Duesentrieb: i dont know, but the rest of the wiki is working ok [14:07:26] edmont: that doesn't man much. [14:07:29] temp directory is not defined in php.ini [14:07:32] the root bit looks suspicious [14:07:39] other than that, i really don't know, sorry [14:07:40] ok - th eproblem is that i see the following error in logs: [14:07:53] [Mon Jul 07 09:53:38 2008] [error] [client 10.2.0.250] PHP Notice: unserialize(): Error at offset 0 of 349 bytes in /srv/www/htdocs/mediawiki/includes/BagOStuff.php on line 392, referer: https://acooke.dyndns.org:4443/mediawiki/index.php?title=ISTI_Diary/2008/07/05&action=edit [14:07:58] also [14:08:06] what means that it uses 7tmp [14:08:06] [Mon Jul 07 09:53:38 2008] [error] [client 10.2.0.250] PHP Warning: pg_query(): Query failed: ERROR: text search configuration "default" does not exist\nCONTEXT: PL/pgSQL function "ts2_page_title" line 3 at assignment in /srv/www/htdocs/mediawiki/includes/DatabasePostgres.php on line 506, referer: https://acooke.dyndns.org:4443/mediawiki/index.php?title=ISTI_Diary/2008/07/05&action=edit [14:08:12] /tmp [14:08:28] i think they are both related to the changes in postgres text search [14:09:07] Duesentrieb: would you pass ownership to www-data? [14:09:32] edmont: yes, well - why is any root action involved anyway? root should not do anything here. [14:09:57] running stuff as root is always a risk. [14:10:20] is there any way to categorize a system message - i need some way to organized them all... [14:10:49] [[Category:SomeCat]] doesn't get removed when you use with wfMsg [14:10:56] Duesentrieb: well, done but latex still not working [14:11:27] install all the requirements? [14:11:42] 03(mod) [tables] Please implement COL, COLGROUP - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=986 (10happy_melon) [14:14:34] 03(mod) section is transcluded when used by system messages - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=4926 (10jlerner) [14:14:48] 03jojo * r37254 10/trunk/extensions/Collection/Collection.body.php: replace wfMsg() by wfMsgForContent() when appropriate [14:15:39] 03(mod) [tables] Please implement COL, COLGROUP - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=986 (10Simetrical+wikibugs) [14:27:36] ^demon: why did you revert 37249? [14:39:08] 03grondin * r37255 10/trunk/extensions/ (2 files in 2 dirs): Adding Wikimedia Messages into Translate extension features [14:43:50] 03nicdumz * r37256 10/branches/category-redirects/ (7 files in 3 dirs): [14:43:50] Implementing category moves when target category exists : [14:43:50] * Changing CategoryMoveJob to use the _target_ title as job_title [14:43:50] * adding two messages : 'cantmove-cat-notempty' & 'cantmove-cat-pendingjobs' [14:43:58] hurray ^ :) [14:44:03] <^demon> VasilievVV: Simetrical informed me that it was probably highly useless. [14:45:24] and by the way Simetrical, no, I wasn't planning to use cat_count, but I really didnt think of these "select 1 where... limit 1". Again, thanks :) [14:46:05] 03vrandezo * r37257 10/trunk/extensions/SemanticMediaWiki/includes/SMW_QP_GoogleChart.php: Query results printer using Google Chart API [14:48:53] 03catrope * r37258 10/trunk/phase3/includes/api/ApiQueryAllLinks.php: [14:48:53] API list=alllinks: [14:48:53] * Make paging actually work by ordering by namespace too [14:48:53] * Make paging in generator mode work by always requesting pl_title [14:49:23] 03vrandezo * r37259 10/trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php: Autoloading the new Google API call classes [14:50:52] 03siebrand * r37260 10/trunk/extensions/Translate/groups/mediawiki-defines.txt: Remove support for WikimediaMessages for now. Duplicate keys not supported and there are 3 of those. [15:05:43] mmm is there is any way to create batch of accounts automatically ? [15:11:27] NicDumZ: not as such. well, more or less. [15:11:31] !auth | NicDumZ [15:11:31] --mwbot-- NicDumZ: http://www.mediawiki.org/wiki/AuthPlugin [15:14:11] Hi, I'm installing mediawiki and recognized a strange behavior: somtimes pages appear in the address bar as /wiki/index.php?title=Main_Page and somtimes as /wiki/index.php/Main_Page . Anyone knows what causes this behavior? [15:14:43] <^demon> \o/ [15:14:55] <^demon> Local thumb caching of remote API urls works :-D [15:15:08] bsm: Look at $wgArticlePath [15:21:38] <_JaVaSan> How to tell the parser to ignore a given character? I need to write '' [15:21:42] bsm, http://www.mediawiki.org/wiki/Manual:Short_URL [15:22:42] _JaVaSan: '' [15:22:53] _JaVaSan: or use html character references [15:22:59] <_JaVaSan> Duesentrieb, thank you [15:23:02] (don't ask me what the number is for ') [15:23:14] <_JaVaSan> I would search for it =) [15:23:25] _JaVaSan: ooops. should be '' [15:23:26] <_JaVaSan> thanks again. [15:23:29] that / is important [15:24:00] <_JaVaSan> ow.. good point. [15:24:26] Anyone familar with the api.php and tokens? I've been trying to edit a page via the api (on my wiki, where I enabled editing via the api). Either it's spitting out an invalid token, or something else is broken :\ http://pastebin.com/d61832a09 [15:24:42] Hi, Is there anyway I can change the size of an external image? [15:25:02] no. [15:25:15] Oh dam! [15:25:26] No way at all? [15:25:42] sure, upload it locally. [15:26:08] or use some extension that allows you to use raw html. then you can make the browser scale it client side [15:26:15] !html [15:26:15] --mwbot-- For allowing any and all HTML, see . This is of course VERY DANGEROUS. Safer options include , and . [15:26:16] Is there anyway of enabling uploads so that only admins can use it? [15:26:23] sure [15:26:25] !rights [15:26:25] --mwbot-- For information on customizing user access, see < http://www.mediawiki.org/wiki/Help:User_rights >. For common examples of restricting access using both rights and extensions, see < http://www.mediawiki.org/wiki/Manual:Preventing_access >. [15:26:28] !access [15:26:28] --mwbot-- For information on customizing user access, see . For common examples of restricting access using both rights and extensions, see . [15:26:35] oh, it's the same now? [15:26:41] anyway, gotta go [15:27:02] *oh_so_ethical pokes VasilievVV ^^ [15:27:59] *VasilievVV knocks oh_so_ethical :) [15:28:21] :O [15:28:29] VasilievVV, any ideas about my token problem :( [15:29:23] I have no clue :( [15:29:38] :( [15:30:27] thanks Werda, oh_so_ethical. i'm using wgArticlePath as a workaround now and will install short urls later [15:30:58] <_wooz> lo [15:31:05] *oh_so_ethical stabs Werdna to see if he knows [15:31:11] what? [15:37:02] Werdna I've been trying to edit a page via the api (on my wiki, where I enabled editing via the api). Either it's spitting out an invalid token, or something else is broken :\ http://pastebin.com/d61832a09 [15:45:13] <^demon> MZMcBride: Your emailuserfooter is live btw :-) [15:47:17] hi if I have a site of 850 users and run on a dedicated server core 2 duo, would mediawiki be able run ok? [15:48:57] 03siebrand * r37261 10/trunk/extensions/WikimediaMessages/WikimediaMessages.i18n.php: More formatting fixes [15:55:04] Hi, I'm not much of hardware guy. I saw that it gives you hardware requirements for a single-computer website. Does that mean those requirements it shows are per user of the website. So if there are 20 users I multiply those requirements by 20? [15:56:58] Boxy, no, for the server [15:57:35] any dev: Patch for Piwik Integration ext. (trunk/extensions/Piwik/) in http://mi-php.astronomipedia.es/mw/Piwik/Piwik-20080707.diff (Implement option of adding the page title inside piwik_action_name) [15:59:55] oh_so_ethical: works for me so I'd suggest looking at oaklib :) [16:00:04] oh_so_ethical: yes I read this "The recommended minimum requirements are 256MB of RAM for a single-computer website and 40MB of storage, " but I guess I am confused about the definition of "single-user website" [16:00:50] Boxy: but it's quite strange that a website is *only* for one user [16:01:11] yes that's why I am confused too :) [16:01:42] "single computer" not "single-user" [16:01:48] website is on one computer/server [16:01:49] OverlordQ, :''( [16:01:56] multiple users access [16:02:57] oh ok [16:03:06] sorry that was dumb thanks [16:03:11] Boxy: hey np [16:04:36] oh_so_ethical: http://monobi.dyndns.org:8007/phase3/index.php?title=User:Echo&diff=131&oldid=129 [16:04:36] :P [16:05:10] lolwut [16:05:24] :'( [16:05:28] stupid edit tokens [16:05:31] It must be my lib [16:05:34] aye :) [16:05:35] Ahh [16:06:35] OverlordQ, you have a dynamic IP :O [16:06:49] yea :) [16:08:08] OverlordQ, do I include the +\ in the edit token [16:08:35] yea [16:09:00] Ok [16:24:13] 03demon * r37262 10/trunk/phase3/maintenance/tables.sql: Update description of img_sha1 index. [16:28:51] 03(mod) Allow Special:MIMESearch to work under miser mode - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13438 +comment (10innocentkiller) [16:39:26] <^demon|away> brion: A very hackish local cache of thumbnails now works on my localhost :-D [16:39:46] yay [16:40:08] <^demon|away> Seeing as ForeignAPI* is already deemed to be hackish, is committing more hackish code to it considered legit? ;-) [16:41:52] if it's not too borken :D [16:41:57] the ideal is ot make it less hackish :D [16:42:05] <^demon|away> That's the /end/ goal :-P [16:42:29] <^demon|away> Manually constructing my paths should at least be removed first...I'll tidy it up over the next few days :-) [16:44:44] gah [16:44:46] wtf [16:53:52] any dev: I think you haven't seen it, so here it goes again: Patch for Piwik Integration ext. (trunk/extensions/Piwik/) in http://mi-php.astronomipedia.es/mw/Piwik/Piwik-20080707.diff (Implement option of adding the page title inside piwik_action_name) [16:54:33] 03vasilievvv * r37263 10/trunk/extensions/Gadgets/ (Gadgets.i18n.php Gadgets.php README SpecialGadgets.php): [16:54:33] * (bug 12211) Show some gadgets only for admins [16:54:33] * (bug 13742) Allow for gadgets to be turned on by default [16:54:33] Modified patch by MaxSem [16:56:18] <^demon|away> Isb1009: Won't apply. Unknown line ending on line 48. [16:56:45] 03demon * r37264 10/trunk/phase3/includes/Article.php: Remove unused (and seemingly useless) param from confirmDelete(). [16:57:09] 03demon * r37265 10/trunk/extensions/MetavidWiki/includes/articlepages/MV_DataPage.php: More cleanup from r37264 [16:58:46] ok [16:58:51] I'll fix it [16:59:05] <^demon> brion: Mind taking a _quick_ look at the patch on bug 13438? It's a schema change and I'd like to get some approval before applying :-) Just adding an index. [17:01:27] ^demon: i'm not sure how much value this search adds as currently written [17:01:45] there's no sort key or filter once you get past the mime type [17:02:01] so you're going to return 16 billion 'image/png' or 'image/jpeg's or whatever [17:02:04] in random order [17:02:20] the index on the patch would speed that, but wouldn't improve its utility [17:02:38] <^demon> No, it wouldn't. But the bug isn't about making it more useful. [17:02:44] <^demon> It's about making it less slow. [17:03:57] ^demon: Let's see if it works, it's in http://mi-php.astronomipedia.es/mw/Piwik/Piwik-20080707b.diff [17:04:37] 03ialex * r37266 10/trunk/extensions/Configure/ (CHANGELOG Configure.php SpecialConfigure.php): (bug 14744) Fixed default value of $wgExternalDiffEngine [17:06:07] well, if we're going to do a schema change that's disruptive; i'd recommend making it useful while we're at it :) [17:06:13] otherwise i'd rather just dump it [17:06:29] <^demon> Any thoughts of how to make it semi-useful? [17:06:30] 03demon * r37267 10/trunk/extensions/Piwik/ (Piwik.php README): Updates to piwik. Patch by Isb1009. [17:06:38] <^demon> Isb1009: Done ^ [17:06:48] ^demon: thanks! ;) [17:06:55] 03(FIXED) Extension:Configure should support additional rights - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14744 +comment (10alex.emsenhuber) [17:06:56] <^demon> np. [17:08:22] brion: can you add Configure Component to MediaWiki extensions product of bugzilla and make me the assignee of these bugs? :) [17:09:24] <^demon> brion: What about merging the functionality into Filelist? Also allow searching by mime-type? [17:11:14] 04(REOPENED) Extension:Configure should support additional rights - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14744 +comment (10alex.emsenhuber) [17:12:19] :O [17:12:46] 03(FIXED) Extension:Configure Breaks diffs - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14742 +comment (10alex.emsenhuber) [17:16:04] 03ialex * r37268 10/trunk/extensions/Configure/CHANGELOG: Fix bug number *stab stab* [17:16:50] ialex: sure... what email you use on bz? [17:17:15] alex.emsenhuber@bluewin.ch [17:17:47] ialex: added [17:17:55] brion: thank you! :) [17:18:33] 03(mod) Extension:Configure Breaks diffs - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14742 (10alex.emsenhuber) [17:18:52] 03(mod) Extension:Configure should support additional rights - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14744 (10stevend811) [17:19:53] ialex: does Configure support $wgAutopromote? [17:20:00] FunPika: you're too fast! [17:20:05] VasilievVV: not atm [17:20:16] 03(FIXED) Allow for gadgets to be turned on by default - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13742 +comment (10vasilvv) [17:20:34] *VasilievVV is writing Configure fork for Wikimedia [17:20:45] O_o [17:21:03] 03(FIXED) Show some gadgets only for admins - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12211 +comment (10vasilvv) [17:26:00] 03(mod) Allow Special:MIMESearch to work under miser mode - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13438 (10brion) [17:26:29] <^demon> OverlordQ: Ping. [17:26:35] yar? [17:26:54] <^demon> Bug 14660, AntiSpoof PG support. You say it works, you just need the (provided) PG schema? [17:27:42] 03raymond * r37269 10/trunk/ (2 files in 2 dirs): Localisation updates German [17:29:00] yea, once I created the table by hand it seems to work fine through web and with batchAntiSpoof.php [17:29:29] <^demon> I'll commit it then :-) [17:29:44] but the hook needs fixed though [17:30:19] the LoadExtensionSchemaUpdates hook that is [17:32:35] 03catrope * r37270 10/trunk/phase3/ (6 files in 2 dirs): [17:32:35] API: Add paging (i.e. limit and continue) parameters to [17:32:35] prop={links,templatelinks,langlinks,extlinks,categories,images}. This means that [17:32:35] these modules will no longer request data from the database without a LIMIT, and [17:32:35] that clients will have to use the query-continue method to get all the results. [17:32:54] <^demon> OverlordQ: Why does the hook need updating? I would think the hook call in AntiSpoof could do it. [17:33:09] <^demon> asSetup(), specifically. [17:33:21] <^demon> asUpdateSchema, rather [17:33:54] yea, that's what i meant. [17:34:07] <^demon> I can do that real quick :-) [17:34:21] :D [17:35:30] 03nicdumz * r37271 10/branches/category-redirects/includes/Category.php: [17:35:30] ! Unique keys and MyISAM :) [17:35:30] * Deleting the target row before updating the source row, and re-insert the old row [17:35:30] * Moving the category existence check inside the move constraints checks : returning true when the target category is not empty was wrong, obviously. [17:36:18] what is the generateEquivset.php script is used for? [17:39:26] 03ialex * r37272 10/trunk/phase3/opensearch_desc.php: Send $wgMimeType mime type for Special:Search template [17:39:52] 03demon * r37273 10/trunk/extensions/AntiSpoof/ (AntiSpoof.php mysql/ sql/ sql/patch-antispoof.postgres.sql): (bug 1466) - Make AntiSpoof database agnostic. Pgsql schema by OverlordQ. [17:40:57] 03demon * r37274 10/trunk/extensions/AntiSpoof/sql/ (patch-antispoof.mysql.sql patch-antispoof.sql): Rename patch. TortoiseSVN won't let you rename a directory *and* files within it in the same operation it seems :) [17:41:03] <^demon> *14660, of course. [17:41:35] ^demon: don't forget addwiki.php line 47 [17:42:16] 03(FIXED) Request for AntiSpoof to be Database Agnostic - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14660 +comment (10innocentkiller) [17:42:44] <^demon> ialex: ...it's WMF specific? [17:43:02] ^demon: yes [17:43:07] hello [17:43:17] <^demon> Ah yes. [17:43:18] <^demon> Duh. [17:43:20] <^demon> 1 moment. [17:43:24] ^demon: /maintenance/addwiki.php [17:43:59] 03demon * r37275 10/trunk/phase3/maintenance/addwiki.php: Patch name changed. [17:45:17] ^demon: shouldn't it be sql/patch-antispoof.mysql.sql [17:45:17] <^demon> Done. [17:45:24] the generateEquivset.php seems to do weird things too ;) [17:45:25] 03demon * r37276 10/trunk/phase3/maintenance/addwiki.php: Typo in prev commit. [17:45:28] <^demon> ^ That's it. [17:45:31] 03(NEW) Fatal error: Call to a member function article() - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14750 04CRIT; normal; MediaWiki extensions: LiquidThreads; (dasch_87) [17:46:05] 03(mod) User generators - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14027 (10jutiphan) [17:48:57] 03(FIXED) Prop modules need limits - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14023 +comment (10roan.kattouw) [17:52:50] 03(mod) Fatal error: Call to a member function article() - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14750 (10dasch_87) [17:56:37] 03(NEW) generateEquivset.php checking wrong directories. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14751 minor; normal; MediaWiki extensions: AntiSpoof; (overlordq) [17:59:52] uhh [17:59:59] has someone touched recent changes query? [18:00:11] it is doing thousands of watchlist queries, one per item [18:00:51] hmm [18:00:58] or it has been doing so all alone [18:06:16] <^demon> Nikerabbit: RecentChange.php hasn't changed in almost 1000 commits. [18:09:34] I seriously think the API on my wiki is fsked [18:09:40] OverlordQ, ahh >_> [18:10:24] can someone take a look at my patch in https://bugzilla.wikimedia.org/show_bug.cgi?id=5445? [18:13:12] oh_so_ethical: eh? [18:13:51] OverlordQ, I swear the api is messed up, it keeps giving me a bad token [18:14:26] *shrug* wfm :) check out a clean ver [18:14:35] :( [18:17:11] 03(NEW) Problem with factbox or something - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14752 04CRIT; normal; MediaWiki extensions: Semantic MediaWiki; (dasch_87) [18:20:52] 03demon * r37277 10/trunk/phase3/includes/filerepo/File.php: Better cache key name, better debug output. [18:31:53] Is there a way of automatic page editing? through php? [18:32:27] tyler_4, you could use the api with a fauxrequest [18:32:38] or pywikipedia [18:33:13] how would I create a fauxrequest [18:37:07] wtf [18:37:08] "No previous test runs to compare against." [18:37:13] something broken in my tests... [18:38:31] 03(mod) Got notice, about MEMCACHE_COMPRESSED constant - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14159 (10aik) [18:44:24] 03(NEW) Set the logo on Hungarian Wikinews - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14753 normal; normal; Wikimedia: Site requests; (gondnok345) [18:46:32] 03(mod) Set the logo on Hungarian Wikinews - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14753 +shell (10alex.emsenhuber) [18:49:16] I have followed the instrctions to install FCKeditor onto 1.12 of Mediawiki and the normal editor still comes up. Has anyone had this issue yet? [18:51:00] 03brion * r37278 10/trunk/extensions/Gadgets/ (Gadgets.i18n.php Gadgets.php README SpecialGadgets.php): (log message trimmed) [18:51:00] Revert r37263 for now: [18:51:00] * (bug 12211) Show some gadgets only for admins [18:51:00] * (bug 13742) Allow for gadgets to be turned on by default [18:51:00] I'm a bit leery of the 'on by default' entirely at the moment. :) [18:51:04] A few comments: [18:51:06] * The readme examples don't seem to clearly show the option format [18:51:55] Does anyone know of a good WYSIWYG editor besides FCKeditor thta just works? [18:54:53] 03(NEW) Make One-Click sighting in case of multiple versions more comfortable - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=14754 15enhancement; normal; MediaWiki extensions: FlaggedRevs; (pbirken) [18:59:58] 03(mod) Enable Portal namespace on Hungarian Wikinews - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14748 15enhancement->normal (10gondnok345) [19:00:01] 03brion * r37279 10/trunk/phase3/opensearch_desc.php: [19:00:02] Revert r37272 "Send $wgMimeType mime type for Special:Search template" [19:00:02] Clients will expect text/html specifically, and would not necessarily know that say application/xhtml+xml means the regular search page. [19:00:12] 03(mod) Draft tab does not disappear after sighting - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14561 (10pbirken) [19:05:42] 04(REOPENED) Show some gadgets only for admins - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12211 +comment (10maxsem.wiki) [19:06:53] 04(REOPENED) Allow for gadgets to be turned on by default - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13742 +comment (10maxsem.wiki) [19:07:00] 03(mod) Show some gadgets only for admins - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12211 (10maxsem.wiki) [19:11:21] MaxSem: Fixed in r37263, reverted by Brion in r32278? Time travel? [19:11:44] argh [19:11:57] 03(mod) Make UI easier with diff-only preference - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14581 (10pbirken) [19:13:46] 03(mod) Allow for gadgets to be turned on by default - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13742 (10maxsem.wiki) [19:14:10] 03(mod) Show some gadgets only for admins - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12211 (10maxsem.wiki) [19:14:21] No one has any experience getting Mediawiki 1.12.0 to work with FCKeditor? [19:15:58] The API help gives (Note: In this example, all parameters are passed in a GET request just for the sake of simplicity. However, action=edit requires POST requests; GET requests will cause an error.) for the api.php ? action=edit & title=Talk:Main_Page & section=new & summary=Hello%20World & text=Hello%20everyone! & watch & basetimestamp=2008-03-20T17:26:39Z & token=cecded1f35005d22904a35c [19:16:27] how would i set the parameters into post request [19:17:05] tyler_4, what programming language do you know? [19:17:15] php java [19:17:24] html [19:17:43] hm, neat... i never noticed that htting esc in firefox also stops gif animations [19:18:49] tyler_4: with php, you would use CURL, with java, use HttpURLConnection. HTML is not a programming language :) [19:19:24] <^demon> Duesentrieb: I guess he could write a form with action=post and pass the params to his api? [19:19:27] tyler_4: if you want to access API externally, http://ru2.php.net/manual/en/function.http-post-data.php [19:19:52] ^demon: uh, yes? [19:20:06] the api is generally intended to be used programmatically, so i assumed that's what he wants [19:20:08] if internally, $r = new FauxRequest(); $r->wasPosted = true; [19:20:11] <^demon> True. [19:20:52] eh, $r = new FauxRequest( $your_request, true); [19:22:28] here'S a quick demo for post requests from java (looks good, buit i havn't tried): [19:22:28] http://www.mail-archive.com/jsp-interest@java.sun.com/msg44534.html [19:23:42] cool ill mess around with curl and the api to get it to work thanks [19:24:41] whats the difference bewtween internally and externally? [19:25:31] i guess what is meant by internally? [19:26:08] from the server [19:26:45] would i need a require?api.php [19:26:51] ? [19:32:30] no [19:34:26] i thought it would though to know what FauxRequest is [19:36:06] nevermind, i misunderstood what you wanted [19:36:11] sorry [19:36:43] do you mean i cant use it internally> [19:37:33] http://www.mediawiki.org/wiki/API:Calling_internally [19:38:30] (that would be nice if it was the same for "normal" stuff :) [19:38:37] tyler_4: internally from inside mediawiki itslef. [19:38:45] mw calling itself, kind of. [19:38:46] in still need require("api.php") to define API Main? [19:38:51] no idea why anyone would ever want to do that. [19:38:51] no [19:38:55] i meant do I [19:39:00] no you don't [19:39:06] it will automatically be loaded [19:39:09] tyler_4: should be handled by the autoloader [19:39:29] what is the autoloader? [19:39:36] 03(ASSIGNED) Create mailing list for the board of Wikimedia Norway - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14749 (10cbass) [19:39:37] something that automatically loads stuff? [19:39:45] tyler_4: but why would you want to call the api from inside mediawiki? what are you ACTUALLY trying to do? [19:40:05] Mean were is it defined to load the API [19:40:36] <^demon> The Autoloader will load all API modules by default. [19:40:52] *if* you are working *inside* mediawiki [19:41:12] *Duesentrieb tries to figure out who is more confused now, we or him [19:41:12] i just wanted to be able to edit a page using php and a string to add to page [19:41:30] tyler_4: how and when is that php called? [19:41:39] Thats the part im confused about is how do I know im working within Mediawiki [19:41:43] is it called on its own, or is it supposed to be part of mediawiki? [19:41:46] 03(ASSIGNED) Request for a new mailing list for it:wp administrators - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14676 (10cbass) [19:42:02] well, you are working within mediawiki if you write an existion for mediawiki [19:42:10] and register it with mediawiki. to be called by mediawiki :) [19:42:43] oh [19:42:44] this is the right thing to do for anything that is supposed to be triggered *inside* the wiki [19:43:13] if you want to have some extra page or service that needs to interact with mediawiki, that is not "inside", so you use the API "externally" via curl [19:43:31] t is supposed to be called after input from a form [19:43:41] a form inside the wiki? [19:43:43] or somewhere else? [19:43:59] I had no preference just whatever is simpler [19:44:09] and i guess secure [19:44:20] both have pro and cons. [19:44:31] mediawiki is complex, but once you have the basics, it'S very powerful. [19:44:41] working from the outside gioves you more control about your own app [19:45:03] but if you need, for example, mediawiki user sessions, things are getting tricky [19:45:10] also, using the api is not so simple either :) [19:45:30] programmatic page editing is a bit tricky either way. nto really hard, but probably tricky at first. [19:46:00] oh, i guess I should do it from inside ? Is there a tutorial for writing a simple mediawiki extension [19:46:23] !extensions [19:46:23] --mwbot-- MediaWiki has been built so it can easily be customized by adding extensions. This is usually a simple process. See for instructions to install extensions, as well as for writing them. See for an overview of known extensions. [19:47:04] kodifying a page from within an extension is actually one of the more involved things you can try. [19:47:24] as i said, not *really* hard, but maybe play with something simpler first :) [19:48:16] Hi there [19:48:47] Just passed the last 4 hours trying to install that FCKeditor on my fresh MediaWiki 1.2.0!!! [19:48:52] I need some help [19:48:57] Not sure were I should start with extensions [19:49:31] because there is still the basic editor with MonoBook!!! [19:49:54] Do I start with something that obtains edit tokens first [19:49:55] n8 [19:50:31] --> I don't understand any word... Oo [19:51:09] oh I was referring to ,sorry [19:51:21] ok nevermind [19:51:52] If someone can help I explained my problem here: http://www.fckeditor.net/forums/viewtopic.php?f=6&t=10344 [19:53:26] tyler_4: if you are inside mediawiki, you don't need any tokens. you have full control then. which also means you have to take care of security yourself. [19:53:47] If I wanted to output wiki markup through the template (MonoBook.php) what would the best method be? I've tried to use $this->msgWiki but it appends < and > to the start and end. Doing a substr or preg_replace is not a viable sollution [19:54:07] Evening all [19:54:39] oh I guess ill look at inputbox's code and try to figure out how its creating a page to figure out how to edit one. [19:54:42] This one seems to require assistance with installing mediawiki. [19:54:55] 03nikerabbit * r37281 10/trunk/phase3/includes/ (CompatibilityFunctions.php GlobalFunctions.php): * Split Compatibility functions to own file [19:55:31] tekmosis: maybe ask the FCKE-People. Or maybe you get lucky here. One thing though... MW 1.2.0? I hope not! That would be four years ago or something [19:56:52] Duesentrieb, I'm using MW 1.12.0 [19:57:13] 03ialex * r37282 10/trunk/extensions/Configure/README: Update, link to http://www.mediawiki.org/wiki/Extension:Configure [19:57:23] My Issue: While installing, I seem to have everything working except for the database name and usernames stuffs. [19:57:25] Duesentrieb --> I mean 1.12 [19:57:29] >_< sorry [19:57:50] tekmosis: sorry, i meant Thireus :) [19:57:55] oh :P [19:57:58] Damn I can't edit my post :'( [19:58:14] thanks for guidance [19:59:02] tekmosis: anyway... outputting wikitext in skin is a bit late... where does that wikitext come from? If you put it into a system message, you *coul* use msgWiki [19:59:10] 04(REOPENED) Automatic account creations (SUL) are not reported on irc RC - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14650 +comment (10Platonides) [19:59:22] It's ok I edited my post MediaWiki 1.12.0 + FCKeditor [19:59:33] please check this out: http://www.fckeditor.net/forums/viewtopic.php?f=6&t=10344&p=27245#p27245 [19:59:38] I really need help now [19:59:42] Im not sure weather I need to make a database, or if I have one, or whatnaut. [20:00:09] Ekoi: ask your hosting service [20:00:22] alright then [20:01:49] I installed mediawiki and then copied localsettings.php to root dir and I get a white screen when i go to index.php? [20:02:17] Lenaud01: internal error [20:02:41] internal error? [20:03:15] set $wgShowSQLErrors and $wgShowExceptionDetails to true to figure out what's going on [20:03:25] (in LocalSettings.php) [20:03:42] will try that [20:03:45] thanks [20:03:53] !error [20:03:53] --mwbot-- For information on debugging (including viewing errors), see . [20:03:55] !errors [20:03:55] --mwbot-- To see PHP errors, add this to the very top of LocalSettings.php: error_reporting(E_ALL); ini_set("display_errors", 1); Fatal PHP errors usually go to Apache's error log - also check the error_log setting in php.ini (or use phpinfo). For more details in wiki error reports, set $wgShowExceptionDetails = true; and $wgShowSQLErrors = true; For full debug output, set $wgDebugLogFile to some path you like. [20:03:56] but check apache logs firstt [20:04:01] ^^ [20:04:12] Probably a fatal PHP error, follow that advice. [20:05:51] Fatal error: Class 'DOMDocument' not found in /var/www/html/wiki/includes/Preprocessor_DOM.php on line 566 [20:06:05] !dom | Lenaud01 [20:06:05] --mwbot-- Lenaud01: If the DOM_Document class is missing, install PHP's XML module (and restart Apache) or set $wgParserConf['preprocessorClass'] = 'Preprocessor_Hash' (see for details) [20:08:42] I set this in localsettings.php $wgParserConf['preprocessorClass'] = 'Preprocessor_Hash' [20:08:46] and now i just get a white screen [20:09:10] Lenaud01, check error log again. [20:09:23] Lenaud01: add a ; at the end of that line [20:09:27] you broke your config file [20:09:54] missing ; thankas Duesentrieb [20:10:15] oldy but goldy :P [20:10:33] perfect working now :) [20:10:46] next setup the plugin for phpBB3 lol [20:10:53] thanks for all your help gang [20:15:29] 03brion * r37283 10/trunk/phase3/includes/ (CompatibilityFunctions.php GlobalFunctions.php): [20:15:29] Revert r37281 "Split Compatibility functions to own file" [20:15:29] This would make maintenance harder by duplicating information between [20:15:29] GlobalFunctions.php and CompatibilityFunctions.php. If you forget to add a [20:15:29] function to the list, the compat functions might not get loaded and you'll run [20:15:29] into surprise errors. [20:17:28] if you forget to add ; at the end of statement... it will be a fatal error [20:21:53] Hmm, what encoding is SemanticGoogleMaps.php in? Looks like what I've seen before in Mac files. [20:22:10] First line is "��< ? p h p " in my editor. [20:22:27] UTF-8 BOM [20:22:50] or it's UCS-16? [20:23:06] That looks like UTF-16 or something. [20:23:18] With the blanks before every character and a two-byte BOM. [20:23:18] utf-16 le prolly [20:23:22] It should be stabbed. [20:23:55] Hello. What possibilities are there to use RSS in mediawiki. I wanted to check usercontributions from a user - but it seems not working... [20:24:14] I do not have an editor that can make sense of it... [20:24:26] siebrand: which file exactly? [20:24:38] Conny, RSS is provided for RecentChanges and the histories of pages. It's not currently available for anything else. [20:24:44] although. I've had results with Extenscript toolkit. Let's try that for a second. [20:24:45] (Although it should be.) [20:25:01] Simetrical: Thank you :D . [20:25:20] yep, that worked. Will commit fixed file. [20:25:24] Can I vote anywhere to have it for more sites? [20:25:24] mmm [20:25:29] 03brion * r37284 10/trunk/phase3/maintenance/parserTests.inc: [20:25:29] Partial revert of r37224 [20:25:29] "* Fix parserTests.php for replicated databases. Use CREATE TABLE instead of CREATE TEMPORARY TABLE if there is more than one server configured." [20:25:29] This caused the test runner to put the test prefix onto the testitem/testrun tables, breaking continuity with existing test run records. [20:25:55] I'm adding a possible fix to objectcache deadlock [20:26:56] which will be... [20:27:04] objectcache purge ran as separate database connection [20:28:04] 03brion * r37285 10/trunk/phase3/ (3 files in 2 dirs): [20:28:04] Revert r37223 "keeping the consistence of the function name string" [20:28:04] Incorrect use of UI language message in content-language text [20:28:37] domas: shouldn't be too hard to wrap it in a retry loop either... [20:31:23] 03dale * r37286 10/branches/MetavidWiki-exp/MetavidWiki/ (6 files in 4 dirs): stubs for search digest and clip view digest [20:35:30] 03brion * r37287 10/trunk/phase3/languages/messages/ (9 files): Kill broken email footers [20:39:33] the problem here is that whole transaction has to be retried :) [20:41:59] 03raymond * r37288 10/trunk/ (2 files in 2 dirs): Localisation updates German [20:47:44] 03siebrand * r37289 10/trunk/extensions/SemanticGoogleMaps/ (3 files): (log message trimmed) [20:47:44] * svn props: eol-style:native [20:47:44] * add proper headers [20:47:44] * fix indentation, remove EOL whitespace [20:47:44] * fix encoding, remove BOM [20:47:44] * delay message loading [20:47:46] * code out $sgmIP [21:06:31] I'm trying to make a bot [21:06:34] for my wiki [21:06:37] and when sending [21:06:48] wpSummary=Test%20Edit&wpStartime=123456&wpEdittime=123456&wpTextbox1=text%20here [21:06:51] it doesn't seem to work [21:07:14] what's wrong? [21:07:36] if the bot is editing, it'll need to send an edit token [21:07:52] http://www.mediawiki.org/wiki/Manual:Edit_token [21:08:34] are there any other things I should know so I won't make it the "old fashioned way" and mistake? [21:09:17] Dor: load the edit form and submit all fields with their respective values. modify the ones you want modified [21:09:37] that should *always* work [21:09:43] huh? [21:09:56] what do you mean by "load the edit form and submit all fields" [21:10:28] if you want to edit a page. [21:10:36] load the edit form, parse it, extract all fields and values [21:10:47] use these fiuelds and values in the post request you send back to the server [21:10:57] doh [21:11:04] the thing is HOW to send it [21:11:16] nakon, so, where do I see this edit token? [21:11:30] the edit token is one of the fields you would extract from the form... [21:11:53] the only answer to "how" is "POST". [21:12:22] oh I see [21:12:34] and the token will not change when I POST? [21:12:59] hm? the server expects the token that it gave you. [21:13:04] that'S the idea of a token [21:13:10] it may or may not change between edits. [21:13:23] I understand [21:13:27] okay then [21:13:31] thanks [21:13:57] so the bot is a bit more complax then just one POST request [21:14:00] I also need to GET [21:14:07] I'll do that tommorow :) [21:16:02] certainly in needs one - you'll have to retrieve the content of the page to edit first [21:16:07] Dor, you'd better use the api [21:16:16] api? [21:16:20] api.php [21:16:27] what would that be? [21:16:31] :P [21:16:35] *which is disabled by default [21:16:40] first time I hear about it [21:16:45] but he can enable :) [21:16:49] it's quite recent [21:17:01] yes, and I will or will not, depands on what it is [21:17:02] and will be out beta-tester! [21:17:02] :) [21:17:41] in fact, your bot can do just a post request [21:17:52] if you don't mind editing as anonymous [21:18:01] not really [21:18:15] or you could add a single GET to fetch the edit token (+the logging in) [21:18:47] how do I login with a bot [21:18:56] that's another thing I need to find out [21:19:10] Its all documented on the site. I would read up on the API before you go any further [21:19:13] just look at the source of login form [21:19:17] !api [21:19:17] --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:19:51] MaxSem, yes well, but how do I keep it logged in [21:19:57] doesn't it need some sort of cookie [21:19:58] ? [21:19:59] cookies [21:20:04] yes [21:20:12] and I don't know how to save or handle cookies [21:20:17] unless it's just like plain text [21:20:26] depends on the language [21:20:33] Is there any tags to format a date based on a users preference? ie: {{2008-09-12|USERS_DATEFORMAT_PREFERENCE}} [21:20:51] hm... how do i need to configure profiling in order to benchmark a new skin? [21:21:01] MaxSem, a cookie is a file [21:21:13] is that file encoded in some sort [21:21:17] Duesentrieb, http://www.mediawiki.org/wiki/How_to_debug#Profiling [21:21:18] Dor: cookie is a HTTP header [21:21:20] or is it plain text that I could open or read [21:21:26] A cookie is data, browers just store it in a file [21:21:33] yes wel [21:21:35] well* [21:21:37] Look for a cURL class with presistant cookie support [21:21:40] Dor: cookies may be stored in a file. or somewhere else. just use a library that supports cookies. like CURL. [21:21:41] my bot will store it in a file as well [21:21:42] Don't reinvent the wheel [21:21:57] well [21:22:00] use stock bot frameworks [21:22:07] tekmosis: yes. i know the basics. can you tell me how to get timing info for the skin specifically? [21:22:15] MaxSem, huh? [21:22:29] Duesentrieb, where can I see an example of a cookie based header? [21:22:46] Dor: google for "CURL cookies PHP" ? [21:22:57] (or whatever language you use curl with) [21:23:06] curl? :P [21:23:18] Duesentrieb, you could add the profiling wrappers around the template call [21:23:30] Dor: the http library that makes your life easier? how have you been sending POST requests? raw sockets? [21:23:30] http://www.mediawiki.org/wiki/API:Client_Code [21:23:45] Duesentrieb, yes. raw socket [21:24:15] lol [21:24:22] tekmosis: template != skin, very different things in MW. but anyway... yes, sure. but i'm hazy on how to access them. the generic profiling info does *not* include the ProfileIn/ProfileOut stuff. [21:24:43] Dor: why the *hell* do you reimplement an http client if there are about 100000000 implementations already? [21:24:48] skin, template..w/e you can still use the same concept with the wrappers ;) [21:25:01] sure [21:25:03] I just installed SMW and inorder to get it running on all my pages, I need to 'save' every one of them. Are there ant tips/tricks to do this? I cleared the cache and simply regenerating the cache dosn't do the trik. Anyone know of a workaround? [21:25:03] i do [21:25:07] Duesentrieb, 1. I only trust what I understand. [21:25:15] 2. I also want to learn from it [21:25:16] now, how do i get it to tell me the timing for this specific wrapper? [21:25:44] Dor: those are good reasons. so... read the http spec, and read the source of existing implementations :) [21:26:13] http spec? [21:26:22] Dor: play with it, get it to work 90%, find out about nasty edge cases, proxies, etc. then use some existing impl :) [21:26:35] Dor: HTTP specification. you know, the thing that defines what HTTP is. [21:26:35] and where can I find a good concentrated bot sources? [21:26:53] rfc2616 [21:27:06] depends on the language i suppose [21:27:13] but i doubt any of them use raw sockets :=) [21:27:21] especially if they are "concentrated" [21:27:25] mIRC does xD [21:27:42] makes you wonder [21:28:01] "why would anyone wanna make a bot in mIRC"? [21:28:02] :) [21:28:19] "why not use existing libraries when making a bot in mIRC"? [21:28:49] you have way to much time? [21:28:54] (and yes, i have written http clients before. and servers. learned a lot from it. use existing libs if you want to get stuff working) [21:28:54] true [21:28:59] summer holiday :) [21:29:18] everyone here talk about libraries [21:29:28] WTF ARE THEY?! [21:29:30] Duesentrieb: Same, and mine just never have the functionality that the well supported ones do. [21:29:35] Prebuilt code [21:29:46] a bot someone already made? [21:29:49] Yes [21:29:51] Dor: whatever you bild your program on? code other people write for you to use? [21:29:56] so why call them library? [21:30:19] Look up there there was a link for mediawiki library. AutoWikiBrowser is fairly extendable, but proably not what you want. [21:30:20] Duesentrieb, I didn't understand the sentance? [21:30:21] Dor: you'll have to ask that one to a 1950's computer geek [21:30:56] Dor: http://en.wikipedia.org/wiki/Library_(computing) [21:31:01] rfc2616 [21:31:03] this one? [21:31:12] hm? that's a specification [21:31:21] oh [21:31:21] http://www.w3.org/Protocols/rfc2616/rfc2616.html [21:31:26] http://www.mediawiki.org/wiki/API:Client_Code [21:31:33] what language are you writing in dor? [21:31:39] mIRC Scripting [21:31:44] didn't I say it already? [21:31:52] 00:24:52 08/07 "why would anyone wanna make a bot in mIRC"? [21:31:54] i thought you were kidding... [21:32:00] Ya same [21:32:02] I am not kidding :) [21:32:10] hey JSharp :) [21:32:10] mirc bot to edit a mediawiki install? [21:32:18] o_O [21:32:20] ....why? [21:32:21] Dor, hey there :) [21:32:31] mirc bot to go to a page and add a category [21:32:43] not very complicated [21:33:01] well, htting a nail into a wall is not complicated either [21:33:09] unless you try to use toast to do that... [21:33:09] :) [21:33:13] Duesentrieb, you try it with a glass hammer [21:33:26] I know mIRC isn't the idle way to do it [21:33:28] toast i say. [21:33:41] heh, I think a glass hammer is more ironic [21:33:48] I would agree. Get a perl mIRC bot and use the perl mediawiki lib. But hey, perl is more up my ally then mirc script (which i have never used) [21:33:51] toast is softer. [21:33:53] and tasts better [21:34:17] Can't say I've tasted a glass hammer though. [21:34:27] yeah, let's leave the toast and the glass hammer aside for a moment there [21:34:53] what I'm trying is to login and keep it logged in for the rest of the session [21:34:56] is it possible? [21:35:07] Dor: you'll have to decide if you want a working bot, fast, or if you want to learn network programming from scrap. [21:35:19] possible? sure [21:35:21] store the cookie [21:35:22] is it that complicated? [21:35:23] Yes its possible, but i doubt anyone here has the experience with mirc script to help you much more then give you documentation. [21:35:25] resend it with every request [21:35:39] where do I send it [21:35:42] if I send [21:35:47] In the http headers [21:35:49] if you want to implement HTTP and have questions about that,please find another channel :) [21:35:56] GET /wiki/test http/1.1 [21:35:58] read the http spec first though [21:35:58] Host: bla [21:36:09] Cookies: .... [21:36:26] maybe... look at the headers your browser sends? that should give you some ide [21:36:28] a [21:36:29] and ... would be exactly what's written in the cookie? [21:36:50] pretty much. but read the spec. [21:36:55] and check what your browser sends [21:36:56] Use a browser, get Live headers for FF and reverse engineer it. thats half the fun [21:37:06] of you really want to learn this stuff, dig in. [21:37:08] I already have it [21:37:10] and I see it [21:37:13] otherwise, use curl or some such [21:37:26] where and how do I get the cookie? [21:37:36] *Duesentrieb is getting a headache [21:37:39] will the server just say [21:37:40] http://wp.netscape.com/newsref/std/cookie_spec.html [21:37:45] blah [21:37:45] ? [21:37:53] learn how to read docs [21:37:56] read the damn spec [21:38:01] or stop trying to mess with it [21:38:03] will read :) [21:38:29] *YurtleTheTurtle has a headache too. [21:38:37] Dor: maybe start with the wikipedia articles on http and cookies? should help with understanding the technical stuff [21:39:01] I think I'm starting to get it [21:39:06] so let's review this [21:39:13] I get the cookie when I POST the login [21:39:21] I store it in some file [21:39:35] and send its contents in the header every time I GET or POST anything [21:39:37] correct? [21:39:46] Yes [21:39:51] okay [21:40:07] ummmmm [21:40:12] I think that's quite it [21:40:12] *YurtleTheTurtle isn't sure if he will be getting a PHPSESSID.... [21:40:14] login and edit [21:40:25] is all the bot's purpose [21:40:32] http://www.mediawiki.org/wiki/API:Changing_wiki_content [21:40:59] I would give you some fancy ! command but I'm new here [21:41:25] I don't think there is one for the API: stuff :) [21:41:38] !help [21:41:38] --mwbot-- Hi! I'm mwbot, a bot that was quickly whipped up by Daniel Cannon (AmiDaniel) to help out around #mediawiki. Some quick help is at < http://www.mediawiki.org/wiki/Mwbot >, you can find all my source code at < http://amidaniel.com/viewvc/trunk/MWBot/?root=svn >. A dump is now available at < http://tools.wikimedia.de/~amidaniel/botbrain.html > [21:42:08] Thanks Max [21:42:40] well [21:42:43] thanks a lot [21:42:53] you helped me understand all I needed [21:43:42] What's the url for logging in via the index.php ? [21:44:04] @trusted [21:44:04] --mwbot-- [s23.org, wikia/.*, cc1081997-b.harli1.fr.home.nl, .*\.wikimedia\.org, wikipedia/.*, 222-153-0-95.jetstream.xtra.co.nz, wikimedia/.*, silentflame/member/pdpc.base.minuteelectron, cpe-69-201-152-135.nyc.res.rr.com, rbak-164-107-218-33\.resnet\.ohio-state\.edu, pdpc/supporter/student/werdnum, c-67-171-249-42.hsd1.wa.comcast.net, 217.121.122.151] [21:44:09] index.php?title=Special:Userlogin ... blah [21:44:13] w/index.php?title=Special:UserLogin&wpName1= [21:44:16] Ok [21:44:20] So [21:45:28] MaxSem, can you give me the full url? I can't seem to get the correct parameters :\ [21:45:52] the params should be in POST, afaik [21:46:18] just see the source of login form [21:48:31] :\ [21:49:07] brion-busy: mind if I msg you about something? [21:52:30] /w/index.php?title=Special:UserLogin&action=submitlogin&type=login&wpName1=Echo&wpPassword1= [21:52:41] MaxSem, I post that above and I didn't login :\ [21:52:53] certainly [21:53:02] you need to post it [21:53:08] I did post it [21:53:23] there also is a problem with SUL... [21:53:34] no, this isn't w/ A Wikimedia wiki [21:53:41] I don't see an action form element on my site [21:54:00] nm i got it [21:54:50] the element's name is wpName and wpPassword, the id is wpPassword1 and wpName1 [21:55:16] Ohhh [21:55:17] hmm, from AWB: poststring = string.Format("wpName=+{0}&wpPassword={1}&wpRemember=1&wpLoginattempt=Log+in", [21:55:40] bah, I need to sleep [21:57:33] hm... would 10% more runtime for skins be justified by more code reuse, more flexibility and better ways to hook in? my changes take monobook from about 40ms to 44ms on my system. [21:57:37] domas: what do you think? [22:00:03] Yeah, it worked when I got rid of the "1" [22:00:52] 03brion * r37290 10/trunk/extensions/SemanticGoogleMaps/SemanticGoogleMaps.php: fix php syntax err [22:00:57] Duesentrieb, what changes are you making? [22:01:09] Generally I'd make it work nicely, then focus on optimization. [22:01:19] I doubt skins are a big bottleneck right now. [22:02:10] The mediawiki core should be rewritten from PHP to C [22:02:16] Any volunteers ? [22:02:17] :P [22:02:21] Simetrical: i don't see much room for optimization. Basically, i'm factoring out individual parts into individual functions. header-scripts, footer, etc. and most importantly, all portlets get generated by a function dedictaed to this, and can be intercepted by a hook [22:02:24] uh... no [22:02:41] oh_so_ethical: count me in if we do it in java [22:02:45] why on earth would we rewrite the wiki in C? [22:02:54] C is for drivers [22:03:04] Let's do it in Python ;) [22:03:15] Python! [22:03:23] python would be an inprovement [22:03:31] but fora huge project like this, i'd prefer java [22:03:32] Python? why not Ruby, it's even slower! [22:03:34] Everyone loves Python [22:03:45] MaxSem: because ruby is even slower than php :) [22:03:46] Except for MaxSem >_> [22:03:55] Duesentrieb, uh, I don't think so ;P [22:03:58] oh_so_ethical: except for the space crap. that was a real mistake [22:04:09] Duesentrieb, yeah, if they fixed that, we'd be in good shape [22:04:16] JSharp: hm? [22:04:19] Duesentrieb, but then again, which interpreter? you don't have to ask that with PHP [22:04:44] 14(WFM) Bad extension URL for the ParserFunctions extension in Special: Version - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14747 +comment (10brion) [22:04:53] I'm all for speed so I recomend assembly. We could have the beta ready in 10years. [22:05:00] hah [22:05:01] JSharp: didn't someone write a ruby interpreter in javascript recently? which ran faster than the "normal" interpreter?... [22:05:09] uh, I doubt it [22:05:17] MaxSem, Python is usually considered to be faster than PHP, although it's a lot slower than (say) Java. [22:05:25] maybe Java, but then that's byte compiled and JITed [22:05:41] screw java, obfuscated Perl is the way to go. [22:06:02] *JSharp runs after OverlordQ with a big foam bat [22:06:05] Java is faster than PHP, but is Tomcat faster than Apache? [22:06:24] JSharp: http://hotruby.accelart.jp/test-web/bm_loop_times.html [22:06:31] doesn't matter -- never compare the speed of an application to the speed of a platform [22:06:33] "HotRuby is 3.3 times faster than Ruby(YARV), 11.7 times faster than JRuby. " [22:07:09] and 99.9% of stats are made up :) [22:07:21] MaxSem: since when is apache php? [22:07:46] it doesn't have to be [22:07:53] It is on Wikimedia servers, for some reason. :( [22:07:54] nginx! [22:08:02] o_O [22:08:21] Simetrical: as a server, or cache? [22:08:21] anyway, php sucks performance-wise. [22:08:30] from all i have yet seen, ruby sucks even worse. [22:08:42] 03brion * r37291 10/trunk/extensions/AntiSpoof/ (equivset.txt generateEquivset.php): [22:08:42] bug 14751 -- $dir in generateEquivset.php was overwritten by other extensions. [22:08:42] Set it again after loading commandLine.inc [22:08:51] java sucks at startup time and memory use, but it's pretty fast once it's up and running [22:08:58] python... not sure. [22:09:00] 03(FIXED) generateEquivset.php checking wrong directories. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14751 +comment (10brion) [22:09:51] anyway, time for bed [22:09:53] MaxSem, which? [22:10:00] Duesentrieb, what are you comparing PHP to in terms of performance? ASP?..lol ;P [22:10:01] nginx [22:10:20] 03(mod) Set the logo on Hungarian Wikinews - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14753 (10brion) [22:10:27] MaxSem, Apache should just be ignored. Something like nginx (or lighttpd, which I use) should be used as a web server. Of course, you then need FastCGI or something for PHP. [22:10:29] it could be used as both, as i heard [22:11:02] PHP is as efficient and the coder. Otherwise, I don't see a better alternative, especially something open source [22:11:16] then you haven't been looking very hard ^_^ [22:11:47] tekmosis, um? Python, say? Open-source Java? [22:12:06] Tekmosis: search /. for something on php... [22:12:14] tekmosis: to anything, pretty much. http://shootout.alioth.debian.org/debian/benchmark.php?test=all&lang=all&lang2=php [22:12:18] Simetrical: Java hasn't bee os long enough to count. [22:12:29] But why would you use Java or Python for a web application such as MediaWiki? [22:12:50] You wouldn't, php is the right tool for the job [22:12:52] tekmosis: PHP ranks 3rd-to-last, only followed by Ruby and Prolog. [22:12:59] it's slower even than Tcl :) [22:13:03] or JS [22:13:23] Yurtle, exactly so why bring up the topic? :P [22:13:40] YurtleTheTurtle, since when did length have anything to do with Open Source? [22:13:44] Gah, the upload form is fsked [22:13:44] Hey don't look at me I'm only instigating the anti-php people [22:13:50] lol [22:13:54] http://www.joelonsoftware.com/articles/fog0000000027.html [22:14:02] on rewriting from scratch [22:14:06] OS has been open source for several years now. "free" is debatable still, but OS it is. [22:14:10] err, java [22:14:14] JSharp: show me 1 person outside sun who understand the code for java and I'll consider it os [22:14:19] anyway, good night [22:14:20] ... [22:14:28] there's little point to this argument I see [22:14:30] :) [22:14:57] anyway, yes, rewriting mediawiki would be a rather pointless exercise -- wasn't suggesting that [22:15:01] Thats fine, it is in fact open source but IMHO its code isn't up to the community standards yet. Its purely a personal vendetta [22:15:01] :P [22:15:16] MaxSem, the upload form is fsked.... it doesnt seem to use index.php ? [22:15:51] ??? [22:16:50] I dunno, I tried... /wiki/Special:Upload&wpUploadFile=/home/user/Pictures/Pennsylvania/Randomfarm.jpg&wpDestFile=Randomfarm.jpg&wpUploadDescription=Random&wpIgnoreWarning=true&wpWatchthis=false [22:17:19] the url is rewritten, it uses index.php [22:17:26] Python is a perfectly good language for writing web apps. [22:17:36] PHP is a horrible language for writing anything. [22:17:42] PHP = :( [22:18:05] I know, assembly is the way to go. [22:18:37] you should use ? instead of first & [22:18:38] YurtleTheTurtle, so, what does it look like O.o ... title=Special:Upload [22:18:43] Ok [22:19:17] ethical:Yes, if your wiki is in the /wiki/ directory /wiki/Special:Upload is rewritten to /wiki/index.php?title=Special:Upload [22:19:43] You can do /wiki/Special:Upload?foo=bar, but not /wiki/Special:Upload&foo=bar [22:19:44] though frankly through index,php it's much less prone to weirness [22:20:18] Ok [22:21:45] Simetrical: You hate PHP :? [22:21:51] Alexfusco5, yes. [22:22:16] *Alexfusco5 wonders why someone that hates PHP develops a PHP website [22:22:33] Because it's what MediaWiki is, unfortunately, written in. [22:23:11] Simetrical: what would you prefer then> [22:23:12] ? [22:24:21] Python :D [22:30:19] ahh [22:30:38] Simetrical: good luck converting all of MW to python [22:30:50] VasilievVV, yeah, Python. [22:30:55] Alexfusco5, I wish. :( [22:31:07] this upload thing is not working: index.php?title=Special:Upload&wpUploadFile=/home/user/Pictures/Pennsylvania/Randomfarm.jpg&wgDestFile=RandomFarm.jpg [22:31:09] Simetrical: and all extensions! [22:31:12] :D [22:31:25] Extensions in python would rock [22:31:29] Anyway :\ [22:32:19] Hi all. I'm looking for a way to dynamically import content from an external web page into my wiki article. I dont need the imported text to be searchable, only displayed with the wiki article. Any recommendations? [22:32:20] oh_so_ethical: that's actually not a bad idea... writing some code so that other langauges can utilize the hooks in MediaWiki [22:32:39] Skizzerz, yeah... uh, what about my url for uploading >_> [22:33:59] Dpotte2: Is the format RSS or some other standard? Or is it a web content? [22:34:11] Web content: pure HTML, retrieved by HTTP. [22:34:45] Hm, your going to have to check the extention list for something as I know of nothing that will do this for you. [22:35:06] Yeah, I found http://www.mediawiki.org/wiki/Extension:Webservice#Installation which looks close, but internal tidy is not an option for this site. [22:35:27] So I wondered if anyone else had recommendations for other extensions that might fit the bill [22:36:10] 03(mod) Set the logo on Hungarian Wikinews - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14753 (10gondnok345) [22:37:54] 03skizzerz * r37292 10/trunk/phase3/ (RELEASE-NOTES docs/hooks.txt includes/GlobalFunctions.php): * Add new hook NormalizeMessageKey to allow extensions to change what system message is being shown before any queries are made [22:38:20] *oh_so_ethical pokes Skizzerz about the url to upload an image [22:39:07] not entirely sure if that's possible to do [22:39:27] Dpotte2: If you don't find what your looking for, I would just edit that extension to your specs [22:39:58] ok thanks. I'll take a look at it. [22:41:05] oh_so_ethical: yeah, the for the wpUploadFile thingie doesn't have a value attribute, so it can't get content auto-filled from a URL [22:47:59] 03skizzerz * r37293 10/trunk/extensions/GroupPermissionsManager/ (5 files in 2 dirs): * various updates for the GroupPermissionsManager extension [22:49:15] Skizzerz: does that extension support custom rights? [22:49:35] Alexfusco5: uh, yes [22:50:10] do you know how to make that work for Extension:Configure [22:50:13] ? [22:50:29] probably not possible [22:50:58] at least not with the way it's currently set up [22:51:10] :( [22:51:21] https://bugzilla.wikimedia.org/show_bug.cgi?id=14744 will never be fixed :( [22:51:42] that's unrelated [22:52:11] that's talking about $wgRestrictionLevels and the like [22:52:21] IIRC $wgGroupPermissions isn't even part of Configure [22:52:55] owait... that's what the bug is about xD [22:53:36] Skizzerz: which are custom rights [22:54:14] I could introduce an option to change where the config files are stored, which would allow them to run side-by-side without issues [22:54:31] (if they don't already) [22:55:01] Skizzerz: hmm comment on the bug and maybe ialex will do it :) [22:55:19] did you test to see if they already WERE compatible with each other? [22:55:50] Skizzerz: they aren't there [22:56:06] the rights [22:56:32] if you meant your extension, maybe :) [22:56:35] no, I mean that if you installed both GroupPermissionsManager and Configure side-by-side if they worked with each other [23:00:42] Skizzerz, ahh :( [23:04:48] Skizzerz, you should write a function to make automated uploading easier [23:04:53] :D [23:05:06] isn't there an upload feature in the API? [23:05:15] Errr, not function, I mean extension O_o [23:05:23] I didn't see anything for uploading via the api [23:05:31] use a bot :) [23:05:53] Skizzerz, that's what I'm working on ;) [23:12:24] <^demon> $wgGroupPermissions['*']['writeapi'] is set to true by default...that seems kinda bad. [23:24:12] ^demon: still relies on the 'edit' permission and $wgEnableWriteApi = true; in LocalSettings.php [23:24:53] <^demon> Yes, I know. Just seems like opening your API to anonymous edits is potentially asking for it :-P [23:26:07] in theory, the api should be no more dangerous than the web UI in this respect [23:26:10] in theory :) [23:27:19] 03skizzerz * r37294 10/trunk/extensions/AuthorProtect/AuthorProtect.php: * spelling fix on variable name [23:41:39] brion: out of interest, was my patch to 14698 too hackish? or would there be a better way? [23:45:12] how do you add pages? [23:45:21] or users how do they? [23:45:51] !search add page [23:45:51] --mwbot-- I don't know anything about "search". You might try: !createpage !info !lucene !mw !rtfm [23:45:58] Lenaud01: they can just browse to the page name and click on the create/edit tab [23:47:00] is there sample like community portal text or anything? [23:47:50] http://artofmisdirection.com/wiki [23:47:56] here is what i got so far [23:49:43] Lenaud01: you... either type the page name into the URL or follow a link to that page, then click the edit tab to add content into it [23:50:32] ahh ok [23:50:35] thats neat [23:50:47] sorry kinda new to wiki's [23:51:54] for like the donate page when I click edit there and put the code paypal gives me it errors in wiki? [23:52:54] brion: I see you enabled WikimediaMessages [23:53:20] I'm glad you figured that out, I probably should have documented the migration procedure [23:53:21] hi [23:55:08] i really like the boxes with cute pictures on the side that this site has and the text inside - http://www.leerwiki.nl/Hoofdpagina [23:55:22] Do you know how i could do something similar? [23:55:54] Is there a way to set pictures as a backdrop in Mediawiki? Is that what has been done? [23:56:27] mib_8gnaoe3u: Its all in the CSS, you can do it [23:56:49] should i be able copy and paste paypal code into donate page? [23:56:56] mib_8gnaoe3u: But those are not backdrops, those are floating above the box. [23:57:06] how do i view the css [23:57:32] mib_8gnaoe3u: Its complicated, you need to view the source and look for it there. [23:58:18] mmmh - thank you [23:58:49] Lenaud01: Proably not... FORM tag is likly banned. But just try it in preview mode. [23:59:30] yea i did and did not work