[00:09:54] Mona: it's bundled with the tarball, so probably. I should have mentioned that in the beginning, sorry [00:36:34] It's okay, I was confused by the article itself, not your fault. [00:36:42] But I think it can be working now. [00:36:47] :) [00:37:53] Maybe. [00:37:56] Let me check. [00:40:33] Crap, a fatal error... [06:51:27] Hello MW! I am trying to let a user download an exported file(JSON format) from a special page called Special:export. But when I write the code in a class using special page I get this output http://awesomescreenshot.com/01d38b1z8b (only the contents in the rectangle are desired). [06:53:13] albertcoder: $this->getOutput()->disable() I think [06:53:43] But if I use write the code in another php file like this http://pastie.org/9441218 I get correct output. [06:54:21] How can I fix errors like: Premature end of script headers: index.php [06:54:30] I mean the individual file without extending it in a special class gives the perfect results. [06:54:49] albertcoder: yes, in your Special:Export page, you need to call $this->getOutput()->disable() [06:55:05] legoktm, let me try. [06:55:53] albertcoder: I would recommend not editing Special:Export (unless you are hooking into it) so you have sane upgrade paths in future [06:57:15] can anyone help me with https://bugzilla.wikimedia.org/show_bug.cgi?id=38910 [06:58:36] legoktm, still the same results. :( I used $this->getOutput()->disable() in my Special class of Special:Export page. [06:59:02] albertcoder: can you post the code of your special:export page? [07:00:30] just a sec. [07:07:32] legoktm, this is the code http://pastie.org/9441232 [07:07:38] you may see line no. 15 [07:09:08] But this has posed some other problem now, I had to give options like select the material properties you want to export but doing this leaves a blank page on the browser when the special page is accessed. [07:09:35] uhh [07:09:53] first off, don't use $wgOut / $wgUser [07:10:01] use $this->getOutput() and $this->getUser() [07:10:13] pardon! I am a beginner. :P [07:10:44] so, you want to put the line $this->getOutput()->disable(); only if you plan on outputting the raw JSON [07:11:29] have you read through https://www.mediawiki.org/wiki/Manual:Special_pages btw? [07:11:32] it might be useful [07:11:53] I had read but I will re-read. [07:14:12] Wow! thanks a lot legoktm it worked. :) I had stuck on this from 3 days. [07:14:19] :) [07:14:30] I just made an if condition where I used this. [07:14:49] like you said, thanks a ton! :) [07:16:29] p858snake|l, thanks a lot you too, but I did not get your suggestion as I am just a couple of months old so far MW is concerned. I have kept your suggestion in mind BTW. [11:21:40] Hi all. I want to place a template in my skin outside of the regular wiki content area to create a global warning on all pages of my wiki like {{Warning}}. Is there a way I can pass a wikitext literal to PHP and have it parse out as if it was entered in a page? [11:27:34] sjuxax: I would probably use a message. Set it on the page MediaWiki:message-name and then in your skin's code just insert it where you need it. [11:33:22] Thanks FoxT, looking into it. I already have a template defined. Can my message just be a call to that template? [11:44:15] sjuxax: I guess so. [11:58:58] hey, pls help, need hise part of an article from unregistered users, how to do it?? [12:02:18] hide* [12:05:51] Hi [13:09:30] 13:58:58 hey, pls help, need hise part of an article from unregistered users, how to do it?? <- still need help? [13:12:27] yes [13:14:51] K. Assuming you want a part of an article to be readable for everyone, and the other part only for registered users, I don't think that's possible as MediaWiki was build to be "open" as much as available. [13:16:34] maybe some extension? [13:17:06] Please read http://www.mediawiki.org/wiki/Security_issues_with_authorization_extensions and http://www.mediawiki.org/wiki/Manual:Preventing_access . [13:21:38] okay, anyway thanks [13:22:28] Making a wiki (and not a specific page) private is possible though if you want. [13:43:56] Hi, I'm trying to make use of a custom setting I created in preferences, but I always get this when trying to use it: Call to undefined method MySkinTemplate::getUser() [14:44:45] Hi! Is it possible to change the way the page's HTML title looks, the one that looks like this?: Ect Page - Wikiname - I'd rather have it look like: Ect Page | Wikiname [14:47:29] Ducky_: just edit [[MediaWiki:pagetitle]] [14:48:50] Nemo_bis: Thank-you very much! I had no clue that was a system message. [14:53:37] Another question: On a special page, how can you set the 'title' of page? Eg, the HTML title looks like: | Wikiname - I'd like for whatever's in the section to change conditionally, (Not be a system message) [14:54:51] I'm using a query string that checks for an ID, and said ID is associated with a name that should become. [15:08:35] Ducky_: is usually a system message too, and you can usually put parser functions in system messages [18:03:38] Hi, I'm having trouble with using custom preferences. Namely, I can't get getUser() to work, always getting a "Call to undefined method MySkinTemplate::getUser()" [18:04:32] RndMA: $this->getSkin()->getUser()? [18:04:59] legoktm: I just have $this->getUser(), per the talk page [18:05:18] I don't think SkinTemplate extends a ContextSource. [18:05:26] Thanks, this fixes it! [18:35:39] legoktm: Can I set some preference defaults directly in the skin, or is that advised against? I want to keep all the toggles in the same style, (Enable x), and have some of those ticked from the start [18:44:05] RndMA: defaults should be set in your main SkinName.php file, with $wgDefaultUserOptions [18:44:08] !wg DefaultUserOptions [18:44:09] https://www.mediawiki.org/wiki/Manual:%24wgDefaultUserOptions [18:45:09] Ah, I wasn't sure whether this stuff is just for LocalSettings or not [18:45:10] Thanks [19:11:19] oookay People of Wikimania [19:11:26] if you are to make any hangouts on air [19:11:33] please switch to studio mode [19:11:54] I think everyone participating (i.e. talking) has to do that separately [19:12:22] here's the difference: http://youtu.be/y5I8HR9IQM0?t=1m25s