[01:22:22] is there a way to force a wiki to have mobile frontend only, even for desktop users? [01:23:02] j mediawiki-mobile [01:25:48] is there a reason you want to do that, seems less than optimal usability for the desktop users [01:36:31] p858snake: I just want to give it atry for couple days [01:48:35] auvajs: Depends upon your theme and how you want to do it. A lot of modern mobile themes are mobile via CSS, but some setups use a subdomain that serves mobile-only content [01:56:09] CZauX: I'd like to have any page being shown as mobileaction=toggle_view_mobile but with normal "desktop" address [01:58:00] auvajs: https://www.mediawiki.org/wiki/Extension:MobileFrontend [01:58:07] auvajs: MobileContext::singleton()->setForceMobileView( true ); [01:58:55] CZauX: tnx this is what I've been looking for [01:59:36] Fatal error: Class 'MobileContext' not found in /var/www/mediawiki/LocalSettings.php on line 112 hmmm :D [01:59:59] require MobileFrontEnd first [02:01:29] I have it there [02:01:33] require_once "$IP/extensions/MobileFrontend/MobileFrontend.php"; [02:01:42] before that line [02:03:51] Try this https://gist.github.com/Cyken-Zeraux/4fbe7262fb33528a1297 [02:04:12] derp, reload that [02:06:20] CZauX: still the same [02:06:48] Are you sure you have the extension installed? [02:07:21] sure, I normally use mobile frontend [02:08:02] 1.0.0 (8867489) 17. 3. 2016, 01:01 [02:08:34] the latest from git [02:10:19] auvajs: I don't know why it wouldn't show up, the file is right here https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/includes/MobileContext.php [02:11:21] probably easier just to use $wgMFDeviceWidthTablet [02:12:00] that file is really missing in my extensions/MobileFrontend dir [02:12:14] no idea why, I use the git version [02:13:20] auvajs: Re-install the extension from your source and see if that does it. Wikimedia source file is there, too: https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FMobileFrontend/master/includes%2FMobileContext.php [02:14:11] still the same error even after manually downloading that file into extensions/MobileFrontend [02:14:53] auvajs: the include file is most likely loaded from a different file. If you're missing an internal part of the source I'm guessing you're missing more than just that file [02:15:26] CZauX: how can I reinstall the whole extension with git? [02:16:42] auvajs: https://www.mediawiki.org/wiki/Special:ExtensionDistributor/MobileFrontend [02:16:56] That doesn't use git, but that'l get you the right files [02:18:33] CZauX: ok, works now, thank you [02:18:38] np [02:18:59] hm it worked for a while and now the same error :/ [02:19:22] this is strange, isn't? [02:20:11] Yes. Your server shouldn't be playing with files by itself. I have no idea whats going on there [02:22:04] well I'm doing automatic git pull every hour at :18 so it evidently downloaded the git version again and there are some errors [02:22:25] after I restored the official one it works again.. [02:22:36] funny [02:22:51] auvajs: O.o Git isn't meant to be used as a release repository, commits break things all the time [02:23:30] really? lol [02:23:59] I'm just lazy to download new stuff manually [02:24:31] Yes, https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/commits/master [02:24:57] is it possible to let git download stable versions only? [02:25:17] You can see how many commits happen, git repo's are meant to be used to develop with others and keep track of versions. However, you shouldn't use it to auto-update. Its easy, but risky [02:26:33] hm [02:28:07] I don't typically auto-update extensions, so I don't have a specific answer on that [02:28:36] but I'm not downloading the master branch, it doesn't matter? [02:29:28] auvajs: Ah, I didn't see that branch, but yes that would be much more stable. [02:30:09] for extensions I use [02:30:12] git pull [02:30:12] git submodule update --init --recursive [02:30:20] is this a problem? [02:30:52] No idea, I haven't taken to memorizing specific git commands. If you're pulling from https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/tree/REL1_26 [02:30:58] then you should be fine [02:31:05] if your version is 1.26 of course [02:31:36] I don't know where is it downloading from, this is the first problem with it I'm experiencing [02:32:19] never mind, thanks.. bbl [09:49:01] Hey guys, I've been working on a cool theme for a while to make a more media-friendly site, kinda how Wikia does it. Anyone have recommendations on some themes like that? [10:01:29] CZauX: You mean a skin? You can find tons on https://www.mediawiki.org/wiki/Category:All_skins [10:02:51] Niharika: Yeah, skin. there's always findable skins, but I'm wondering if there's any popular ones that are close to how wikia does it, and not how wikipedia looks. [10:03:21] CZauX: Which skin does wikia use? Lemme check. [10:04:35] Niharika: I believe its custom. I've created a cool bootstrap-based skin along with some custom functionality to add in that latest-updates bar and make it much more media oriented [10:04:44] However it will be a while before thats ready for public use [10:06:14] CZauX: Cool. :) [10:07:38] Its quite an oddity, because I can't find anything that isn't like Wikipedia. Wikia is the only easy solution that is more stylish, but because of its aggressive advertising its not a usable platform [10:08:15] I've definitely seen some very novel skins lately. [10:08:24] * Niharika looks [10:15:16] https://www.mediawiki.org/wiki/Skin:BlueSky [10:15:31] https://www.mediawiki.org/wiki/Skin:Timeless [10:16:08] https://www.mediawiki.org/wiki/Skin:Gamepress [10:16:26] it's not novel, it's timeless! :P [10:17:48] :P [10:18:20] https://www.mediawiki.org/wiki/Skin:Splash [10:18:32] Splash is more of what I'm looking for, but with better navigation [10:18:59] Looking to do away with the navigation bar, turn it into latest-updates and fun functionality that most sites have. Even a chat [10:19:04] *sidebar [10:19:08] And better font! Otherwise it looks nice. :) [10:19:43] CZauX: A lot of folks here will be scandalized by your thoughts about doing-away with the navigation bar. :P [10:21:50] The biggest problem we have with Mediawiki is that its not easy to setup, and there's no good way to customize it. Nowhere near what Wordpress offers. Wikia is one of the only platforms to provide a modern feel and convenient functionality for average users. [10:21:54] We need something better than that [10:23:57] https://www.mediawiki.org/wiki/Skin:DeskMessMirrored [10:24:27] Something like that, too. Focus navigation on nav bars, change sidebar to additional functionality. [10:25:28] Looks a bit old-fashioned. (You can tell from the iOS 4 or whatever that is) [10:25:59] Heh, true. [13:05:36] morning [13:25:52] Morning. [15:04:39] Hello [15:47:09] Hallo people. [15:47:50] Let us imagine the wiki site with pages and categories. Sometimes I make private comments as categories, so those comments look like red-link categories. [15:48:19] This allows to tag some pages, say, with ERROR category, and to have such list of error-filled pages. [15:48:35] Is it possible to show red-link categories only to logged users? [15:48:59] Is it possible to hide red-link categories from anonymous users? [15:49:23] PMZ_: with some css trickery, probably. but mediawiki supports so called "hidden" categories, that are explicitly marked on the category page. such categories are shown only to users that have enabled hiddent categories [15:49:33] this feature is desigend for exactly your use case: maintenance markers [15:49:48] This means, I am to create these cat and then to delete them... [15:50:35] PMZ_: why delete them? They should exist, like other category pages [15:50:46] Thanks for the idea anyway, I'm going to read about hidden cats. [15:50:47] PMZ_: wikipedia has a category of hidden categories https://en.wikipedia.org/wiki/Category:Hidden_categories [15:51:22] They cannot exist. Example of such category: Category:CHECK Ivanov call him 2-12-13 in April. [15:51:45] PMZ_: ah. err, why would you make that a cetegory? [15:52:30] In this sample case, I am to call Mr Ivanov and to ask him about something on the page. So having all such tasks as categories, I see a list of non-existing cats as a task list. [15:52:52] Also, on the page I see that I have a task for this page, that I am to call a man and to ask him. [15:53:15] Also, the redlinked cat list shows me the number of problems. [15:53:23] PMZ_: the standard way to do that would be a template. e.g. {{CHECK|Ivanov call him 2-12-13 in April}}. This could assign the hidden category CHECK. Hiding the output of the template from people who are not logged in will involve some css trickery. or even JS. Not sure. [15:54:15] I'd personally hide the output using css, give it a special css class, and then use my user js to make it visible to me. or the site js to make it visible to all logged in users [15:54:21] maybe it can be done without js too [15:54:22] Looks interesting, yet redlinked category allows me to edit these marks with HotCat tool :-) [15:54:56] PMZ_: sorry, if you decide to abuse a feature for somethign it was totally not intended for, you are on your own :) [15:55:05] though you are in good company with that... [15:55:58] I am to built house from dust and clay :-) [15:56:30] there's a lot that can be done with css and js directly on-wiki. maybe dive into site- and user scripts [15:59:22] Thanks for the way. Redlink cats are in class="new" inside of div id='catlinks'. This allows me to hide them with CSS. [16:09:18] hey guys [16:09:50] My mediawiki installation gives me redirect problems ("Too many redirects") if the title contains an apostrophe [16:10:06] Searching online gives me nothing of value, [16:10:19] and tried to change apache conf without luck [16:10:29] been debugging it on and off for a while now [16:10:41] but thought maybe someone here had encountered similar stuff? [16:11:02] Or knows whether I should keep on hacking at apache or look elsewhere? [16:12:07] Sounds like an apache rewrite error [16:12:14] Presumably with apache changing it one way, and MW changing it back [16:12:18] encoding related [16:12:25] that makes sense [16:12:44] it seems like the browser changes it to %27, fwiw [16:12:44] Can you pastebin your apache config? [16:12:49] yeah, exactly [16:13:45] pastebin coming up [16:13:55] reminds me of https://phabricator.wikimedia.org/T106793 [16:17:55] I have one server with the mainsite, which routes further to server running wiki [16:18:05] here's vhosts from the first server [16:18:07] http://pastebin.com/nDYXiR0t [16:18:29] anomie: question for you about the new account creation flow [16:18:49] mdholloway: What's the question? [16:18:58] anomie: so, i'm hitting action=query&meta=tokens for a createaccounttoken [16:19:28] anomie: then submitting that token with the username, pass, etc., and immediately getting a FAIL for having a missing or incorrect CAPTCHA response [16:19:33] anomie: am i missing a step [16:19:40] ? [16:20:12] and here's the medawiki-specific apache conf: [16:20:13] http://pastebin.com/fjaPfPgR [16:20:35] Reedy: Pastebins above :) [16:21:08] I think you need the NE flag [16:21:38] Does anyone have experience with the metrolook skin? [16:21:47] mdholloway: Ugh. ConfirmEdit trying to activate as if for non-AuthManager is probably conflicting with AuthManager somehow. [16:21:53] (probably) [16:23:29] AAlex yes [16:23:54] Reedy: Tried it earlier, didn't help. Tried it again, but still no luck :/ [16:24:31] Do you think it might got something to do with me forwarding the IP's through the other server? [16:26:41] is it running a proxy? [16:27:33] No proxy, Reedy. [16:29:02] bd808: Looks like ConfirmEdit doesn't BC very well with AuthManager account creation, because ApiAMCreateAccount doesn't do all the crazy hooks the old module does (and, for that matter, it doesn't even use the same class name anymore) but ConfirmEdit still blows up the AbortNewAccount hook. Any reason not to just remove the role for now? [16:29:35] It's weird, because it seems to be loading and working for a long time before telling me the redirect error [16:29:46] As if it's a redirect loop [16:29:49] or something [16:30:00] anomie: on our test server? No complaints from me [16:30:04] Is there an easier way to debug this kind of stuff? [16:30:06] * anomie goes to do that [16:30:13] probably should file a bug to track if you haven't already [16:30:55] bd808: T110302? [16:30:56] T110302: Update ConfirmEdit to use AuthManager - https://phabricator.wikimedia.org/T110302 [16:31:03] there you go [16:34:46] mdholloway: ConfirmEdit should be gone from the test server now. [16:35:01] anomie: great, i'll give it another try [16:39:37] Reedy: I'll come back to this when I have more time to work on it. Thanks for your help! [16:43:22] anomie: yep, works now! [16:43:41] anomie: thanks for your help [16:43:50] mdholloway: no problem [19:39:57] Hi! [19:40:58] hey [19:41:33] I am trying to build an android app for a project. I need help in converting the Mediawiki markup in text format without losing the hyperlink. [19:44:12] !apii [19:44:12] https://www.mediawiki.org/wiki/API:Calling_internally [19:44:19] grrr [19:44:21] I mean [19:44:23] !api [19:44:23] The MediaWiki API provides direct, high-level access to the data contained in the MediaWiki databases. Client programs should be able to use the API to login, get data, and post changes. Find out more at < https://www.mediawiki.org/wiki/API >. For client libraries in various languages, see < https://www.mediawiki.org/wiki/API:Client_Code >. [19:44:49] specifically, https://www.mediawiki.org/wiki/API:Parsing_wikitext [20:24:32] i am new to mediawiki api. [20:25:24] but by parsing the wikimedia markup with the parsing_wikitext the link are broken. idk why? [20:26:34] Mtalal: an example would be appreciated :) [20:30:45] what i am doing is that the result of the this http request https://en.wikipedia.org/w/index.php?action=raw&title=SoundCloud given to the text parameter of the parsing_wikitext. and then for checking if the links are working or not i am running a simple html page with the output of the result [20:45:12] i need help in converting the wikitext to plain text with linked hyperlink using medaiwiki api. [20:50:06] action=raw isn't parsing it [20:50:07] https://en.wikipedia.org/w/api.php?action=parse&page=SoundCloud [20:53:45] thank you [21:13:06] i need to only get the body of the page. [21:13:28] I am using restbase api https://rest.wikimedia.org/en.wikipedia.org/v1/page/html/SoundCloud [21:18:27] Mtalal: are you interested in parsing your own wikitext? [21:19:22] if so, then https://en.wikipedia.org/api/rest_v1/?doc#!/Transforms/post_transform_wikitext_to_html_title_revision might be of interest to you; it also has a `body_only` flag which makes it return only body.innerHTML [21:20:25] another option is to do your own extraction via DOM or a simple regexp as in https://github.com/wikimedia/restbase/blob/2c194a377a69a67eb8f288e846357d1291f29d89/sys/parsoid.js#L809 [21:24:59] using post transform the hyperlink created are not dynamic. what should i do about it? [21:58:14] Mtalal: I'm not sure what you mean [21:58:29] the links are relative to the base href [21:58:47] which is en.wikipedia.org/wiki/ by default [22:21:48] using the API method the anchor tag is return with rel="mw:WikiLink" which seems not to work.