[00:03:17] I use runJobs.php but it's not doing enough (it actually uses the wgUpdateRowsPerQuery setting) [00:05:14] I'm gonna give it a shot changing that to 100... I'll let you guys know what effect it has... [00:09:42] hmm [00:09:48] I see room for a drastic improvement [00:10:57] (for the record: increasing wgUpdateRowsPerQuery seemed to help a little and have no adverse side effects... our mySQL servers are doing very well though compared to our Apache box, so YMMV) [00:17:18] Are there any devs in here who are familiar with the Squid code? [00:20:59] 03aaron * r39514 10/trunk/phase3/includes/parser/Parser.php: move "continue" statement. Broken position broke mImages and thus flaggedrevs. [00:21:15] 03(mod) Broken UTF-8 cutoff breaks display in some browsers - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=332 +comment (10marcin.cieslak) [00:21:52] brion: ahh, there we go, parser and flaggedrevs get along again :) [00:23:33] I want to differ the output for Page title and Page text matches on Special:Search. but I can't find a way to set something like if( $titleMatch ) [00:24:35] cos I think the term highlight in title matches is pretty useless and I only want it to display on text matches [00:25:36] esp since the TITLE match extracts the TEXT match term [00:27:22] what search is mediawiki.org using? I see it doesn't differ anymore and also finally has the total results number [00:32:19] ok anyway. i have another 1.12 to 1.13 problem: some dev once helped me showing updates like article moves immediatly on Special:Newpages. it doesn't work anymore with this code in LocalSettings: http://rafb.net/p/hjLXi093.html [00:39:33] 03(mod) Broken UTF-8 cutoff breaks display in some browsers - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=332 (10marcin.cieslak) [00:39:59] 03aaron * r39515 10/trunk/phase3/includes/specials/SpecialAllpages.php: truncate super long pages (bug 15186) [00:40:11] 03(FIXED) Special:Allpages looks funny with long page names - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15186 +comment (10JSchulz_4587) [00:57:43] 03aaron * r39516 10/trunk/phase3/includes/specials/SpecialAllpages.php: check if $lines is empty [01:07:41] 03(NEW) ipblock-exempt exists where it shouldn't and isn' t listed where it should be - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15193 normal; normal; MediaWiki: General/Unknown; (mike.lifeguard) [01:26:24] ello all, got a quick question [01:26:36] trying to put a banner for a logo on MonoBook [01:26:48] can't get it to work [01:26:56] anybody done it yet, got a site I can check your css at? [01:27:46] I want the logo above where it would usually be [01:27:52] because it is wider [01:28:04] and globalWrapper is giving me troubles [01:33:16] Hi... I'd like to put boxes on my wiki similar to http://meta.wikimedia.org/wiki/Template:Notice [01:33:28] Copying that code over as-is doesn't really work [01:33:50] Do I need to add my own CSS rules, or does mediawiki have some built-in CSS classes by default? [01:34:00] I couldn't find a related FAQ [01:34:06] MattJ: what are you seeing when you try it [01:34:30] See http://wiki.jabber.org/index.php/JabberWiki:Current_events [01:34:51] It's part of the way there [01:37:15] MattJ: did you pull in the css too? [01:37:21] MattJ: you need the css [01:37:27] Right [01:37:40] Which is why I was asking if MediaWiki had some default classes for this [01:37:41] http://mibbit.com/pb/IYC3ZI [01:37:44] or if I need to add some [01:37:55] oh, well yes add what I pasted [01:37:58] to main.css [01:38:06] Ah, ok, many thanks :) [01:38:11] yup [01:38:32] to main.css? [01:38:50] why not just added it to MediaWiki:Common.css? [01:38:51] oh no [01:38:53] not main [01:38:59] common so it goes to all skins [01:39:07] Ah [01:40:51] Magic, thanks all :) [01:44:39] so any thoughts on how to make a
above globalwrapper on MonoBook? [01:46:17] celeretaudax: look for a hook that'll let you do it, or add it manually into the skin [01:47:01] celeretaudax: meaning into Monobook.php [01:47:02] I tried adding it manually but I can't get it to stay above the globalwrapper [01:47:58] eh? how so? how could it go anywhere else? heh [01:48:51] I have no clue [01:48:54] 03dale * r39517 10/trunk/extensions/MetavidWiki/ (13 files in 6 dirs): some updates to the stream interface [01:49:13] 03(mod) Add rd_interwiki colum to redirect table - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14418 (10innocentkiller) [01:49:35] what are you trying to do? [01:50:08] just put a 100% width divider above everything on the page [01:51:10] and when does it not stay? [01:51:29] did you remember to clear your browser cache? [01:51:40] you may be hitting cached pages [01:51:50] yeh I checked that, on different boxes too [01:52:13] when does it disappear? [01:52:38] it doesn't it just shows up below the top navigation tabs [01:52:56] oh. well, thats interesting [01:54:15] have you tried putting it right after the body tag? [01:54:31] yeah [01:54:36] no clue why it doesn't work [01:54:40] other than floats and z-index [01:57:07] i'd have to guess that is the reason. i tried it and I see what you mean [01:57:20] yeah, I'll have to play with it more I guess [01:57:37] could always make your own skin [01:57:52] thats a hell of a lot of work though [01:58:17] yeah I already changed a lot of monobook, might as well go all the way [02:21:13] I'm having an unusual issue with ShortURLs and wondered if anyone had ever come across it.. for some reason any URL with an apostrophe in it seems to cause an Internal Server error and I can't work out why, much as I try. [02:29:47] Orlando: do you have a link to the site? [02:29:57] or is it private? [02:30:19] Not private, just messy and chaotic right now :) [02:30:27] http://www.arkaz.come/wiki/ [02:31:57] Maybe it's more of an apache or mod_rewrite question than anything. I tried removing index.php and replacing it with a one line script that echos "test" just to see if it was anything in the scripts, but it was pretty much the same deal. [02:32:00] how are you doing the short ur;s? [02:32:04] 14(INVALID) ipblock-exempt exists where it shouldn't and isn' t listed where it should be - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15193 +comment (10cbrown1023) [02:32:24] http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_no_root_access [02:32:27] That way :) [02:32:53] I removed the last line though "RewriteRule ^/*$ wiki/ [L,QSA]" as I didn't want all urls rewritten, only those with /wiki/ in them. [02:33:45] And it works fine for everything, except when the URL has an apostrophe, then it dies. I'm guessing it's an apache/mod_rewrite/server setup issue somewhere in there, more than anything. [02:35:21] yeah, thats likely [02:35:23] 04(REOPENED) ipblock-exempt exists where it shouldn't - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15193 summary; +comment (10cbrown1023) [02:35:27] what do your logs say? [02:35:59] Shared Host, alas. Otherwise I'd have checked them ages ago. The joys of shared hosting, etc. [02:36:17] they don't give you your own logs? [02:36:17] If the hosting account hadn't been paid for for about a year, I'd have moved it from that oone [02:36:24] not the apache error_log, at least. [02:36:31] wow. thats lame [02:36:39] It does make things tricky, yea :/ [02:36:43] i have crappy shared hosting, and i have access to mine [02:37:05] I think I'm doomed to just not use short urls, lol [02:38:10] But yea, it is a little bit lame. Access to the error_log is pretty essential for stuff like this. [02:39:14] Strangely enough they do give me access to the access_log though, heh [02:39:31] yeah [02:39:44] pastebin your rewrite rules [02:40:10] Sure, one sec [02:42:22] http://www.pastebin.ca/1175232 [02:44:05] I tried their tech support, but they basically gave me a "tech support" style answer. [02:45:26] Orlando: try prepending a / to w/index.php?title=$1 on line 23, and also to wiki/ on the next line [02:45:58] *grin* Tried both already, but I'll give it another short [02:46:02] so it'd look like /w/index.php?title=$1 and /wiki/ instead [02:46:41] Orlando: arent you missing PT on your rules? [02:46:57] Same thing, alas. And it's /just/ with URLs that have an apostrophe. [02:47:10] Ryan_Lane: not according to http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_no_root_access at least. [02:47:15] does anyone else think Rebecca Soni is pretty darn cute? [02:47:34] Orlando: RewriteRule ^wiki/(.*)$ w/index.php?title=$1 [PT,L,QSA] [02:47:38] Schroeder: this is a tech support channel. go elsewhere. [02:47:50] Oh yea, I must have removed that from my endless messing with things. [02:48:12] i doubt that'll help though [02:48:28] Seems not, again, sadly :/ [02:48:41] I'll probably try their tech support, again, and get another tech support answer [02:49:09] Orlando: wait, I think I've found the problem [02:49:34] you need RewriteCond to detect apostrophes, rather than RewriteRule [02:50:26] What would the rewrite rule need to be changed to? [02:50:41] looking now. :) [02:52:19] hmm, actually, no [02:52:26] it's likely a server limitation. :/ [02:52:48] Joys. :D [02:53:02] I did wonder. I've had it work fine on other servers [02:53:49] I know they don't have exec disabled for php, wonder if I can just create a symlink ... [02:54:27] At least, I think they're a symlink method. I can't recall now *goes back to check the wiki* [02:58:56] Orlando: maybe you can escape the apostrophes? [02:59:29] tried that too :D [03:00:01] and tried replacing/removing them entirely [03:00:03] No joy :( [03:00:24] have you tried adding NE to the flags at the end? [03:00:31] for 'no-escape' [03:00:45] Orlando: I mean with "RewriteMap escape int:escape" [03:00:54] ie: RewriteRule ^wiki/(.*)$ w/index.php?title=$1 [PT,L,QSA,NE] ? [03:01:11] Ryan_Lane: Not sure on that method, you'll have to talk me thought it some. ;) [03:01:45] Orlando: put it right before the other rules [03:02:15] Orlando: right after the comments about "mediawiki shorturl" [03:02:29] alrighty, fingers crossed [03:02:30] *Orlando updates [03:03:21] Hm, that just leaves me with every page giving 500 errors [03:03:26] lol [03:03:40] well, I guess that didn't work so well :) [03:04:00] hmm [03:04:05] it did let me create a symlink though! [03:04:06] ack [03:04:09] i forgot something [03:04:11] It's like.. strange useless magic. [03:04:21] sorry :) [03:04:27] no worries [03:04:32] symlink was a bad idea it seems.. [03:04:41] What's the other thing I need to do? [03:05:01] RewriteRule ^wiki/(.*)$ w/index.php?title=${escape:$1} [L,QSA] [03:06:11] oh, you probably still want PT there too [03:06:22] http://www.arkaz.com/wiki/Main_Page%27test <- still errors :< [03:06:28] so: RewriteRule ^wiki/(.*)$ w/index.php?title=${escape:$1} [PT,L,QSA] [03:06:51] I may just have to mark this one down as webhosting company fail [03:06:52] ah, lame [03:06:59] maybe so [03:07:17] I've spent like.. 2 weeks on it trying various things in the evening. :D [03:07:51] yeah, it totally works on my hosted site [03:08:00] i'd blame them :) [03:08:22] The hard part is convincing them to actually look at their setup :D [03:08:38] ask them to do the alias setup for you [03:08:47] lol, I did. [03:08:50] it is far more reliable [03:08:52] oh [03:08:53] They were not much use [03:08:56] heh [03:09:02] ... unsurprisingly, I imagine [03:09:10] what service is this? [03:09:15] i'll make sure to avoid them [03:09:33] Blue Domino generally [03:10:36] They're not all bad, on the whole. They provide some useful stuff. But this one is really not awesome. [04:00:04] 03(mod) ipblock-exempt exists where it shouldn't - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15193 (10mike.lifeguard) [04:04:19] is there a way to make an image follow your screen as you are scrolling in mediawiki [04:05:56] YEs, lemme just get it... [04:06:37]
[[Image:X.jpg]]
[04:09:03] that works except if I use [[image:x.jpg|right]] it doesnt stay to the right anymore [04:25:22] has anyone noticed that the edit involved in moves tends to get lost when a move is undone? [04:28:03] Hello? [04:28:39] hey [04:29:28] I have a question about MediaWiki namespaces [04:29:34] can you help? [04:29:39] Best to ask. ;-) [04:29:49] Sweet! [04:30:08] Well I am trying to create a notes like system to use for school...for me and my brother [04:30:21] but I goto CollegeA and he goes to CollegeB [04:30:36] and I have classes (for example) Chemistry, Math and English [04:30:50] and he has Chemistry, Physics and PreCalc [04:31:14] and then for each class I want to have a page of notes named by their date (example: August 1 2008) [04:31:24] so then....the College would be the Category [04:31:30] the Class would be a subcategory [04:31:36] and the page of notes would be a Page [04:31:57] the only problem is that I cna't have 2 august 1 2008 in the Wiki [04:32:06] so someone recommended having namespaces [04:32:17] What about using subpages? [[College/Class/August 2 2008]] ? [04:32:18] so heres my question: can I have sub-namespaces? [04:32:28] No, sub-namespaces aren't possible. [04:32:28] oooo [04:32:35] But you can have subpages of namespaces. [04:32:37] thats like exactly what I want to do MzMcBride! [04:32:43] hm... [04:32:51] They'll have a little 'breadcrumb' at the top for navigation. [04:33:09] subpages...so then the pages are seperated by like slashes (/) [04:33:17] what do you mean by breadcrumb [04:33:45] foo >> bar would be for foo/bar/baz [04:34:00] oh ok [04:34:06] yea..thats exactly what I want [04:34:11] so how hard is that to setup? [04:34:34] what's the opposite of hard? [04:34:37] ;) [04:35:14] hmm..ok [04:35:25] so is there a website that shows me how to easily set it up? [04:37:16] type it in the location bar, edit page. [04:37:16] Just create a page named "Foo/Bar" [04:37:32] If you're using the (Main) namespace, you'll need to enable subpages. [04:37:46] is the Main namespace the default one? [04:38:14] Yes. [04:38:26] http://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages [04:38:33] That's the variable you need to change. [04:39:03] and is there a way I can control user permissions with the subpages? because I only want my brother to edit the pages for his college [04:39:20] You can restrict editing somewhat. [04:39:23] !rights | Notes [04:39:23] --mwbot-- Notes: 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 >. [04:40:04] man...you guys are awesome [04:40:08] this is really helpful [04:43:26] 03(NEW) Special:Log/Username should work - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15194 15enhancement; normal; MediaWiki: Special pages; (MZMcBride) [04:49:55] can I create user groups? [04:50:06] so that I can allow GroupA to access this area of my wiki [04:50:14] and GroupB to NOT access that same area? [04:51:09] techdude2007: http://www.mediawiki.org/wiki/Manual:Preventing_access [04:51:59] and how do I put users into Groups? [04:52:08] Special:UserRights. [04:52:21] To create groups, you edit LocalSettings.php. [04:52:21] http://www.mediawiki.org/wiki/Manual:User_rights [04:53:05] 03(WONTFIX) Special:Log/Username should work - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15194 +comment (10JSchulz_4587) [04:53:38] AaronSchulz: Bah. [04:53:49] AaronSchulz: https://bugzilla.wikimedia.org/show_bug.cgi?id=15146 [04:55:54] does anyone have any advice on how to correctly add line breaks or paragraphs to MediaWiki:Newarticletext ? [04:56:19] Hit return twice? [04:56:22] when I add a double line, it doesn't work. [04:56:47] MZMcBride: originally, it had single line breaks, and still split it into paragraphs [04:56:48]

