[00:00:50] (sh)it happens... [00:00:55] there are on times and off times [00:01:01] do u no about infoboxes? [00:01:14] i don't, i'm still very much a beginner [00:01:42] !infobox [00:01:42] --mwbot-- I don't know anything about "infobox". [00:02:46] So, anyone? I was wondering... Does createpages mean create new namespaces as well? [00:03:01] Because if it doesn't I could protect each namespace [00:07:39] :) [00:07:47] I have a quick question. [00:08:06] I recently set up a mediawiki, but want to use an x.cjb.net domain [00:08:11] however [00:08:21] all my links point to "x.originalserver.com" instead of "x.cjb.net" [00:08:34] is there any way to edit a setting that points all internal links to my cjb domain? [00:09:01] windwake, you mean internal links made [[like this]] or external ones manually entered as [http://x.originalserver.com/... Text]? [00:09:08] [[like this]] [00:09:15] Look at the settings in LocalSettings.php. [00:09:22] I've got it open. [00:09:25] Some are relevant to this ($wgServer, maybe?). [00:09:29] FPSGS|Rob: I probably answer an infobox question [00:09:48] Hmm. [00:10:02] Yeah, I have $wgServer set to "x.cjb.net" [00:10:08] (well, http://x.cjb.net/) [00:10:32] Hmm, MediaWiki shouldn't normally generate absolute links, I don't think. [00:10:45] It generally makes links like href="/w/index.php?blahblahblah". [00:10:53] So changing domains should affect nothing. [00:11:23] well, my server didn't change domains [00:11:29] my server is hosted on x.original.com [00:11:45] but I want all links to point at x.cjb.net [00:11:49] It should generate links that will go to whatever the current domain name is. [00:11:58] Do you have a link to a working wiki that I can look at? [00:11:59] carl i cant private message but so i copied an infobox code directly off of the wikipedia site and pasted it to my mediawiki site and it shows up on my page as Template:Infobox and thats it [00:12:04] I sure do! [00:12:23] FPSGS|Rob: where did you copy it to? [00:12:31] http://wiihack.drewblaisdell.com/ [00:12:34] my mediawiki page [00:12:40] what page name? [00:12:41] at the top of the code [00:12:49] do u want the website? [00:12:54] but visitors will visit through wiihack.cjb.net [00:13:01] if possible, that makes it faster to diagnose [00:13:08] and I want all the links to point to wiihack.cjb.net [00:13:11] If I'd wish to make all pages protected from "regular users" by default what should I do? Set $wgNamespaceProtection['*'] = array('sysop'); ? Thing is I want to allow regular users to create and edit talk pages, but don't allow them to edit the article itself. I  was wondering... Does createpages mean create new namespaces as well? Because if it doesn't I could protect each namespace [00:13:12] www.bronsteins.com/robert/index.php5 [00:13:24] Hmm, I see. [00:13:34] Oh, wait, you're using an iframe. [00:13:44] FPSGS|Rob: where did you copythe code to? [00:13:46] cjb is, yeah [00:13:50] So no, it's not going to work properly by default. [00:13:56] Ah, okay. [00:13:57] Should be possible for you to get it to work anyway. [00:14:02] you need to copy it to Template:Infobox [00:14:15] look at the code [00:14:17] hit edit [00:14:23] Be right back, like ten minutes. argh. [00:14:31] right in the middle of this, haha [00:15:06] Try: $wgScriptPath = "http://wiihack.cjb.net/"; [00:15:12] FPSGS|Rob: OK, I know what's going on. You copied the code that goes into an article for an infobox. but there is more code, the source code of the infobox, that goes into the page Template:Infobox [00:15:36] oh [00:15:44] ok let me see if i can fetch that [00:15:48] so you have to copy that code from wikipedia to your wiki. Also any other templates that it depends on. if you can import pages, the fastest way is to export template:infobox with all the templates it depends on [00:15:59] windwake, when you get back, try: $wgScriptPath = "http://wiihack.cjb.net/"; [00:16:05] I guess right now it's "/". [00:16:59] ok [00:17:26] carl could u do me a favor and go to the channel #robby, so it will be easier to talk. im in there by myself [00:17:51] it's OK to talk on this channel, it's meant for this sort of thing [00:17:57] oh ok [00:18:24] well could you take a look at the bottom of my page and look at the pictures....is there any way to better organize those? [00:22:04] you can use an image gallery, that's one option [00:22:12] is that an extension? [00:22:30] I think it is built in [00:22:39] ok. and one last thing [00:22:47] ok [00:22:53] how can i make it where nonregistered users cannot edit pages [00:23:30] one sec [00:24:20] this one is in the FAQ: http://www.mediawiki.org/wiki/Manual:FAQ#How_can_I_prevent_editing_by_anonymous_users.3F [00:24:31] thank you very much sir [00:24:41] no problem, good luck with it [00:25:45] thank you [00:29:55] Simetrical [00:29:57] trying that now. :) [00:30:36] Guys, anyone? [00:31:19] Ah, that's right [00:31:27] that's the path to the script... on the server [00:31:33] not the server itself [00:31:51] ZaphodBeeblebrox: explain again what you want to achieve? [00:32:12] If I'd wish to make all pages protected from "regular users" by default what should I do? Set $wgNamespaceProtection['*'] = array('sysop'); ? Thing is I want to allow regular users to create and edit talk pages, but don't allow them to edit the article itself. I  was wondering... Does createpages mean create new namespaces as well? Because if it doesn't I could protect each namespace [00:33:03] Okay, perhaps this is a better way to state my question: [00:33:39] I have a wiki on x.originaldomain.com. However, this is a long domain, so I want to use x.cjb.net as a forwarding domain. It forwards to the originalserver.com address, but all links link to the originalserver.com address [00:33:51] I want to precede all internal links with x.cjb.net instead of x.originaldomain.com [00:34:29] so, [[test]] would result in x.cjb.net/index.php?title=test as opposed to x.originaldomain.com/index.php?title=test [00:36:07] ZaphodBeeblebrox: you want everyone to be able to edit talk pages, but only sysops to edit main namespace pages? [00:36:39] yes, users edit talk pages / sysops edit articles and talk pages [00:37:22] you looked up $wgNamespaceProtection? [00:37:54] windwake, that's what what I told you should do, if I'm not wrong. [00:38:14] carl-m: Yes, but the question is: when a user creates an article is this article bound to the pre-existing namespaces or the user is able to create a new namespace as well? [00:38:17] windwake, also, why don't you just set up the new domain on the old machine? The iframe seems extremely roundabout. [00:38:18] you want something like $wgNamespaceProtection[NS_MAIN] = array('sysop'); [00:38:24] oh, it is [00:38:27] Because if he can there's no point [00:38:29] haven't you heard of cjb.net though? [00:38:33] ZaphodBeeblebrox: users cannot crate new namespaces [00:38:36] it's a service for this [00:38:43] No, never heard of it. [00:38:47] carl-m: Cool, thank you [00:38:52] Ah. [00:38:57] Well, I don't have access to it. [00:39:07] Yes, I see. [00:39:27] It seems like the sensible thing would be to just buy another domain, but anyway, did you try what I told you to do? [00:39:38] Yeah [00:39:42] that's not the right variable [00:39:44] What did it do? [00:40:01] I originally had this wiki [00:40:06] hosted at originaldomain.com/wiihack [00:40:10] so $wgScriptPath was set to "wiihack" [00:40:17] because that's the path on the server to the wiki [00:40:24] when I changed over to wiihack.originaldomain.com [00:40:26] No, it's the public-exposed path. [00:40:30] er, yeah [00:40:34] Not the path on the server's own filesystem. [00:40:36] yeah [00:41:24] when I changed it to the server [00:41:42] it tried to go "wiihack.originalserver.comhttp://wiihack.cjb.net" [00:41:55] whenever I visited the index [00:42:13] *Simetrical has to go, sorry [00:42:20] No prob. Thanks for your help :) [00:42:28] I learned a bit even if I didn't arrive at the appropriate solution [00:49:54] after my wiki is up and running, what is the recommended permissions for the .php files? (Apache 1.3) [00:52:33] if you are worried about the permissions you should be able to make the files 444 [00:53:25] Well, not "worried" but I want to be prudent. 744 sounds okay, then? [00:53:59] I'm always unsure if the users are supposed to have "read" or "execute" permission. [00:54:39] for a file? if they can read it they could just copy it and make it +x themselves really. If they wanted to. [00:54:39] the php files should not need to be executable [00:55:00] but yeah, what carl-m said [00:55:19] sometimes cgi scripts have to be executable, but the way php is configured for me, it isn't necessary for php files [00:55:49] 644 for files, 755 for directories is fairly standard. Or 664/775, if you're doing much groupy things. but anyway. [00:57:05] *Dantman prefers to 755 his files... and set them to root.www-data normally, and www-data.www-data when write access is needed [00:57:23] I don't think "group" applies to me. It's just me, my shared hosting server, and the folks visiting my web site. [00:58:43] Can I apply the same rule, 644/755, to .cgi files, too? [00:59:05] cgi files usually need 755. [01:00:12] ok. and .html can be 644, like the php files? [01:00:22] yes [01:01:44] cool. Lastly, the all-important LocalSettings.php is also 644? [01:02:44] it can't be less then o+r, if php is running as www-data [01:03:37] er, not sure what that means... [01:03:49] the web server has to be able to read it [01:04:55] Ok, understood. Basically, I don't want the users to "view" any of my files. They just need to browse the web pages I have provided them. [01:05:16] I'm not very experienced at securing php files [01:06:39] Thanks for the help! [01:07:09] you may want to chown the file to the webserver, if you're on a shared server [01:07:46] ok, Carl, I'll bite: what's "the file" to the webserver? [01:07:46] or at least remove group read access if all users share the same group [01:07:51] LocalSettings.php [01:08:30] there are two issues with LocalSettings: can someone read it locally, and can someone read it over the web [01:08:55] by default, loading it over the web is blocked [01:09:20] I see. My confusion is not knowing if the webserver itself is considered the "owner" or an "other" user. [01:09:39] if it's owned by the webserver, an owner. [01:09:40] usually the webserver is an "other" user [01:09:43] if it's not, other. [01:10:13] for example, if I set the LocalSettings.php to 600, would the wiki work? [01:10:58] that depends on (1) the user set as the owner of the file and (2) what user the webserver runs as [01:11:06] if they match, then it would work, otherwise it won't [01:12:21] I'm following what you're saying, I just don't know the answers to who is whom. Well, I'm setting all my files to 644 for now, my dirs to 755, and I'll hope for the best! [01:12:32] that should work fine [01:12:49] Thanks so much. I gotta run now. [01:13:17] sure [01:16:26] i can't delete images. I get an error that folder deleted/s/8/f could not be created, but it is created... the folder also has rwx for www-data. can someone help me? [01:43:22] 03simetrical * r33990 10/trunk/phase3/ (RELEASE-NOTES config/index.php): Update documentation links in auto-generated LocalSettings.php [02:53:34] *AaronSchulz kicks PHP install [03:13:31] Question: I used maintenance/importImages.php to add some files. I ran it as root, and in the process it created some of the subdirs in the images directory. Because I was root, the directory ownership was root. Would it seem the script should check the ownership of the images dir and set any created directories to that same owner:group? Or was I supposed to "just know" to su to apache first before manually importing? [03:14:09] Later, when I was uploading some files, it puked on my shoes because it didn't have write permission in those root-owned directories. [03:15:44] Technically there is no way to know what is supposed to own the stuff [03:16:12] Yea, since that's not in LocalSettings.php, which might be good. [03:16:23] But it could at least look at the ownership of the images directory and use that. [03:16:38] Depends... [03:17:13] Could be misconfigured... Or worse... PHP may be set to restrict use of system type commands [03:17:34] Then how would import work in the first place? [03:17:41] Since odds are fair it will need to create directories. [03:18:21] Creating something is completely different than havving superuser control over permissions afaik [03:19:10] The OS may also not have the concept of this type of ownership... [03:19:22] Do remember it's also possible to run MW on Windows [03:19:27] BLEH [03:20:25] ^_^ I can agree with you on that... But that doesn't change the fact that some do (And some are using ISS (or was it IIS?), ewww) and there are some devs using Windows for their development [03:20:35] But really, you're splitting hairs. You can either create the directories or you can't, because of inherited permissions. It would be easy enough (for a competent PHP programmer, which is to say "not me") to determine if the import is bound to fail, or at least throw a warning that ownership is questionable. [03:21:11] 03(mod) Implement a validation check for ISBN links - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=2391 (10matthew.flaschen) [03:21:16] Creating a directory is different than checking it's permissions... [03:21:34] You can create a directory without knowing what permissions are on the parents... [03:22:15] AFAIK the script creates directories by function, and leaves knowing if it's possible to when the function returns false and can't rub [03:22:17] run* [03:24:03] 03(mod) Implement a validation check for ISBN links - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=2391 +comment (10matthew.flaschen) [03:26:28] Well, I still think it's quirky. If you're going to use import, and it's going to create directories that aren't accessible by the server, it ought to throw a warning. And while I'm no PHP programmer, I know damn well it can be done in C. [03:30:05] "Iran Calls Barbie Doll 'Destructive' to Their Culture" [03:30:14] Perhaps they should..., oh... I don't know... NOT BUY THEM? [03:30:35] ^_^ C is very high level... Remember PHP is a scriping language... You're not meant to go and do a thousand checks for every possible outcome... script => lazy programming [03:30:41] low level* [03:30:51] Bleh... reversed the order [03:31:50] PHP has calls for a great many of the libc calls, including all the file management stuff. But I will agree about the lazy part. [03:32:14] I found a bug in wikipedia's latex rendering [03:32:15] http://en.wikipedia.org/wiki/Geometric_progression#Elementary_properties [03:32:18] Hmmm... though, there may be purpose for some sort of checkPermissions.php maintenance script which you could run to make sure things are ok... a series of common checks that is [03:32:24] notice Such a geometric sequence also follows the recursive relation [03:32:31] an = ran − 1 for every integer [03:32:37] notice howthe a_n = ra_{n-1} isn't rendered [03:32:42] :a_n = r a_{n-1} [03:32:47] that's howit'swritten in wikipedia [03:32:53] a_n = r\,a_{n-1} works [03:33:01] so it's the space that causes trouble [03:34:01] k4jcw: Well... ya, it has the functionality for it... But what I mean is... In PHP you're meant to call a simple function to create something and catch it if it fails... Not check for a bunch of potential issues, then create if ok... [03:34:03] Huh. You're currect. [03:34:22] Correct, even. [03:35:34] Bah. It's all in how much effort someone is willing to put into it. I mean, if you're into lazy programming, why bother checking data submitted from a webform? Range checks? Don't need'em. SQL injection attacks? Bah. We'll know about it when the database is trashed and customers call complaining. [03:35:59] That's different [03:36:13] mike8901_: So, what's the issue with putting a \, into the equation? [03:36:18] Everything is escaped [03:36:55] Actually, best practice is to use the various $db->select( tables, fields, conditions, fname, options ); like calls [03:37:08] "placeholders" [03:37:23] the data given in is normally given as an array, and stuff is always escaped [03:38:01] That's different than pre-checking minor things like directory permissions when lower level calls already make sure that you're allowed to do it [03:38:21] where can I Find a changelog between 1.10.1 and 1.12.0? [03:39:20] Check the individual ones [03:39:24] where [03:40:04] http://svn.wikimedia.org/viewvc/mediawiki/branches/REL1_11/phase3/RELEASE-NOTES?revision=31485&view=markup [03:40:23] Bleh.. scratch that one [03:40:40] should I upgrade? [03:41:16] I mean its very complex [03:41:22] Always good [03:41:29] and I don't want to bother every 2 weeks updating [03:41:31] ((Damn F*ing slow computer)) [03:41:54] MW is only released every quarter [03:42:18] And it's actually quite simple if you have SSH access and Subversion installed [03:42:40] yes I know but I dont care to do diffs and shit [03:42:45] I want one button "UPDATE" [03:42:48] and it should work [03:42:54] You don't need the diffs [03:43:12] Just do a checkout of a release branch... Do a svn update when a security/bug release comes out... And when you want to upgrade to a new release, use a svn switch then svn update [03:43:22] and your upgrade instructions, they are very complex [03:43:27] 30 full paragraphs [03:43:33] Honnestly, they're not [03:43:48] 1 to start... 3 to upgrade [03:44:36] To get 1.12 "svn checkout http://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_12/phase3/ " [03:44:53] Say 1.12.2 is released and it's got bugfixes... [03:44:57] "svn update" [03:44:59] I know svn [03:45:24] 03(mod) linkify ISBN: foo and ISBN: foo, bar, etc. beside ISBN foo_bar - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12900 +comment (10matthew.flaschen) [03:45:56] Well... then svn to update your files... And the maintenance/update.php script updates any database changes [03:47:43] how does one download a file with curl? [03:48:44] From the CLI? I just use wget... But that's largely pointless when the whole thing is version controlled and thus you don't need to download everything all over again [03:49:21] I have to use a shitty netfirms webserver which has neither svn, or curl [03:49:37] or anything, its a locked up piece of shit that runs slow and fails to use Special:Upload on 4mb files [03:50:00] Who's server, for? [03:50:14] its an organization's wiki I run [03:50:18] not my choice [03:50:30] How much are they even paying for such crappy hosting? [03:51:27] let me see, if I can get to the control panel.. (it takes hours) [03:51:39] probably 10 dollars a year or osmething like that [03:51:44] its a complete piece of shit [03:51:54] now you know it, never use Netfirms [03:51:57] Nah... nothing is as low as taht [03:52:23] I've used hosting that was on a windows ME box. Even worse. ANd it wasnt that cheap either [03:52:37] it probably runs IIS with CGI php [03:52:41] Crappy shared hosting is usually $4-$7 a month [03:52:52] and Mediawiki is no good either, probably slow as hell PHP/SQL intensive code without caching [03:53:14] MediaWiki is well cached if you have memcached or something similair [03:53:17] don't even get me started on theming and the lack of separation between code and UI [03:53:33] memchaced! hahaha, this is a shitty server remember [03:53:44] I am bitter [03:53:46] I'm just saying it is well cached, if you pay huge amounts for hosting :p [03:53:59] Not that huge [03:54:08] I'm on a VPS for only around $20 a month [03:54:42] My company has the best webserver. Our site gets less than a couple hundred hits a month and we have a $10K webserver and a $200 a month fibre line. Fun to download stuff on though [03:55:17] where are the upgrade instructions? [03:55:42] Heh... [03:56:15] If you pay anything at all for a webserver... You're overpaying [03:56:27] VPS ya.. ok... But the software, no way [03:56:36] mike8901_: I fixed the issue by adding "\," to the equation, but I don't still don't know why the original equantion had everything in the subscript font. [03:57:07] We run it ourselves - easier to manage [03:58:07] piece of shit netfirms [03:58:10] they have usernames like "u70442505" [03:58:13] and you cant choose [04:01:27] My old free hosting had names where they scrambled the letters of your full name, then added your user id to the end [04:01:40] mysqldump: Got error: 2013: Lost connection to MySQL server during query when trying to connec [04:01:49] fuck!!! you cant even do a backup [04:02:02] these people are unveliebable [04:06:16] I am so irritated [04:06:20] so tired [04:10:11] sanmarcos: did you look into http://requests.wikia.com/wiki/Special:RequestWiki ? perhaps that way you don't need to bother with your bad hoster? [04:10:42] we need our own domain, and email addresses, that won't work [04:11:05] sanmarcos: i see... [04:11:31] anyhow, MediaWiki is just TOO much for what we need, we don't even need a Wiki per se [04:11:43] we use it as a content management system [04:12:02] sanmarcos: well, then you're abusing it ;) kind of... [04:12:37] sanmarcos: what exactly do 'you' do? [04:13:09] nothing really, just change data, upload images, etc [04:13:15] I did the design and setup of the wiki [04:13:21] but that is done [04:13:27] http://www.arqueologiamendoza.com.ar/wiki/Portada [04:15:58] sanmarcos: i see. it's really not a wiki in the original sense anymore ;) [04:16:13] no, it just makes content management easier [04:17:01] and it would be OK, I dont really care if its the right tool, the problem is that its such a shitty host that I can't even upload files without it giving me a 500 [04:17:07] it works somedays, it doesn't others [04:19:08] that sucks [04:20:34] perhaps you should consider moving to another hoster... i don't know who offers good value/money hosting in argentina though ;) [04:20:52] netfirms isn't in argentina [04:21:03] sanmarcos: got to go, write you later [04:21:22] why are people nice in this channel [04:21:24] this is IRc [04:25:23] 03(mod) cmstart as continue param when muliple categories have same cl_timestamp - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13871 (10N/A) [04:53:53] sanmarcos: lol [04:54:30] sanmarcos: back from lunch... well for hosters: i had good experience with 1 and 1 in germany, but they're probably not so cheap [04:56:34] sanmarcos: you can get 250GB space and 2.5TB traffic + 2500 mailboxes (sharing 2 GB space) for $10 a month. they are quite reliable, at least in germany [04:59:03] IMHO it would be better to go for a $20/mo VPS package even though it only has15gb and 200gb transfer... You really can't unlock MW's full potential without VPS [04:59:46] Dantman: why is that? [05:00:26] You can't run a number of things common and good for use with MW [05:00:37] Dantman: for example? [05:00:53] MW is heavy without Memcached and you can't run that on shared hosting [05:01:10] And then there's short urls... You can't do that right on most shared hosting [05:01:52] You normally don't have proper control over 404 errors... (Maybe some minor control) but not addequate for good redirecting [05:02:59] And most of the time you are limited to uploading MW over FTP which is very poor for updates and forces you into a box of either pain, or updating very infrequently [05:24:21] I see [05:38:37] Is there a way to have the talk page embedded in the main page, in a generic way [05:39:03] I could do {{talk:page_name}}, but I would like to do {{talk:current_page}} [05:39:29] I tried {{talk:}}, but this do not work [05:39:49] 03raymond * r33991 10/trunk/phase3/languages/ (5 files in 2 dirs): [05:39:49] Localisation updates Kazakh [05:39:49] Bug 12145, patch by AlefZet [05:40:31] 03(FIXED) Kazakh message updates - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12145 +comment (10raimond.spekking) [06:24:09] 03aaron * r33992 10/trunk/extensions/FlaggedRevs/FlaggedRevision.php: E_STRICT [06:32:44] 03(mod) Newline as list item terminator is troublesome - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=1115 +comment (10anon.hui) [06:43:55] 03aaron * r33993 10/trunk/extensions/FlaggedRevs/FlaggedRevs.php: E_STRICT [06:54:00] 03raymond * r33994 10/trunk/phase3/includes/SpecialWithoutinterwiki.php: Do not show useless input form if wiki is running in misermode [07:36:42] 03(mod) Enable email notifications on en.wikipedia... as far as possible - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=11636 +shell (10vasilvv) [07:40:13] 03(mod) Special:Categories hides categories having 0 current members - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=10915 (10vasilvv) [07:41:55] 03(mod) Enable email notifications on en.wikipedia... as far as possible - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=11636 (10e.wikipedia) [07:59:51] is there an extension to include the content of another wiki page instead of a link? [08:01:14] david______: why do you need an extension? [08:01:19] {{:Pagename}} [08:01:28] <_wooz> lo [08:01:44] ah! let me try, I missed the colon. [08:02:26] thanks! [08:24:36] 03(mod) cmstart as continue param when muliple categories have same cl_timestamp - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13871 (10roan.kattouw) [08:33:50] will any dev be interested in adding MinuteElectron 's extension on mediawiki.org? ;) >> http://www.mediawiki.org/wiki/Extension:Mibbit [08:34:17] default channel being this one [09:01:27] 03catrope * r33995 10/trunk/phase3/includes/api/ (ApiQueryAllCategories.php ApiQueryCategoryMembers.php): [09:01:27] API: [09:01:27] * Fixed allcategories paging [09:01:27] * Removed DISTINCT from allcategories query (which only selects a UNIQUE field anyway) [09:01:27] * Improved categorymembers performance; it used to filesort [09:01:29] * Disabled cmstart and cmend for cmsort=sortkey to prevent filesorting [09:01:31] * Fixed categorymembers paging for cmdir=desc [09:06:28] Hey, if I wanted to change the name of a special page, where would I go to do that? [09:08:34] Sas: in English or another language? [09:08:46] en [09:09:37] is the special page core or extension? [09:10:36] core [09:12:18] hmm, you should be able to define it in /languages/messages/MessagesEn.php with $specialPageAliases [09:12:36] (maybe? does that work in the fallback language?) [09:13:43] could try it. eg: $specialPageAliases = array( 'Specialpages' => array( 'MagicPages' ), ); [09:13:45] *Sasoriza checks [09:14:46] anyway, see something like MessagesDe.php for an example of how they are translated [09:14:54] (and aliased) [09:16:21] Bingo, that would be it. Thank you much! [09:18:51] np [09:23:00] Just curious... Does Special:Version have a problem displaying the copyright symbol? (C inside a little circle) [09:30:53] Sasoriza: maybe ask Tim why he made it a plaintext "(C)" (added here: http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=2897 ) [09:32:01] very few people use the real (c) symbol, because they don't have such key on the keyboard [09:32:07] (c) is much easier to type, and legally just as valid [09:34:14] © FTW ^_^ [09:48:07] "Yeah, that was pointless. Thanks for coming." ??? (SpecialSpecialpages.php) [09:49:20] brion's dry sense of humor ^_^ [09:49:45] Sas: http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=8801 [09:55:59] 03(NEW) Advanced #ask: functions - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13874 15enhancement; normal; MediaWiki extensions: Semantic MediaWiki; (naught101) [09:56:02] It'll just make [09:56:02] you feel bad cause you can't see em. [09:56:04] LOL [09:56:17] Heh [09:57:42] whoa, who overloaded the forums [10:07:21] we don't have any forums [10:18:05] 03(mod) SpecialPage hooks are broken - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=10719 (10sasorizaa1) [10:24:10] how does one go about and set that the urls are like http://www.mywiki.tld/Topic as apposed to http://www.mywiki.tld/index.php5/Topic [10:25:17] !help shorturls | RancidZA [10:25:17] --mwbot-- RancidZA: 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 > [10:25:29] damn [10:25:40] !shorturls | RancidZA [10:25:40] --mwbot-- RancidZA: To create simple URLs (such as the /wiki/PAGENAME style URLs on Wikimedia sites), follow the instructions at . There are instructions for most different webserver setups. If you have problems getting the rewrite rules to work, see !rewriteproblem [10:25:45] aha [10:25:47] this is the one [10:26:05] RancidZA: generally, /Topic is not recommended; you should use /wiki/Topic or /view/Topic or similar [10:26:33] thnx [10:26:38] zocky and flyingparchment [10:26:41] flyingparchment, that's somewhat of a bug in mediawiki, maybe [10:26:47] ... [10:26:48] zocky: no, it's not really [10:26:55] it is a **feature** [10:27:03] yeah, if you have a setup that needs that [10:27:04] like, say, if you wanna have an article called Robots.txt [10:27:08] ... [10:27:13] *Splarka smacks zocky with cluebat 2.0 [10:27:23] zocky: the underlying problem is impossible to fix, all you can do is work around it [10:27:38] one suggestion i saw was to use a separate domain for nothing except articles, but i haven't seen anyone who successfully implemented that [10:27:42] most wikis I set up didn't need articles starting with /w/ or called robots.txt [10:28:09] zocky: what about FAQ? [10:28:32] one possible solution is to do some mod_rewrite engine and access all the scripts through Special: namespace [10:28:35] I haven't tried that yet [10:29:04] just better to have a definite article path [10:29:20] (heh heh, linguistic puns) [10:29:22] Splarka, but EVERY client I had so far asked for short urls [10:29:28] if you're ever seen a phpnuke url recently, i'd say we aren't doing so badly [10:29:33] so get better clients ^_^ [10:29:46] *Splarka hides [10:30:09] null script paths are still a bit naughty but less bad, null article paths need face stabs <3 [10:31:55] http://www.mediawiki.org/wiki/Manual:Short_URL/Page_title_--_Working_method_with_mediawiki-1.11 like the top here... [10:32:11] stylessheets|images|skins, redirect|textvc|index, favicons, robots.. [10:32:26] what about new stuff? the api? thumb.php?? [10:32:29] eeeeeeeeevil [10:33:15] a better way to do that is with a -f cond [10:33:18] Splarka, there's the switch for ignoring existing files for rewrite engine [10:33:21] but that leaves the FAQ problem and so [10:33:51] plus, I keep the scripts in /w, so the only articles that I don't allow are W/ and Robots.txt [10:34:03] W/(.*) I should say [10:34:06] well, then to reiterate, what if you want an article named thumb.php! [10:34:18] heh [10:34:23] you can have it, you just can't have /w/thumb.php [10:34:25] WWWD.. what would wikipedia do [10:34:42] or named robots.txt [10:34:51] i find /view/X, /history/X, /edit/X, ... is much nicer looking than /X anyway [10:34:52] well, that's a problem for wikipedia [10:35:04] it's not a problem for most sites [10:35:05] mmm, action paths [10:35:11] action paths are not a bad idea [10:36:10] on a tangentially related note, actions vs. special pages are a bit of a mess [10:36:13] just as long as /view/X is not an alias to /X X_X [10:36:35] it's not very logical that history is an action, but user contirbutions and whatlinks here are special pages [10:36:38] Special:Undelete, action=delete... whatsaproblem ^_^ [10:36:54] Splarka, yes, and that one [10:37:26] history is good to associate with a page, but contributions are better associated with a user... [10:37:44] it is bad enough that log entries on a user page title apply both to the page (delete/protect/move) and to the user (rights/creation/blocking) [10:37:48] Splarka, well, User:Zocky?action=contribs makes sense to me [10:37:56] doesn't to me, per above [10:38:09] but some sort of Special: aliasing might be good [10:38:19] like action=contribs redirecting to Special:Contribs [10:38:24] actions are per-page. the contributions of a page doesn't make much sense [10:38:39] flying: neither does the banning or promotion thereof ^_^ [10:38:47] the log system kind of sucks [10:38:52] i find it very confusing and inconsistent [10:39:19] damn, so we agree on something? [10:39:30] ...hey, at least the earth didn't explode!... [10:39:46] *Splarka hides [10:40:16] TimStarling, when you have the time, can you opine on whether https://bugzilla.wikimedia.org/show_bug.cgi?id=8997 is easier to solve with the new parsing setup? [10:41:29] flyingparchment, but there is a very simple mapping from pages in userspace to the user [10:43:09] 03(NEW) Diffs appear as long columns of text in Modern skin when viewed in Safari - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13875 15enhancement; normal; MediaWiki: Modern skin; (titoxd.wikimedia) [10:44:35] Is there an extension in use here http://www.mediawiki.org/wiki/Special:SpecialPages or did someone hack [10:45:06] Sasoriza, new feature [10:45:09] 03(mod) Diffs appear as long columns of text in Modern skin when viewed in Safari - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13875 15enhancement->normal (10raimond.spekking) [10:45:09] O_O [10:45:15] is there an easy way that i can say, for example, if a page is in a certain category, then also output the results of a php script i want to run based on the page name? [10:45:15] 03(mod) CSS (tracking) - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12788 (10raimond.spekking) [10:45:24] Sasoriza: http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=33197 [10:45:46] Splarka, btw, you can still have W/article and Robots.txt articles, it's just that incoming links need to be in properly capitalized [10:45:51] which the wiki does anyway [10:45:54] 03(mod) Diffs appear as long columns of text in Modern skin when viewed in Safari - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13875 (10titoxd.wikimedia) [10:46:03] zocky: and if first letter case sensitivity is off? [10:46:08] really, seriously, just better to have an article path! [10:46:17] Splarka, then you have a setup which needs an article path [10:46:17] rationalize it all you want, still better [10:46:31] and it burns you because you know it ^_^ [10:46:52] someone's cruisin' this morning [10:46:55] *Splarka grins [10:47:01] it's better for me from the technical perspective, but it's better for me to give the clients what they want from the financial perspective [10:47:20] but they should wanna be like Wikipedia [10:47:49] Splarka, nah, they want websites that look nothing like wikipedia. it's me that wants to use mediawiki for those websites, because other tools are crap. [10:47:59] hmmm [10:48:10] then you shouldn't try to force it on the poor unsuspecting fools! [10:48:25] Splarka, actually, they love it [10:48:32] they love a lie [10:49:04] it's like someone asking for an SUV, so you give them a hybrid SUV, but disable the 4 wheel drive [10:49:05] they love the fact that e.g. they can copy/paste a template call instead of having two windows open and copy/paste each form field separately [10:49:23] *Splarka fails at that analogy [10:49:55] so per RancidZA's question, which hooks should be called to check the categories on a page? [10:50:03] Splarka, I have a website that makes schedules for a concert/art/theatre place [10:50:22] the entries for the schedule are template calls on appropriate pages [10:50:57] when they need to make a new schedule entry for the same or similar act, they copy the template call and change the parameters [10:51:16] they prefer that to doing it with a bunch of forms [10:52:05] is there an easy way that i can say, for example, if a page is in a certain category, then also output the results of a php script i want to run based on the page name? [10:52:48] what do you want to output? raw html? wikicode? where on the page? in the contents? in the UI? [10:52:53] RancidZA, I would probably do that in a skin, or on some hook that runs when the page is fully parsed [10:53:18] 03(mod) Request for New User Group to be created, to create account Requests. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13498 +comment (10cometstyles) [10:53:31] 03rotem * r33996 10/trunk/phase3/languages/messages/MessagesHe.php: Update. [10:53:41] Splarka, html, after the content for that article is displayed [10:53:43] might be easier to check the page's categories before the HTML rendering though [10:54:02] RancidZA: http://www.mediawiki.org/wiki/Manual:Hooks#Hooks_grouped_by_function [10:54:17] see second section there "Page rendering" [10:54:26] lots of different places to hook an extension during rendering [10:54:59] ParserAfterTidy sounds promising [10:54:59] *Sasoriza doesn't freak out at fatal errors anymore! [10:55:14] tx Splarka [10:55:14] but some are called during rendering of pieces of pages (and non-articles, actions, special pages), some are called multiple times per page view, so be careful [10:55:55] RancidZA, in ParserAfterTidy, you should be able to find the category links in $parser->mOutput, and you can append your text to $text [10:56:15] is ParserAfterTidy run if tidy isn't enabled? [10:56:15] tx [10:56:27] hopefully, that doesn't get called on transclusion [10:57:49] ahh: http://www.mediawiki.org/wiki/Manual_talk:Hooks/ParserAfterTidy [10:58:48] *zocky stabs svn [10:59:01] OutputPageBeforeHTML might be better [10:59:16] here is an example usage: http://www.mediawiki.org/wiki/Extension:PatchOutput [10:59:52] (requires scraping the html though, icky) [11:00:08] if I want to merge changes from MW repository to my fork, I have to know the exact revision at which I forked :\ [11:00:15] and of course I don't [11:00:24] zocky: should've used svnmerge [11:00:53] zock: can you check file/folder creation dates or anything? heh [11:00:53] flyingparchment, that's different from svn merge? [11:01:01] zocky: yes, it tracks the revisions automatically [11:01:06] Splarka, nah, I moved it around too much [11:01:21] flyingparchment, damn, i thought it was a misspelling when I saw it in some howto [11:02:06] flyingparchment, so, it's a script that I need to get from somewhere or what? [11:03:04] i don't think it is going to help now... it's automatizes the stuff you would normally do, e.g. record rev numbers [11:03:40] rainman-sr, yeah, I know... but I only hacked 4 files, and 2 of them got fixed in the repository in the meantime [11:03:57] so I'll have to merge preprocessor and parser manually [11:04:38] what's wrong with this line (anything?) $group = SpecialPage::getGroup( $page ); [11:04:46] looks right [11:05:15] zocky, btw is there a prototype for the link complete thingy? i would be interested in commiting that into core, or maybe you can do that [11:05:46] rainman-sr, it would need to be redone, if you want it to be IE6 compatible [11:06:36] i'll redo it, i'm just interested in how it works [11:07:16] i guess most of the code could be reused eitherway [11:07:32] rainman-sr, yes, the main problem for IE6 is inserting the text correctly [11:07:46] since it doesn't do textarea.selectionStart and .selectionEnd [11:07:57] the rest is pretty straightforward [11:08:09] how does it show suggestions, in a popup? [11:08:24] rainman-sr, no, in the textarea [11:08:37] someone link me to that simple url again please.. seem to not be getting css back now or something :/ [11:08:40] there's no dropdown, because it's impossible to calculate the position correctly, AFAICT [11:08:54] !shorturl | RancidZA [11:08:54] --mwbot-- RancidZA: To create simple URLs (such as the /wiki/PAGENAME style URLs on Wikimedia sites), follow the instructions at . There are instructions for most different webserver setups. If you have problems getting the rewrite rules to work, see !rewriteproblem [11:09:15] rainman-sr, you should install it and try it out :) [11:09:24] damn, it doesnt say anything about it :/ [11:09:28] zocky, link? [11:09:38] http://en.wikipedia.org/wiki/User:Zocky/Link_Complete [11:09:41] are special extensions throwing Special:SpecialPages.php? Not getting this... [11:09:59] rainman-sr, just put {{subst:User:Zocky/LinkComplete}} in your monobook.js [11:14:16] cool thing :) [11:14:31] Sasoriza, you're asking about the nice table that special pages are displayed in? [11:14:53] Sasoriza, that's a new core mediawiki feature, since a couple of weeks ago [11:15:11] rainman-sr, have you looked at the code? [11:15:27] i'm looking, i see you don't use opensearch [11:16:07] the code looks a bit convoluted, but it all has to be asynchronous, and I think you can't really simplify the flow [11:16:53] it should be rewritten into an object probably [11:18:30] you could do it without ajax too (but there are limits to