[01:46:02] hello. Anyone have an idea of which file I need to edit so I can change the search box placeholder text [01:47:25] searchsuggest-search [02:01:45] @Reedy, Thanks, I'm not seeing it though [02:02:08] Then you're probably looking in the wrong place :) [02:02:24] searchsuggest-search [02:02:26] ffs [02:02:29] https://en.wikipedia.org/wiki/MediaWiki:Searchsuggest-search [02:07:24] yeah I know :o Just starting to learn, so I don't know my way around much right now [02:09:14] Question: In my extension, how do I inject HTML into edit page using EditPage::showEditForm:initial, which depends on contents of textarea? [02:09:21] I can inject static HTML. [02:10:11] But how do I access the article text from that hook? [02:12:11] ContentHandler::getContentText( $editor->getContentObject() ) [02:13:25] What is $editor in this context? [02:13:29] public static function onEditPage_showEditForm_initial( EditPage &$editPage, OutputPage &$output ) [02:13:48] PS - Hi :-) [02:14:02] RTFM? [02:14:09] HappyDog: I know it's the same time where you are as I am ;) [02:14:09] &$editor: EditPage instance (object) [02:14:50] :-) [02:15:16] I was looking here: https://www.mediawiki.org/wiki/Manual:Hooks/EditPage::showEditForm:initial [02:15:27] Is there a better place for info? [02:15:41] Looks like that's vaguely the same info [02:15:57] Either use the source where the hook run call is made... Or docs/hooks.txt in mw core [02:16:29] I was looking at the source, but it's not necessarily clear how to actually use it. [02:16:43] There's a lot of methods on EditPage! :-) [02:17:38] Usually, if you're looking for article/page text, and there's not a "getText" method, looking for getContent is a good second step [02:18:00] Will getContentText() gives me the current text in all cases? i.e. the text being previewed if 'show preview' is hit? [02:18:09] Also, will it be just current section being edited, or whole page? [02:18:30] I honestly don't know [02:18:34] Hah! [02:18:56] It should be what's in the textbox [02:19:00] Basically, I want to do something similar to 'templates used in this page', but for content added via my extension. [02:19:02] Otherwise editpage is doing something funky [02:19:24] I'd suggest var_dump( ContentHandler::getContentText( $editor->getContentObject() ) ); die(); [02:19:27] and see what it tells you [02:19:45] Should answer that question fairly quickly [02:20:25] oh jeez. i was looking for a file named that reedy. i get it now. told you i was new :) thank you [02:20:40] mj0730: So all messages live in message files by language [02:20:54] But, they're exposed in the MediaWiki namespace, to allow onwiki overriding [02:21:09] Cause you shouldn't be modifying core/extension files in most cases [02:22:00] Reedy: Yup - the old var_dump() shows me what I want. [02:22:10] ok. so how do i know what the name of something is? [02:22:13] Would have taken me a while to get to the getContentText(), though. [02:22:21] Not so familiar with this new way of working... [02:24:00] mj0730: look at the files here and do a search in your browser: https://phabricator.wikimedia.org/source/mediawiki/browse/master/languages/i18n/ [02:25:46] For example en.json is the English localization; qqq.json tells translators the context of the message. (Eg: "This text is shown in the search box.") [02:31:24] ah ok cool. that just took care of like my next 10 questions [02:57:01] Reedy: Thanks for your help! I've got it working now. [02:57:10] Man, you know this stuff inside out! :-) [02:57:59] heh [02:58:21] Just need to rewrite a whole section of my extension, to decouple the parsing/rendering now! [02:58:36] I've got 99 problems, but the EditPage::showEditForm:initial ain't one... [11:18:01] Hello, I need help with installing mediawiki on my ubuntu16 with nginx server. I am too close :( [11:19:16] I cannot find LocalSettings.php in root directory html [11:22:09] Hello. I would like to know how I can class a Special Page inside a category on Special:SpecialPages [11:22:15] For example add a specialpage under "Data and tools" [11:23:14] studenthelp did you install your wiki first? [11:23:25] LocalSettings.php only shows up after you installed the wiki [11:23:35] No, i didtn [11:23:58] did you install PHP yet? [11:24:20] yes I have isntalled php7.0 [11:24:34] and did you install MariaDB? [11:24:38] with all other php toolkits (fpm, pear,etc) [11:25:01] nope, I've installed mysql and created db named mediawiki [11:25:31] well MariaDB is a better alternative, it's compatible with MySQL but that's fine, moreorless [11:25:35] ok so then tell me [11:25:49] which directory did you upload your mediawiki files in? [11:26:15] is it http://site.com/ or http://site.com/wiki or http://site.com/w or something else? [11:27:03] i've just typed in /etc/hosts 127.0.0.1 mediawiki.com www.mediawiki.com [11:27:20] so it is http://www.mediawiki.com [11:27:38] i dont think that was necessary [11:27:40] and on that address only I've giot is nginx page :) here is my nginx conf https://dpaste.de/69rh [11:27:45] because that would be implying your site is on mediawiki.com [11:28:04] ofc, this is just for testing [11:28:46] i'm not really familiar with nginx, I use Apache on my wiki server [11:28:49] my directory where I unzipped contect from .tar is located in /var/www/mediawiki/html [11:29:11] i think you should rename mediawiki to the url you're using [11:29:16] as in mediawiki.com in this case [11:29:37] you are right! give me a sec to check it :) [11:30:04] yes, my folder is named just mediawiki [11:30:21] and can I access it now, can I just edit my host file? [11:30:34] did you enable the virtual host in nginx ? by that i mean does mediawiki.com have it's own config file in /nginx/sites-enabled ? [11:31:21] yes [11:31:26] but file is named just mediawiki [11:31:53] it is linked from sites-available through ln command [11:32:16] hmmm [11:32:32] then you should be able to access the directory and install mediawiki [11:32:57] when you go to the server from a browser, you should be able to access /html/mw-config/ [11:33:03] which is the default installation directory [11:33:03] I copied conf file from official nginx site [11:33:08] https://www.nginx.com/resources/wiki/start/topics/recipes/mediawiki/#requirements [11:34:02] and at the very bottom they say that I need to find LocalSettings.php and edit $wgUsePathInfo to TRUE [11:34:20] but I cannot find that file in html directory of mediawiki [11:36:56] LocalSettings.php only becomes available after you've installed the MediaWiki using /mw-config/ [11:37:14] go to html/mw-config/index.php [11:37:20] and follow through the steps [11:37:26] it'll set up the wiki and the mysql database [11:37:28] nope, I have 403 forbidden on http://www.mediawiki.com/mw-config/ [11:38:12] ok I opend the file [11:38:51] 403 forbidden assuming the code in nginx forbids you from entering (which you should put in place after you setup the wiki) [11:39:53] I even put some index.php file into mediawiki directory with echo "Test" [11:39:59] and it works [11:42:32] maybe I need to restart nginx server [12:02:20] Reception123: replied https://www.mediawiki.org/wiki/Topic:Tmzwz5wux9afz4hd [12:08:53] Vulpix: thank you very much. [14:52:46] can anyone help me with mw28 is not renderung external links anymore since platform change? its just showing raw string of [httplink linktext] .... [15:02:36] hello, does someone now where i can find php.ini file in debian? [15:04:41] aliceisdinah: https://www.mediawiki.org/wiki/Manual:Php.ini [15:11:09] any ideas about mw doesnt render external links but show raw text like [http://examp.le Linktext] in the renedered page ??? [15:11:31] ok thanks, so in my php file is enable to download images, and in my Localsettings files too, but still cannot upload a files when i start a new page... any ideas? [15:14:25] ok I found ^^ thanks for the info [16:22:46] Hi guys. We got a server to help students practice and learn without developing stress on the admins and the communities. The students can be a bit messy. But we are having problems with the arabic version. database dump can be imported easily but we can't user the arabic ParserFunctions [16:23:44] Any help is really appreciated [19:46:36] hello! [19:49:57] I was trying to submit a patch, but command git review -R, it asks account credentials and then Authentication failed for 'https://gerrit.wikimedia.org/r/p/mediawiki/extensions/PageForms/'. This is happening every time. Whats going wrong? I m sure about credentials being correct. [19:54:41] Chances are they aren't [19:54:52] If you're cloning/submitting over HTTPS, you need a different password [19:55:01] One that is on https://gerrit.wikimedia.org/r/#/settings/http-password [19:55:10] Otherwise, delete the remotes, re-add them as SSH [19:55:12] and git review again [19:55:31] Thanks Reedy :) [19:57:48] Reedy you were right. Thanks alot. I just required other password. But for future I will change remote to ssh url [23:05:30] howdy, quick question: can you enable rawhtml on a specific namespace versus enabling It for the entire wiki? [23:34:13] Hello. Sorry to bother you. I have an internal mediawiki site, with anonymous reading disabled. Is it possible to make a single page of this wiki public, without making the entire wiki public? Thank you. [23:39:20] JustinG: https://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_viewing_of_all_pages [23:41:12] Ahhh the whitelist, thank you MTres19_M!