[04:56:48] 03(mod) Special:Log/Username should work - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15194 (10N/A) [04:56:51] Or

[04:57:11] MZMcBride: that's what I thought, but when I add
it puts it in a paragraph! [04:57:17] I'll try

[04:57:24] what does that Special:Log/Username do? [04:57:35] Nothing at the moment. [04:57:38] It's a feature request. [04:57:48] and I see your the creator [04:57:52] what is the plan for it to do? [04:57:57] ok,

works. [04:58:00] strange [04:58:13] techdude2007: To list logs for a specific user. [05:00:29] oh ok [05:06:39] it works now, actually. :) [05:06:40] 03krimpet * r39518 10/trunk/phase3/includes/specials/SpecialLog.php: Per request in bug 15194, add more syntax for Special:Log, similar to Special:ListUsers changes in r39269 [05:07:20] 03(FIXED) Special:Log/Username should work - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15194 +comment (10francine) [05:20:22] how do i change the font on something i am posting [05:23:58] ... [05:24:09] s/Arial/whatever font you want. [05:24:45] thanks [05:31:11] MZMcBride where does it get these fonts from? my local pc or the server? [05:31:24] It uses the fonts on your computer. [05:32:06] nice [05:36:26] 03(mod) cat_hidden field isn't used - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15191 (10tstarling) [05:43:23] 03(WONTFIX) Bizarre parser error - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14376 +comment (10tstarling) [05:57:02] *Werdna slaps MZMcBride [05:57:15] :O [05:57:19] What'd I do now? [05:57:24] You should never set a font-family without a fallback to one of: sans-serif, serif, monospace [05:57:43] The browser will fallback if it's not set inline, no? [05:57:53] If not, the browser sucks. [05:57:56] Yes, but it has to know what to fall back to.. [05:58:11] MediaWiki specifies sans-serif. :P [05:58:30] Though, yes, generally one should specify. [05:59:40] 03krimpet * r39519 10/trunk/extensions/CheckUser/ (CheckUser.php CheckUser_body.php): Per bug 14839, split the 'checkuser' right into 'checkuser' and 'checkuser-log', to facilitate creation of an ombuds/oversight group; the stock CheckUser group will continue to hold both rights. [05:59:58] *Werdna tickles Krimpet [06:00:06] Bugzilla seems a bit slow... [06:00:07] *Krimpet stabs Werdna by reflex [06:00:52] Krimpet: did you want to be centralauth'd? [06:00:58] Werdna: sure. :) [06:01:14] okay, include /home/andrew/local_wiki_config.php in your LocalSettings.php [06:01:23] 03(FIXED) Split the checkuser right into checkuser and checkuser-log - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14839 +comment (10francine) [06:01:32] Krimpet: and then run the migratePass0 script. [06:05:36] Bah. svn.wikimedia.org is slow for me as well. :/ [06:05:56] Warning: Invalid argument supplied for foreach() in /home/krimpet/public_html/lua/includes/db/LBFactory_Multi.php on line 160 [06:06:15] how do i center a header [06:06:21] like ==Blah== [06:06:37]

