[11:05:47] Hi I'm new and would like to start contributing for Outreachy, Could anyone please help me out? Thanks [11:17:15] !contribute | zedd1234 [11:17:15] zedd1234: For information on how to contribute towards the MediaWiki project, check out [11:17:53] Thanks a lot! [14:40:28] hey all, I imported the template page from here - https://www.mediawiki.org/wiki/Template:Note into my wiki [14:40:33] with include templates selected [14:40:52] are there any more steps to take apart from add parserfucntions and scribunto? [14:41:11] if I use the suggested syntax on my page, it just shows "foo" with no border, colours or image [14:42:03] do i need to copy some css from somewhere? [14:49:47] Hii [14:50:53] I want to clone mediawiki-core in /var/www/html but I am getting permission denied. What should I do? [14:51:49] you could run the copy command with sudo [14:52:07] and the chown it to www-data to make sure it can be written to [15:39:55] Hey guys, I'm trying to use mwdumper to load simplewiki into mysql server. However, after I run the command and it takes hours to import all the pages. My wiki remains empty. Can anyone help? [18:43:20] hello, when i try to request an account for http://my.warp.at/mediawiki/index.php/Main_Page it says Failed to add recipient: chris118x@icloud.com [SMTP: Invalid response code received from server (code: 550, response: 5.7.1 Unable to relay)], no matter if i try other emails also [19:05:53] chris118x: your email server seems misconfigured [19:06:07] He left [19:06:37] yes [20:11:35] hi everyone. looking for a extension to have a upload form inside a modal. ideally, i want to open up Special:Upload page inside of a modal. The only way i can think of to do that is using an iframe, but i dont believe that's the best approach.. because it uses form element that sends a POST request and returns html back [20:11:50] so im thinking of building a form myself and using api.php [20:12:35] yes, using api.php would be the most neat approach [20:12:41] how do file uploads work normally on the backend? i know when you upload a file to api.php, internally it seems to use includes/api/ApiUpload.php [20:13:03] what about Special:Upload? does it use the same approach internally? [20:13:05] there's a jquery plugin already bundled for async uploads IIRC [20:14:11] yashafromrussia: if you use api.php, just forget about PHP internals, that's why you're using an api in the first place [20:14:29] ok cool ill take a look at it. i ask about internal workings of it because im using Extension:NSFileRepo to specify a namespace for each file upload. so id need to pass an extra parameter (like wpNSFR_Namespace) [20:14:31] yashafromrussia: did you try if Special:UploadWizard fills your needs? [20:15:33] !e NSFileRepo [20:15:33] https://www.mediawiki.org/wiki/Extension:NSFileRepo [20:17:55] Platonides: yes, i tried using that. but i gave up.. i wasnt able to get a file uploaded. when i click on "Select media files to share" nothing happens. no logs in the browser console either [20:18:31] that extension is crazy [20:19:08] actually i lie. it throws an error right after i go into the upload tab within the extension: Uncaught TypeError: Cannot read property 'mozilla' of undefined [20:24:20] anyways, i ack'ed through NSFileRepo extension and it looks like theyre just injecting `wpNSFR_Namespace` parameter and the file uploader just iterates through all the keys and (maybe) saves the value into the record of that file [20:25:02] however, ApiUpload.php does not do that. it only saves the fields it expects [20:28:18] so without tinkering the source code of mediawiki, i think, the only thing i can do is make a POST request to index.php/Special:Upload like it normally would and then handle the html it returned in the response myself [20:31:57] I'm wondering if it would be possible to create a new class inheriting ApiUpload to add those fields [20:34:12] interesting. that could work [20:46:16] having the lack of knowledge of internals of mediawiki and lots of experience in js (rather than php), i will copy the form on Special:Upload page into a modal, and try to handle the post request through ajax.. i know its a hacky solution especially since error responses come back with 200 and i have to parse the response to see if there was an error. but i believe it will take the least amount of time [20:59:26] yashafromrussia: So, not that this will help your NSFR problems, but core now has an in-editor upload dialog. You can configure it pretty easily. [21:00:00] yashafromrussia: https://www.mediawiki.org/wiki/Upload_dialog [21:00:44] Not helpfully, that is in very late core, so your 1.23 extension likely won't be able to follow if you upgrade. [21:04:56] marktraceur: thanks. i will keep in mind! [22:00:04] im back. i figured out that SpecialUpload.php uses a hook that other modules can use. this one in particular - UploadFormInitDescriptor. ApiUpload.php does not seem to use descriptors. But it does not provide any hooks, does it? [22:00:34] according to this page - https://www.mediawiki.org/wiki/Manual:Hooks it does not [22:01:14] yashafromrussia: hey, what are you trying to do? (can you repeat?) [22:01:33] there are a few hooks in UploadBase, which both SpecialUpload and ApiUpload use [22:03:02] yeah sure. im using Extension:NSFileRepo to limit what users that can access an uploaded file. the upload form should send the upload request through ajax so it doesnt reload the page. however, that extension integrates with Special:Upload page [22:03:14] so i was thinking of doing one of the following [22:03:55] 1. put Special:Upload into an iframe (really dont want to go this route since you cannot communicate between an iframe and the parent page) [22:04:12] 2. call /index.php/Special:Upload like it normally would and handle html response inside js callback [22:04:29] 3. got suggested this one here - inherit ApiUpload.php to save wpNSFR_Namespace field [22:06:13] the way Extension:NSFileRepo works is that it uses UploadFormInitDescriptor hook to modify the file descriptor (looks like its the information that will be saved into the db) to add an extra field - wpNSFR_Namespace [22:06:38] hmm, let me look at that extension [22:11:47] yashafromrussia: hmm, it doesn't look like the NSFileRepo integration with Special:Upload is an important part? it just makes the form different. so that rather than uploading a file called "Private:Foo.jpg", you can use "Foo.jpg" for the file name and select the "Private" namespace. but the end result is the same, you'll get a file called "File:Private:Foo.jpg" [22:12:34] so i think you could just use the existing upload API, and just upload a file with that name? [22:13:31] MatmaRex: yep. youre totally right. the issue is saving the file under my custom namespace. so you're saying it's not saved separately from the file (like a separate column called namespace kind of thing), but its saved as a part of the filename? [22:14:10] cause if that's the case, yeah i should be good by just using api.php [22:15:08] yeah, it looks this way. (although i'm not familiar with the NSFileRepo extension and i could be wrong) [22:15:42] MatmaRex: alright. thank you so much! i will give a try tomorrow morning [22:16:13] :) [22:22:52] James_F: Do you have a go-to term for when you need to describe wikitext pages without using MediaWiki jargon? (Wikitext as opposed to a different content model.) [22:27:32] * ElmerG waves. Is anyone here good with/familiar with DPL? [22:32:33] Hi ElmerG. [22:32:36] Just ask your question. [22:39:00] I think I found it. I was trying to figure out a way to sort based on a specific template entry without having to make that template entry into a category. [22:40:07] [22:41:02] LOL. [22:41:02] Great. [22:41:31] for not talking like a pirate. [22:41:54] Or rather, I realized that the parameter I was needing was already set as a category so I didn't have to do anything. I'm finishing up someone else's half-finished wiki code. :P [22:51:49] I do have one other question. Is it feasible to use CSS on mediawiki, say in span, to layer images? Like, I want to take a picture, which ends up with a width of 250px and roughly 500px height, and tag an icon onto the bottom left of the picture. I'm using a span style on it to maniuplate the image (rounded corners, drop shadow), but I have no idea if layering like tht is feasible. [22:52:14] MatmaRex: just tried it. and it works! thanks so much. have a good night [22:53:32] ElmerG: Sure, that's possible. [22:54:25] ElmerG: you can add your own css to mediawiki. so its just a matter of writing a selector and css rule to position your icon there. like `bottom: 0; left: 0; position: absolute` assuming your images are both children of a div [22:55:53] The image is inside of an infobox, and then further inside of a span... [22:56:03] And yeah, I have the css extension installed. [22:57:27] Time to go digging and see what Google can tell me. [23:43:34] hey all, anyone here has ever implemented MediawWiki with OneLogin (https://www.onelogin.com) before? [23:43:47] any pointer I should first on how to do this? thx in advance [23:44:05] *I should know first