[00:49:46] I'm kinda new to using resource loader, I'm writing an extension and now I registered a css file using RL but It's no associated with any page so it won't load [00:49:56] how I can invoke that css? [00:51:59] $out->addStyles( 'ext.module' ); or similar? [00:52:33] where out is an outputpage [00:53:17] hmm [00:53:19] thanks [00:53:25] let me see what I can do [00:53:58] https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#Loading_modules [00:56:34] thanks, one thing Reedy. I just want this to be invoked in ChangesList pages (RC, watchlist, etc.) Is there to use another hook? [00:56:58] There's probably one you can use... [00:57:08] It definitely won't make any problem but I just was thinking of performance [00:57:15] https://www.mediawiki.org/wiki/Manual:Hooks/BeforePageDisplay [00:57:51] ok :) [00:57:52] thanks [01:53:26] well, i gotta hand it to the minetest devs. it's by far the easiest multiplayer game server that i've ever setup [03:11:16] We need an admin to delete https://www.mediawiki.org/wiki/File:Collections_mock.png [03:13:20] Guess it's done [08:09:22] i think i found a mistake in the wiki at http://wiki.minetest.net/Subgames/Lord_of_the_Test/Silver_Ingot the description says "Silver Ingots are smelted in a furnace from Iron Lumps." [08:09:39] whoops, this certainly wasn't the right channel, though incidentally it is a mediawiki instance [10:55:27] Haha [14:10:34] I need to dissalow inserting hyphens in a string. All code is here: https://github.com/miraheze/CreateWiki/blob/master/SpecialCreateWiki.php We are a wiki farm and people request wikis and we dont want them to be allowed to submit requests with subdomains with hyphens in them, there should be a message saying "Please choose a subdomain with no hyphen" [14:14:58] morning [14:32:45] Reception|away: strpos [14:33:30] Reedy: would https://git.io/vz9Tl work? [14:33:51] No [14:34:32] Reedy: What would work? (im not too good with codes) [14:34:34] That's looking to see the literal text 'wiki-name' has a hyphen [14:35:27] ohh [14:35:45] By the looks of it [14:35:47] You want to add it to handleRequestWikiFormInput [14:35:53] ok [14:36:08] Thanks. Ill change wiki-name to - [14:36:18] and then add an error message, and return false out of that function [14:36:58] thansk [14:37:00] *thanks [14:40:10] Hey im using xampp on windows, for an internal wiki...emails from the wiki arent going out [14:40:54] EnableEmail is set to true in LS.php [14:41:38] Is it configured to use the email server? [14:41:39] !email [14:41:39] For information about setting up email, see . For extensions, see [14:46:47] Reception|away: That's still nowhere near right [14:47:57] Hi! Can someone help me figure out a php function thing? We have a custom skin, and inside that skin we want to display some code only if the namespace matches and the page is not being edited/viewing-history of/etc [14:48:21] So for the first part it was easy, we just used: $namespace = str_replace('_', ' ', $this->getSkin()->getTitle()->getNsText()) [14:48:26] and checked that against our namespace [14:48:42] but we're totally confused on what to do for the second one, checking if the user is editing/viewing-the-history-of [14:48:52] or any other action on the page [14:49:25] otherwise the code shows up there too, which is what we want to avoid :) if anyone can help, thank you very much [14:51:05] Reedy: I've looked through those resources but im not understanding what i actually need to change because i have enableemail, enableuseremail all setup [14:51:17] Roux_: wgAction? [14:51:23] im attempting to use just phpmail or the built in pear package that comes with xampp but havent explicity placed anything in localsettings [14:51:25] yeah, i looked into that [14:51:30] kevindank: you still need to tell it where your email server is [14:51:30] would i be able to use that @reedy? [14:51:46] which setting would define that? im not using smtp [14:51:50] my other idea was to use strpos(SOMEVAR, "&action=") [14:52:08] Roux_: It should work, can't say 100% [14:52:15] Roux_: Look at Action::getActionName() [14:52:19] Which is what $wgAction is set from [14:52:29] kevindank: If you're not using SMTP to send emails.. what are you using? [14:52:48] Usually, some variant to $wgSMTP needs setting [14:54:03] Reedy: I thought phpmail could send anonymously... i did attempt to however define our smtp.office365.com however that didnt make a difference as emails did not send out [14:55:05] do i need to define the path to pear in ls? [14:56:06] You shouldn't have to [14:56:45] Catchable fatal error: Argument 1 passed to Action::getActionName() must implement interface IContextSource, none given [14:56:52] so what could i pass to check all actions? [14:56:57] do you know [14:57:39] i tried: !is_object(Action::getActionName()) [14:58:05] i'm guessing perhaps fill in "$this->getContext()"? [14:58:45] You could just use wgAction [14:58:49] Or, if you've got a context anyway [14:59:06] oh nope we don't lmao [14:59:07] Call to undefined method foregroundTemplate::getContext() [14:59:18] i can't find out how to use wgAction [14:59:23] global $wgAction; [14:59:26] i thought that was simply an array showing which actions are permitted [14:59:28] echo $wgAction; [14:59:35] so that would be THE action being used? [14:59:36] No, that's $wgActions [14:59:41] ahhhhhhhhhh damn i'm stupid [14:59:42] thank you [15:00:33] I've lost $wgAction now [15:01:05] https://github.com/wikimedia/mediawiki/blob/master/includes/OutputPage.php#L3212 [15:01:05] hmm [15:01:06] Hmm [15:01:08] Is that a JS var? [15:01:18] && !isset($wgAction) [15:01:20] doesn't work [15:01:26] i mean it always outputs true is what i mean [15:01:33] Wikidata do... [15:01:33] Action::getActionName( $skin ) !== 'view' [15:01:45] You can pass in anything that's a context subclass [15:01:56] So, in a skin, you can in theory do [15:02:01] Action::getActionName( $this ) === 'view' [15:02:02] i'll try that [15:02:05] As you're in a skin [15:02:09] And you're only caring about if it's a view [15:02:14] yup [15:02:47] oh but again [15:02:48] Argument 1 passed to Action::getActionName() must implement interface IContextSource, instance of foregroundTemplate given [15:03:41] or for $skin it'll say "null" passed [15:04:48] $skin has to be defined [15:05:27] SkinTemplate subclasses should be a contextsource [15:10:08] ok i have found the "class Skinforeground extends SkinTemplate" and there are some variables like skinname, template, etc. [15:10:36] if you're in a skintemplate subclass, you should be able to pass $this [15:11:00] no i'm outside of that [15:11:05] but i can edit inside there to set a variable i suppose [15:11:17] what would you suggest? trying wgAction in there? [15:11:19] You should be able to find a context object easily enough [15:11:36] yea, i think i need to read up on "context object" some more haha [15:11:54] Mailer returned: Failed to connect to smtp.office365.com:587 [SMTP: Failed to connect socket: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (code: -1, response: )] [15:11:56] it looks like wgAction is a js variable rather than anything else [15:12:11] gotcha [15:18:48] Is there a way to delete a user? [15:19:39] I need to delete myself so I can try and track down a PHP fatal error someone is getting when they attempt to log in. [15:19:54] and they're a new user [15:20:37] Best MW does it merging [15:21:37] ahhhh [15:24:12] oh [15:24:25] I think I may have found an issue... [15:25:08] user->setPassword( null ); in the auth extension I'm using [15:25:17] https://github.com/jornane/mwSimpleSamlAuth/blob/master/SimpleSamlAuth.class.php#L440 [15:30:39] Hello! [15:31:06] hi unknown_ [15:31:26] hiya [15:32:33] I have installed media wiki 1.26.2 and LDAP Authentication 2.0d extenstion and I got only invalid username or password when i tried to login [15:33:44] Also, when i use tcpdump, there is not communication between server and ldap [15:34:06] but, when i use telnet [my ldap server ] there is a communication [15:34:14] could you please assist me ? [15:34:59] https://www.mediawiki.org/wiki/Extension:LDAP_Authentication/Configuration_Options#Debugging_options [15:37:54] Thank Reedy, i already used the debugging option: $wgDebugLogGroups['ldap'] = '/tmp/debug.log'; but the file never created. [15:40:30] touch it first [15:43:57] User->setPassword(NULL) prevent *any* login, right, regardless of authentication type? [15:44:05] omg reedy finally got it lololol [15:44:11] *prevents [15:44:12] Action::getActionName( $this->getSkin()) was all i had to do [15:44:16] lol [15:44:19] Sounds about right [15:44:21] thanks man -- took a while but tried various things [15:44:32] i wonder why getRequest wasn't working, but now that this is working i don't care lol [15:48:18] when attempting to run update.php the php cli crashes, anyway to kick it off without using php cli? [15:50:06] You can use the web installer, but it's not so robust [15:50:12] If it's crashing, I presume it's segfaulting or something [15:50:17] You'd want to look at fixing it [18:00:55] Um is there any alternative to the timeline extension that works well? [18:41:30] I have used the run query feature of semantic wiki to create a search form. I have values stored in multiple property keys, and I want the search to search through the values of all the fields (property keys), and return all corresponding results. Is there a way to implement such Keyword search feature? [19:25:22] Hello everyone, I'm Sayli Karnik and I wish to contribute to wikimedia via Outreachy in the upcoming round 12. I have made my Phabricator account.Can you help me in going ahead with my initial contribution? What bug should I work on? [19:25:56] sayli: pick up something [19:47:44] sayli: you can check this https://phabricator.wikimedia.org/tag/possible-tech-projects/ out [19:47:49] !outreachy [19:47:49] Wikimedia is a participant in Outreachy, Free and Open Source Software internships. For more information see https://www.mediawiki.org/wiki/Outreachy [19:48:22] !outreachy is Wikimedia is a participant in Outreachy, Free and Open Source Software internships. For more information see https://www.mediawiki.org/wiki/Outreachy Check out some tasks to work on https://phabricator.wikimedia.org/tag/possible-tech-projects/ [19:48:22] You are not authorized to perform this, sorry [19:48:42] !outreachy del [19:48:42] You are not authorized to perform this, sorry [19:50:25] !outreachy del [19:50:25] Successfully removed outreachy [19:50:46] !outreachy is Wikimedia is a participant in Outreachy, Free and Open Source Software internships. For more information see https://www.mediawiki.org/wiki/Outreachy Check out some tasks to work on https://phabricator.wikimedia.org/tag/possible-tech-projects/ [19:50:47] Key was added [19:54:09] I have used the run query feature of semantic wiki to create a search form. I have values stored in multiple property keys, and I want the search to search through the values of all the fields (property keys), and return all corresponding results. Is there a way to implement such Keyword search feature? [20:02:53] Are there any more details on how to configure $wgEchoSharedTrackingDB and $wgEchoSharedTrackingCluster in the current Echo beta being tested on the beta cluster? The documentation in the file is very sparse. Even though I have configured it to what I believe is correct I can not seem to make cross wiki notifications work. [22:00:45] discussion about updating the PHP version requirement starting now in #wikimedia-office [23:08:58] Could I set up a page notice for any pages being created that match an expression? [23:09:23] example a pagenotice that is displayed on an article that starts with 'Build' ? [23:09:34] why not use a namespace [23:10:07] there are many many previously created articles, though I suppose I could just move them all into a new namespace.. [23:10:14] thanks