...

? [06:06:59] I see, is there a wiki way of doing it? [06:07:10] Not really. [06:07:14] ok thanks for the help :) [06:07:41] Werdna: see above [06:08:07] moment. [06:09:18] *Krimpet looks for more bugs to fiddle about with [06:09:27] Krimpet: try now. [06:11:08] Fatal error: Class 'CentralAuthUser' not found in /home/krimpet/public_html/lua/extensions/CentralAuth/migratePass0.php on line 38 [06:12:54] oh, did you enable the CentralAuth extension? [06:13:01] that's not done for you. [06:13:28] I did [06:14:33] *Werdna has a look [06:14:37] how would I put a table below another table? a
between the two only lowers it one line [06:14:42] DB connection error: Access denied for user 'krimpet'@'%' to database 'centralauth' (vps2.epstone.net) [06:14:56] Can you use the {{Clear}} template? [06:15:20]
should do it. :) [06:15:58] Where does one edit the text outputed for Special Pages like Special:Upload? [06:16:04] nice [06:16:08] why did that work? [06:16:52] Krimpet: worked for me. [06:17:17] well, now it did :p [06:22:16] Krimpet: you should now be able to log into epstone.net/testwiki with the same credentials. [06:36:22] <_wooz> lo [06:36:47] heya MaxSem [06:37:21] hiiii [06:40:28] TimStarling: For that LinkHook change... would it be bad to create a new parser class for experimenting on so that the Parser_DiffTest could be abused? [06:41:27] if you count that as abuse, I don't see how you could use it without abusing it [06:41:42] heh [06:41:59] but are you saying you want to check it in with a new file? [06:42:21] Perhaps? [06:43:10] I think I have to look at your proposed change again [06:45:01] Dual-passing links rather than a single-pass; Looks like the adiquate description from what it currently looks like. [06:45:30] ie: Handle [[Link]] before [[Image:...|... instead of guessing [06:45:38] you're not going to be calling a hook chain for every link, are you? [06:45:50] Hook chain? [06:45:55] wfRunHooks() [06:46:22] Nope... in fact with the complexity of this it wouldn't work out that great to use one of those [06:46:32] and you want to make a tree again? [06:46:42] Something like a tree... [06:46:51] Probably a bit of a limited level of that [06:46:53] you're going to undo all the work I just did on memory efficiency [06:47:04] and it's going to be slower as well [06:47:13] Actually, it might be possible to do that without undoing all that completely [06:47:53] The best way to test would probably be to build it, then compare speeds [06:47:56] have you checked anything in yet? [06:48:02] Nope [06:48:08] have you written anything yet? [06:49:01] Only a light bit of hooking for media links (Broken because of how | and links show up in the params; which is what I'm trying to fix); But most of that stuff is invalidated by the changes you made [06:49:37] *OverlordQ wonders if brion is abouts [06:49:42] can you explain how you want it to work? [06:50:04] Hmmm... I'm bad at this, but let's see... [06:50:04] I'm particularly interested in how you imagine the interface between the parser and the extensions will be [06:50:16] Oohh... interface [06:50:30] If it were me, I'd call a hook with the whole tree once, at the end. [06:50:48] ^_^ If you are talking interface rather than changes to the parser, then I got that [06:51:06] Firstly, there are a few cases we need to consider: [06:51:32] Werdna: and if Dantman said he was going to do that, I'd tell him to rethink [06:52:17] Dantman: I'm listening [06:52:42] A) Link alteration (Non-embed; ie: Things like our special existence cases for Special:, Media:, Image:) [06:53:10] B) Embedding (Embedding content; Such as Image:) [06:54:03] so all of these depend on namespace, right? [06:54:07] C) Patterns (Things like SMW where rather than a namespace, they use a special pattern) [06:54:15] yes, for everything cept C [06:54:16] ok, the first two then [06:55:12] so for the first two, you could have the extension register a callback for each namespace it's interested in, during firstCallInit [06:55:19] Note that A) and B) merely represent callback locations where a function would alter output [06:55:32] similar to parser functions [06:55:40] Mhmm [06:55:49] Well, not just Namespace [06:56:21] magic word prefixes too? [06:56:29] no, I mean [06:56:48] You might want NS_EMBED to have a link altering callback, and an embed callback [06:57:06] why? [06:57:09] ie: So that you can embed when [[Embed: is called, but alter existance checks when [[:Embed is called [06:57:22] Similarly to Image: [06:58:19] that sounds very much like you want Embed: to be a namespace [06:58:31] if it walks like a duck and quacks like a duck [06:58:33] yes, Embed: is a namespace... [06:58:49] I mean, not 'for each namespace' [06:59:07] You might have two different callbacks for two different purposes on the same namespace [06:59:16] links, vs. embeds [06:59:40] ^_^ Don't you love miscommunicated tangents [06:59:59] you mean initial colon and no initial colon? [07:00:14] Pretty much. [07:00:20] or are you saying you actually want to call every single link with no initial colon an "embed"? [07:00:29] No [07:00:42] Only if the namespace is embedable [07:01:03] couldn't you just have one callback, and pass the initial colon to it as an option? [07:01:25] $callback( array( 'title' => $title, 'initialColon' => true ) ) [07:01:42] There are actually two different locations inside where these are handled... but perhaps [07:01:51] Might take a bit more refactoring [07:02:41] it's really best if the way the extensions see the parser is only distantly related to the way the parser actually is [07:02:50] mhmm [07:02:51] that way you can refactor the parser without changing the interface [07:03:30] so what would the hook return? [07:04:02] there's the issue that the output of replaceInternalLinks() is mid-main-pass [07:04:03] I was actually considering at one point passing something like that as an argument and having the same function handle the cases differently... I dismissed it since it didn't seam to fit the way anything else in MW does things (fit smarty more) [07:04:08] Oh that [07:04:12] which is a kind of text which would seem very strange to an extension [07:04:27] http://dev.wiki-tools.com/wiki/LinkHook [07:05:08] When we get to the point where we can pass an extension the parameters in an embed [07:05:35] The data is actually something like "foo|bar[[link|baz]]" [07:05:49] the initial colon works differently for images and categories [07:05:56] Mhmm [07:05:56] but it works the same for every other kind of link [07:06:26] so if an extension wants to have a link type that works the same as every other kind of link: special, media, etc., they don't want to have to define two functions [07:06:36] No... [07:07:11] I had a flag... if you didn't have a media embed, you just never added a callback for that [07:07:33] it just sounds like you're too focused on a particular application [07:07:51] Mhmm... and multiples at that [07:08:00] you have the chance to make this really really general and powerful [07:08:41] Really, my important case right now is making sure that |'s don't get screwed up when extensions muddle with things [07:08:56] example? [07:09:10] Well look at the link [07:09:31] what link? [07:09:37] http://dev.wiki-tools.com/wiki/LinkHook [07:09:48] that looks like a whole page of stuff I don't understand [07:09:55] Ok... let's see [07:09:56] just give me a link right here in this channel [07:10:08] links are generally pretty short [07:10:27] [[Image:Filename.ext|Foo|Bar[[Link|Baz]]...]] [07:11:02] So we're at the point where we're going to pass an extension a callback for the Image: ns, with a set of parameters after the | [07:11:45] 03aaron * r39520 10/trunk/extensions/FlaggedRevs/FlaggedArticle.php: only show notice for users [07:12:05] The data that we have at this point, is the $nt (Title) object, and a string containing "Foo|Bar[[Link|Baz]].." [07:12:50] Currently the parser handles this by recursively parsing the links inside the text (in fact there is a note that it'll parse everything) [07:14:18] This point is actually probably the reason for the whole Image embed mess. [07:15:07] So we have 3 options: [07:16:17] Hi, [07:16:18] I use a Add-Domain for hosting my Site. I own the domain www.tamilbuddhism.com, however the site is hosted @ www.tamilcc.org. [07:16:18] The E-mailing module of Mediwaiki uses tamilcc.org domain defaultly. How should I force it use the tamilbuddhism.com Domain ? [07:16:28] hmmm... I'll write the old stuff.. though I just thought of something [07:16:45] A) Pass the callback a string with a mess of link holders (again ignoring the fact that links may actually have a different meaning within the embed/link) [07:17:43] B) Pass the callback the string verbatim (Allowing authors to likely do something screwy with a explode | and breaking links inside of their caption area) [07:18:20] C) Pass them an Array where we have already split the | in the proper locations for them [07:18:28] sorry, was distracted for a minute [07:18:34] Mhmm [07:18:49] Though, I may need to research your new LinkHolders a bit more [07:19:30] They didn't exist when I was thinking [07:19:56] In fact I didn't notice the different ways you could [07:20:00] it's the same [07:20:05] 'expand'? till a bit earlier [07:20:28] my vote is for A [07:20:29] Oh ok... n/m [07:20:47] I got confused by a few function names [07:22:08] Any idea how to handle say, a bad Image: tag inside of say, a video Embed:? [07:22:34] how bad? [07:23:34] ie: Looking at the recursive stuff now... it would basically try to embed an image inside of the caption for a Video... mkay... maybe a different question [07:23:44] hmm, I guess it could come unstuck with present use cases [07:23:51] Ok, how much data do we have inside of the link holders? [07:24:16] with my latest changes, you don't necessarily get link holders [07:24:28] you could get fully expanded links [07:24:36] Eeek... that's not good [07:24:55] Fully expanded links would pollute tooltip text? [07:25:32] I think it would be nice to let the extension decide on how to expand the links inside of the text it's given [07:25:34] ie: [07:26:52] Back to WikiText (Links aren't valid inside of the caption, don't use them), back to plaintext (For tooltips where we don't want [[link]] or an actual link), or even a case where all links even those like Image: would be simple links [07:27:47] thinking [07:27:48] ie: [[Embed:Video|[[Image:Foobar.png]]]] and the callback for the embed tag could decide that Image: should actually be link rather than an image embed [07:29:32] Parser::makeImage() calls both $holders->replaceText() and Sanitizer::stripAllTags() on the alt text [07:29:45] so presumably that will give you roughly the same text whether it's been expanded or not [07:30:31] for an image inside an image: maybe not [07:30:56] Oh... also remember SMW [07:31:17] no... an image inside an image is OK [07:31:22] because image links don't make link holders [07:31:36] O_o eeek [07:31:54] so it's still invariant [07:34:39] the problem with option B is that it can take O(N^2) time [07:35:04] Eh? Do you mean C? [07:35:15] no, B, passing the string verbatim [07:35:26] because you have to find the end of the link, which is O(N) [07:35:37] We already do that [07:35:41] then the next recursion level has to find the end of the link too, which is another O(N) [07:35:59] Remember what I said about the current state [07:36:18] The data we have is the $nt object, and the string [07:36:38] Believe it or not, but it does contain something like "foo|bar[[link|baz]]" [07:37:18] really... it makes me think... "Why are we using a recursive call, instead of looping twice?" [07:37:21] we don't do it already, because we limit the recursion level [07:37:44] the O(N^2) comes from N per level times N levels [07:37:53] if you only have 2 levels, then it's O(N) [07:38:44] ^_^ And I guess that's why An image inside of an image, with a link inside breaks utterly? [07:38:48] avoiding O(N^2) time in this case was actually one of the motivations for using a tree in the preprocessor [07:39:29] you could explicitly limit the level, to say 5 [07:39:37] that'd fix the time order [07:41:35] the same time order issue is present with option C unless you construct the full tree [07:41:46] 03(mod) Image, category pages list both draft and stable links, mixed together - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14557 (10JSchulz_4587) [07:42:02] but if you do have a full tree, that makes it more complex for extension authors, because they don't understand trees [07:42:31] limiting the recursion level does seem like a reasonable solution [07:42:32] You did fairly well with ParserFunctions [07:43:07] we don't actually want links nested to 5000 levels do we? [07:43:14] heh... no [07:43:43] and actually there's a few types of recursion depth limit in PPFrame::expand() [07:43:52] Of course [07:44:53] re ParserFunctions: yes, I understand trees [07:45:09] 03(mod) Image, category pages list both draft and stable links, mixed together - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14557 (10JSchulz_4587) [07:45:12] but you don't see all the other setFunctionHook() users migrating to SFH_OBJECT_ARGS do you? [07:45:32] and when you do use SFH_OBJECT_ARGS, the code is longer and uglier [07:45:46] ^_^ Really, I kinda like it... heh [07:46:13] Then again... half my functions need control over expansion [07:47:44] Hmmm... I should experiment with a little thought I just had [07:48:13] ok, so I think B or C are feasible, but with limited recursion depth and probably limited total node count [07:48:24] Mhmm [07:48:35] Well, scratch B [07:48:46] B isn't really what you think I meant it as [07:49:16] I meant just passing them the string we already have and letting them do all the ugly stuff we do [07:49:32] ^_^ I wrote that one off from the beginning [07:49:37] if we can avoid constructing an array at all at the top level, that would be great [07:49:49] Which array? [07:50:09] an array of all links in the document [07:50:17] Hmmm... [07:50:29] I had a test case with 10,000 links [07:50:37] taken from en.wikipedia.org [07:50:40] I had a small thought on an experiment with preg_split [07:50:58] yeah, preg_split bad, explode bad [07:51:01] hi [07:51:09] StringUtils::explode good :) [07:51:17] i want to ask some questions [07:51:18] ;) Tim, not if you notice something I realized earlier on today [07:51:33] when i made a bot [07:51:43] how can i run it [07:52:10] if it's for example spell cheek bot [07:52:25] on your own wikipedia? [07:52:25] it it run as a normal php script [07:52:27] Your mapping of offsets to explode, can actually work for a regex 'split' as well... Instead of actually running preg_split, you use preg_match_all to find all the offsets [07:52:38] yep on own wiki [07:52:39] *mediawiki [07:52:49] most bots are run from the command line [07:53:01] if it's php [07:53:02] StringUtils::preg_split() FTW [07:53:10] heh [07:53:19] can i made it as a cron job [07:53:21] you wouldn't use preg_match_all though [07:53:27] Bahaa: depends [07:53:29] you'd use repeated calls to preg_match [07:53:52] But I was thinking about how using preg_split, I can actually turn a string like "Foo [[bar]] baz" into array( 'Foo ', '[[', 'bar', ']]', ' baz' ) [07:53:58] like what StringUtils::delimiterReplaceCallback() does [07:54:04] OverlordQ, how ? [07:54:43] yeah, it's a tokenizer built into PHP, it's great [07:54:51] until you realise that it's using a gigabyte of memory [07:54:53] then it's not so great [07:54:56] heh [07:55:01] if it spell cheeks article for wxample [07:55:08] example* [07:55:23] ;) Thats why all this alluding to preg_split, would actually be handled by those backend objects that really use offsets and strings [07:55:43] I really dont think anybody in here can tell you anything since we have no clue how the bot is written. I'd ask whoever wrote it. [07:56:21] i just ask [07:56:39] TimStarling: Have you thought of or already made the Explode iterator support 'item replacement', I mean, like what array_splice would do? [07:57:06] cuz we are forming a team of developers for egypt chapter [07:57:14] Rather than splicing an item... it would edit the string, and tweak the list of offsets [07:57:23] and i'm a new meidawikian :) [07:57:42] i install it on my website [07:57:44] crikey, I think I just sent my laptop into swap trying to do a demo of how bad preg_match_all is [07:57:53] heh [07:57:54] and wanna to make some tests [07:57:54] *TimStarling removes a zero [07:58:23] OverlordQ, [07:58:28] Theoretically we could take a string with image tags, check for the [[ and ]]'s inside, and replace those with link holders without ever moving away from the string [07:58:30] OverlordQ, r u here ? [07:58:58] > $test = str_repeat('x', 100000) [07:59:02] > print memory_get_usage(true) [07:59:11] 6815744 [07:59:12] > preg_match_all('/x/', $test, $m, PREG_OFFSET_CAPTURE) [07:59:12] > print memory_get_usage(true) [07:59:12] 69992448 [07:59:22] > print (69992448-6815744)/100000 [07:59:22] 631.76704 [07:59:49] are you convinced yet? [08:00:01] heh [08:00:05] can anyone tell me how to run a bot [08:00:49] TimStarling: Have you thought of or already made the Explode iterator support 'item replacement', I mean, like what array_splice would do? [08:00:54] of course it should be run automatically [08:00:58] you don't need item replacement [08:01:15] doTableStuff() used item replacement, I rewrote it to use string concatenation [08:01:31] mkay... so just creating a new string [08:01:35] yes [08:01:45] can this semply done by cron jobs in the OS or is there another thing to do ? [08:02:26] Also, my alluding to regex, could probably be done with some method of a string explode that checks for '[[' or ']]' [08:02:45] 'string explode' as in something like your ExplodeIterator [08:02:47] yes, or using strpos directly [08:03:00] ExplodeIterator is just a pretty wrapper around strpos() [08:03:06] mhmm [08:03:45] replaceInternalLinks used item replacement as well actually, it had array_splice() [08:03:49] I rewrote that too [08:11:20] Ack, crap... multilined captions work... time for more mental drafting [08:15:57] image link syntax really sucks... image embedding should never have used link syntax at all. [08:16:53] ^_^ Strict use namespaces [08:17:13] {{Image:Foo.png}} would actually embed an image rather than a template... heh [08:23:38] Hmm... perhaps it's time to break [08:26:34] 08:04 < TimStarling> crikey, I think I just sent my laptop into swap trying to do a demo of how bad preg_match_all is [08:26:50] wow, an Australian who actually uses the word 'crikey' [08:27:18] here was me thinking that word had been disowned by Australians since Steve Irwin [08:28:17] TimStarling: How different is memory usage between (Replacing [[]]'s with markers and creating a flat hashtable of those (there can be markers in the hashtable values) and replacing markers till there are no more markers) (Creating a tree out of something, then expanding it) [08:28:26] Are you sure he's a real Australian? [08:28:31] I am sure. [08:28:36] I've met him. [08:28:39] hmm, plain text chat lends itself to accidental racism [08:29:13] there isn't any good way to convey an accent (as opposed to a dialect, via spelling) except with regional interjections, "crikey" and "mate" in australian for example [08:30:09] Eh? ...... long pause.... heh [08:31:04] convo killer... fa fa fa fa, fa-fa-fa-fa-fa-fa, better, run run run run run run run away.. [08:32:42] *Splarka does know some canadians that say "eh" and "aboot", and some that don't... [08:32:55] heh [08:35:18] (define :FS "First Slaughter"):"Full Screen" [08:41:58] 03(mod) Add rcuser= and rcexcludeuser==?UTF-8?Q?=20=C3=A0=20la=20prop?= =revisions - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14200 (10maxsem.wiki) [08:43:19] Dantman|FS: just test it [08:43:29] Mhmm... [08:44:18] I like crikey [08:44:29] I don't think it's specific to australia [08:44:43] but certainly uncommon in the US [08:45:51] 03werdna * r39521 10/trunk/extensions/DeleteQueue/ (DeleteQueue.i18n.php DeleteQueueInterface.php ReviewForm.php): A few mistakes in messages [08:46:41] TimStarling: I'm thinking specifically of crocodile hunters. [08:46:49] 03(NEW) Allow .ttf files - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15195 15enhancement; normal; Wikimedia: Site requests; (wikipedia.kawaii.neko) [08:51:18] 03siebrand * r39522 10/trunk/extensions/MetavidWiki/languages/MV_Messages.php: Consistency fixes [08:53:04] I bet more non-australians use it than australians, thanks to "irony" being so popular [08:55:01] Mirriam-Webster's says it was first attested in 1838 [08:55:15] 03werdna * r39523 10/trunk/extensions/DeleteQueue/SpecialDeleteQueue.php: Fix fatal errors for non-deletediscuss queues [08:59:24] 03werdna * r39524 10/trunk/extensions/DeleteQueue/DeleteQueueInterface.php: Fix nomination log entries [09:02:58] I've heard it used elsewhere as well [09:04:15] 03werdna * r39525 10/trunk/extensions/DeleteQueue/DeleteQueue.i18n.php: Fix breakage for non-mainspace pages [09:10:09] Werdna: just a reminder: remove ~~~~ from Deletequeue-discusscreate-text [09:10:30] siebrand: ah, yes. [09:10:38] I was reading through what you said before [09:13:18] Werdna: ah, then that will be in there. [09:14:01] yeah, but I overlooked that somehow [09:14:08] 03werdna * r39526 10/trunk/extensions/DeleteQueue/ (DeleteQueue.i18n.php DeleteQueueItem.php): Move signature out of message [09:14:38] Werdna: you think you're done processing the comments? But I remember at least two more without looking at the scrollback :) [09:14:46] s/But/Because [09:16:00] 03werdna * r39527 10/trunk/extensions/DeleteQueue/DeleteQueueItem.php: Purge cache after votes and roles added [09:16:03] siebrand: shush. I did half of them and then went back to doing schoolwork :( [09:16:19] Werdna: just asking. Damn schools and their work. [09:21:06] 03(WONTFIX) LiquidThreads contains hard coded language - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15192 summary; +comment (10siebrand) [09:23:38] 03werdna * r39528 10/trunk/extensions/DeleteQueue/ (4 files): Some message fixes, and re-jig the proposed deletion structure so people object to prods through the voting interface, not through the review interface. [09:24:05] siebrand: ARE YOU HAPPY NOW? [09:26:23] 04(REOPENED) LiquidThreads contains hard coded language - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15192 +comment (10dasch_87) [09:31:42] siebrand: that's not WONTFIX, that's just "bad patch, may I have another?" [09:35:31] 03(mod) ipblock-exempt exists where it shouldn't - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15193 (10meno25wiki) [09:39:19] 03(mod) Cross-wiki userrights reflects groups on local wiki, not target wiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12518 summary; +comment (10Andrew) [09:39:40] 14(DUP) ipblock-exempt exists where it shouldn't - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15193 +comment (10Andrew) [09:39:48] 03(mod) Cross-wiki userrights reflects groups on local wiki, not target wiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12518 +comment (10Andrew) [09:40:10] Werdna: I'm like a nymphomaniac: never satisfied :) (but you're doing quite well :P) [09:40:24] o__O [09:41:05] *Sorrow pats Werdna [09:42:23] 03(mod) LiquidThreads contains hard coded language - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15192 (10siebrand) [09:44:05] *Sorrow rubs CIA-56's tummy [09:44:05] *purr* [09:45:11] Werdna: not addressed was the issue with the "five days". [09:46:30] 03(mod) Cross-wiki userrights reflects groups on local wiki, not target wiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12518 (10meno25wiki) [09:49:19] siebrand: yeah, I know. [09:49:30] Werdna: OK :) [09:50:28] 03siebrand * r39529 10/trunk/extensions/DeleteQueue/DeleteQueue.i18n.php: Start new sentences on a new line [09:57:02] Bleh... I'm bad at all this testing [10:00:22] 03siebrand * r39530 10/trunk/phase3/languages/messages/ (22 files): Localisation updates for core messages from Betawiki (2008-08-17 11:50 CEST) [10:00:52] 03(NEW) Links should be numbered in a localized manner - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15196 15enhancement; normal; MediaWiki: Page rendering; (huji.huji) [10:01:18] Dantman|FS: then write a test before you code the functionality. You'll not have a problem testing your code :) [10:01:36] T_T No... that is what I'm doing [10:02:14] I'm comparing how much memory and speed a few different methods use [10:02:31] TimStarling: what's 'CookieBlock'? [10:02:40] rather, what was it? [10:03:45] 03siebrand * r39531 10/trunk/extensions/ (44 files in 40 dirs): Localisation updates for extension messages from Betawiki (2008-08-17 11:50 CEST) [10:04:35] hey guys i have been put in charge of backing up our media wiki - any suggestions on how i could set a cron job up to do this? [10:04:44] !backup [10:04:44] --mwbot-- http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki [10:05:05] mwbot - i like you bot style [10:07:03] !rar [10:07:03] --mwbot-- rar [10:08:10] 1.12 to 1.13 problem: some dev once helped me showing updates like article moves immediatly on Special:Newpages. it doesn't work anymore with this code in LocalSettings: http://rafb.net/p/hjLXi093.html Can anyone outdated 1.12 commands? [10:08:44] domas: around? [10:12:22] ok forget my message. works for new moves not old ones before upgrade [10:18:49] since my 1.13 upgrade I have problems with edit permissions: I use these 3 $wgGroupPermissions: ['*']['edit'] = false; ...['user']['edit'] = false; ...['emailconfirmed']['edit'] = true; [10:21:38] Nobody can edit pages with these 3 in combination. the user permissions are correct in the db though. leaving one out makes it more worse. e.g. removing * enables editing for everyone except logged in users [10:40:26] 03(NEW) Some messages need plural support - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15197 15enhancement; normal; MediaWiki extensions: BoardVote; (siebrand) [10:44:21] 03(NEW) Message 'viewapc-rps' needs plural support - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15198 15enhancement; normal; MediaWiki extensions: General/Unknown; (siebrand) [10:46:21] 03(NEW) Message 'Acct request throttle hit' needs plural support - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15199 15enhancement; normal; MediaWiki extensions: General/Unknown; (siebrand) [10:47:35] 03(NEW) Message 'centralauth-editset-badwikis' needs plural support - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15200 15enhancement; normal; MediaWiki extensions: CentralAuth; (siebrand) [10:48:50] 03(NEW) Message 'changeauthor-changeauthors-multi' needs plural support - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15201 15enhancement; normal; MediaWiki extensions: General/Unknown; (siebrand) [10:49:39] 03(mod) Some messages in BoardVote need plural support - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15197 summary (10siebrand) [10:51:26] 03(NEW) Some messages in MiniPreview need plural support - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15202 15enhancement; normal; MediaWiki extensions: General/Unknown; (siebrand) [10:52:34] 03(NEW) Message 'Mv existing categories' needs plural support - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15203 15enhancement; normal; MediaWiki extensions: MetaVidWiki; (siebrand) [10:53:52] 03(NEW) Message 'Populate-user-profile-done' needs plural support - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15204 15enhancement; normal; MediaWiki extensions: SocialProfile; (siebrand) [10:54:39] I installed MediaWiki 1.13.0 [10:54:46] I installed it and everything [10:55:11] it works if I go to the URL: http://mydomain/index.php5/Main_Page [10:55:22] but....if I go to http://mydomain.com [10:55:28] I get this error message Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/note/public_html/includes/AutoLoader.php on line 10 [10:55:31] whats up? [10:56:11] 03(NEW) Message 'Renameusererrortoomany' needs plural support - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15205 15enhancement; normal; MediaWiki extensions: Renameuser; (siebrand) [10:57:48] wikibugs [10:57:52] is that for me? [10:58:12] 03(NEW) Message 'siteusers' needs plural support - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15206 15enhancement; normal; MediaWiki: Internationalization; (siebrand) [10:58:38] HELP! [11:00:02] 03(NEW) Message 'Smw subpropertyarticlecount' needs plural support - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15207 15enhancement; normal; MediaWiki extensions: Semantic MediaWiki; (siebrand) [11:02:47] 03(mod) MediaWiki:categoriespagetext should offer links to Special: UnusedCategories, and possibly Special:WantedCategories - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14434 +comment (10lejonel) [11:05:38] 03(mod) MediaWiki:categoriespagetext should offer links to Special: UnusedCategories, and possibly Special:WantedCategories - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14434 (10siebrand) [11:06:18] 03siebrand * r39532 10/trunk/phase3/languages/messages/MessagesEn.php: Tweak 'categoriespagetext' further. [11:11:11] nonody awake here it seems [11:12:59] techdude2007 was just too impatient. waiting a whole 4 minutes for an answer... bah. try 40. [11:13:36] Subfader: i think emailconfirmed no longer exists... i heard something about that at least. [11:13:42] did you check the release notes for that? [11:13:50] never do :/ [11:13:56] you should :) [11:14:04] ok trying [11:15:20] Subfader: [11:15:20] * Removed the emailconfirmed implicit group by default. To re-add it, use: [11:15:20] $wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED; [11:15:20] in your LocalSettings.php. [11:16:06] ok removed the old emailconfirmed. i as an sysop should be able to edit. but i can't with user and * edit = false [11:16:18] still nobody can edit [11:17:30] it only works "normal" when i remove * but this way i'm unprotected [11:17:56] 03(mod) Patch for Java Theora decoder: Computation of quantization matrices according to spec - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15119 (10maikmerten) [11:17:56] Duesentrieb: a grep of the source tree support that. [11:18:01] Subfader: do you have $wgGroupPermissions['sysop']['edit'] = true; [11:18:21] 03(mod) Patch for Java Theora decoder: Computation of quantization matrices according to spec - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15119 (10maikmerten) [11:18:28] no. but with only user edit = false users still can edit. [11:18:33] Subfader: if you set it to false for *, you have to set it to true for the group you want it for... [11:18:36] siebrand: huh? [11:19:25] Duesentrieb: I didn't read your paste from HISTORY yet. So you found that out already, too :) [11:19:51] Subfader: that'S because permissions are cummulative. if ANY group you are in has the permission, you can do it. everyone is in *. so, if you set it to false for "user", but leave it for "*", users still can edit. [11:20:07] it worked before ;) [11:20:16] Subfader: no it didn't. [11:20:38] Subfader: you had it to false for * and user, and true for emailconfirmed. that'll work, sure. [11:20:43] ok maybe cos of emailconfirmed = true [11:20:44] think about it [11:20:57] yep [11:21:23] Subfader: so, set it to true for sysop or user or autoconfirmed, or reanable the emailconfirmed group [11:22:04] 03siebrand * r39533 10/trunk/extensions/CheckUser/CheckUser.i18n.php: Add 'right-checkuser-log' [11:23:03] 03(mod) Patch for Java Theora decoder: Computation of quantization matrices according to spec - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=15119 (10maikmerten) [11:23:54] ok almost there. * edit = false + $wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED; now IPs can't edit but every user can (emailconfirmed not working?). [11:26:53] Subfader: did you set emailconfirmed edit = true again? [11:27:01] yep [11:27:42] hm... i'm not sure how the autopromote stuff works. it might not work retroactively, i.e. only work for people who confirm their email address now. [11:27:57] so $wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED; promotes users with confirmed e-mail to group 'emailconfirmed' which i should set permissions for? [11:28:08] yes. [11:28:17] TimStarling: ^_^ Heh, finally got through to the tests... For recursion vs. Hashtable, if you step up indentation of the brackets to an insane level... then the Hashtable gives you over 10 times the speed performance, the memory difference isn't very different between the two... [11:28:25] but it might only promote *when* they confirm, not *if* they confoirmed. not sure about that. [11:28:26] i have the same feeling. this can't be. hardcore failure :D [11:28:48] it'S actually logical in a way. but it does break compatibility, which sucks :) [11:28:57] it can be solved rather easily with a database query... [11:29:14] So the hashtable can handle creating a full tree [11:29:58] Subfader: but if you can conform definitly that it works for newly confirmed addresses, but not previously confirmed ones, this change does break a lot of installs. in that case you should file a bug report, or rather, a feature request for the updater to handle this smartly. [11:30:43] i created a new account yesterday without e-mail and in the user prefs it reads Member of groups: Autoconfirmed users, Users. my old account reads Sysops, Autoconfirmed users, Bureaucrats, Users, emailconfirmed, steward [11:31:15] 03siebrand * r39534 10/trunk/extensions/Translate/groups/mediawiki-defines.txt: delete queue optional/ignored updates. [11:31:41] Subfader: so create a new account now, confirm the email address, and see if it works. [11:33:11] what's the sense of using emailconfirmed at all if every new user without email can edit straight away. i created a new account and can edit. [11:33:32] Local Settings: [11:33:35] $wgGroupPermissions['*']['edit'] = false; [11:33:37] $wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED; [11:33:39] $wgGroupPermissions['emailconfirmed']['edit'] = true; [11:34:08] you probably want $wgGroupPermissions['user']['edit'] = false; [11:34:19] this may or may not be needed, but it doesn't hurt. [11:34:28] with that set, a new user should not be able to edit [11:34:36] thought 'user' is included in '*' [11:34:45] well, as it is in DefaultSettings.php : [11:34:47] $wgGroupPermissions['*' ]['edit'] = true; [11:34:53] user and * are both implicit groups [11:34:54] then you have to nullify it in LocalSettings manually [11:35:08] Subfader: no... yes... depends. all users are also in *. but permissions are cummulative, so it only works one way. [11:35:11] logged-in users are in both, and get the permissions from both [11:35:35] Subfader: something you set to true for * is true for all. something you set to false for * is only false for users that do not have it set to true in any other group. [11:35:55] i understand now :) [11:36:37] anyway, for the record, here's the sql to promote all users who have their email-address confirmed to emailconfirmed status: [11:36:39] insert ignore into user_groups (ug_user, ug_group) select user_id, "emailconfirmed" from user where user_email_authenticated is not null; [11:36:45] works now [11:36:45] i'm not sure if this is The Right Thing [11:36:48] but it'll work. [11:37:02] Subfader: "works now" how exactly? [11:37:48] just for the record: IP's can't edit, users without email can't edit, users with previously and later confirmed email can edit: [11:37:51] $wgGroupPermissions['*']['edit'] = false; [11:37:52] $wgGroupPermissions['user']['edit'] = false; [11:37:54] $wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED; [11:37:55] $wgGroupPermissions['emailconfirmed']['edit'] = true; [11:38:38] thanks! [11:38:55] ok, cool. [11:55:56] i use $wgEnableMWSuggest = true; but i'm not sure if it already works. is there naything more i must set? e.g. API wise? [11:56:33] Hi! What I am trying to do is When I'll use SOMETHING HERE. It will be replaced by SOMETHING HERE [11:56:49] so What I need to do for this ?? [11:57:04] anybody Please help [11:57:22] edit /skins/monobook/main.ss and define tt { ... [11:57:45] *main.css [11:57:46] But If I am not usinf monobook Style then ?? [11:58:07] then the according css file of your skin [11:58:09] MediaWiki:Common.css [11:58:18] however does skin's css files convert's ????? [11:58:21] on the site [11:58:34] (don't edit /skins files, then you can't upgrade easily) [11:58:37] ertr yes Common.css is better [11:58:53] I never mind But How can a CSS file parse and change the Content [11:58:54] *Jack_Phoenix is tempted to add a notice to main.css files [11:59:09] it can't, but span is pretty null [11:59:19] 03(mod) References are not shown to Anons when they don' t have edit permissions - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=11224 (10wikiadmin) [11:59:22] you can do almost exactly the same thing by styling the tt instead [11:59:23] something like /** DO NOT EDIT THIS FILE. Instead, go to [[MediaWiki:Common.css]] in the wiki to define new CSS rules */ ;) [11:59:43] LOL I thought You were talking to me [11:59:51] tt {background-color: #F0F0F0;color: #3C78B5;} [12:00:07] 03(mod) Several channels missing from irc.wikimedia.org - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13646 (10attel0) [12:00:19] i edit all core files directly. excuse my punk attitude ;) [12:00:20] in MediaWiki:Common.css will act very close to [12:00:39] !css | neel_ [12:00:39] --mwbot-- neel_: To change styles for your wiki, go to one of the MediaWiki:xxx.css wiki page and put your custom styles there (sysop/admin rights required). MediaWiki:common.css is for all skins and should be used for content styles. MediaWiki:monobook.css is for the MonoBook skin (default), etc. For more information, see !skins and [12:00:42] which btw makes little sense [12:00:46] !skinning | neel_ [12:00:46] --mwbot-- neel_: Overview: . Skin usage: . Gallery of CSS styles: . Writing your own: [12:00:59] I want to allow script Tag provided its src attribute is pointing to a file of gist.github.com [12:36:33] you'll probably want to make an xml tag extension [12:36:39] e.g.