[00:14:11] Hola. ¿Alguien sabe cómo sería el código de un filtro que impida la creación de cuentes con determinadas caracteres? [00:14:30] !e AbuseFilter [00:14:30] https://www.mediawiki.org/wiki/Extension:AbuseFilter [00:14:50] stauffenberg: Perhaps that extension? [00:32:56] Kaare: hola. Es para probar un filtro que impida la creación de cuentas con determinados patrones. [00:33:04] No sé mucho de programación, pero gracias de todas formas. :) [00:39:12] stauffenberg: Con AbuseFilter, puedas usar algo como: !((user_name == "Patron1") | (user_name == "Patron2")) [00:39:35] mi espanol es muy malo [00:39:44] te entendí bien. [00:40:13] o, usas algo como !('group' in user_groups) [00:40:57] GEOFBOT: ¿y tú sabes cómo usar MediaWiki:Private_read_blacklist ? [00:41:01] ¿tienes algún ejemplo? [00:41:18] 'group' es el grupo que tiene los determinados patrones [00:41:28] ¿O qué extensión serviría para ocultar ciertas páginas en un wiki privado (Shoutwiki) ? [00:48:21] stauffenberg: No es recomendado ocultar ciertas paginas [00:48:36] GEOFBOT: se trata de un wiki privado. :SS [00:49:12] stauffenberg, qué necesitas exactamente? [00:49:26] White_Master: es que ando probando dos extensiones. [00:49:32] Los extensiones que pueden ocultar ciertas paginas funcionan mal [00:49:44] ^ my bad spanish above [00:49:52] la primera que es la del filtro antiabusos: prevenir la creación de cuentas con ciertos patrones en el nick. [00:50:05] la segunda: ocultar ciertas páginas a IP. [00:50:22] stauffenberg, a usuarios anónimos dices? [00:50:26] síp. [00:50:47] En la segunda no es necesario ninguna extensión [00:51:17] White_Master: ¿por qué? [00:51:56] stauffenberg, puedes colocar en el localsettings para ocultar las páginas a todos los usuarios anónimos [00:52:06] Si tu quieres ocultar todos las paginas a IP, usas $wgGroupPermissions [00:52:24] https://www.mediawiki.org/wiki/Manual:Preventing_access/es [00:52:27] Y colocas wglistread y colocas allí la páginas que sí quieres que una ip lea. [00:52:56] Pues se trata de un wiki privado hosteado por Shoutwiki, no sé si se pueda. [00:52:56] :/ [00:53:25] Mientras tengas acceso al localsettings todo se puede. [00:53:52] He ahí el detalle: no lo sé. [00:54:12] stauffenberg, y como pretendes instalar extensiones? [00:54:25] es que ya están en el wiki. Special:Version [00:55:04] Son extensiones que están habilitadas para el wiki, mas resulta engorroso gestionarlas. [00:55:22] Pregunta a tu administrador si tienes acceso a los archivos de dicha wiki [00:55:28] De otra forma no podrás hacer nada. [00:55:48] Eso o que el administrador haga él mismo los cambios [00:56:52] Entiendo. [00:58:54] stauffenberg, lee las páginas relacionadas. Y nunca pidas instalar extensiones para prevenir accesos [00:58:58] Son muy peligrosos [00:59:11] o.O [01:00:06] ocai, sólo que una extensión similar está habilitada para el wiki, y es más severa: en un mensaje MediaWiki indicar cuáles páginas sí son visibles. :p [01:00:38] stauffenberg: Despues ocultar todos las paginas a IP, uso MediaWiki:Private_read_blacklist y IP puede leer algunas paginas [01:01:24] Das cada pagina en un linea [01:01:34] ejemplo: [01:01:38] Pagina1 [01:01:40] Pagina2 [01:01:42] uhm. [01:01:46] Interesante. [01:04:42] Ahora me retiro. Gracias por resolver las dudas. [01:05:16] adios, buena suerte [01:05:54] I should work on my spanish [01:40:12] On my page: https://wiki.gamepaduniverse.com/wiki/Modules there are wikitable sortable tables. I need to change the sort icon symbol to a different color so I doesn't blend in with the background. How do I accomplish that? Thanks! [01:48:15] It looks like they're encoded images embedded in the CSS, so I'm not sure you easily can. [01:54:13] Oznogon: How would i proceed? [01:57:18] A good question, no great answers. You could make your own sort image and use it to replace the th.headerSort style's. [01:57:30] (Using CSS) [01:57:59] Someone who's a better jQuery hacker might have a better idea, as that's where the image comes from. [01:58:32] Specifically (your wiki's root)/resources/src/jquery/images/ [02:01:26] And remember that you'd also have to replace th.headerSortUp and th.headerSortDown, which appear when someone clicks on the header to sort it. [04:26:08] Hi there [04:26:57] Just popping to ask a quick question: does anyone know where I can find a tool to analyze my wiki's history of edits and output a count of edits per month over time? [04:28:16] [[Special:Stats]] ? [04:28:45] [[Special:Statistics]] sorry * [04:32:20] I don't see where it has a link to a chart of edits per month on that special page - is there a way to navigate to that information or export it from there? [04:38:51] no idea :( [04:40:27] Ah, well, thank you anyway [06:38:52] Hi everyone, I’m having trouble trying to install last MediaWiki stable, 1.25.1. The first step of the installation web-guide is to select a language, when I do it, I get this error: “Your session data was lost! Check your php.ini and make sure session.save_path is set to an appropriate directory.” I’ve checked the session path, it’s /var/lib/php-fpm/session. MediaWiki can write to it, I can see session files being created every time I hit [06:38:53] “Continue →”. I’ve checked browser cookies, tested through all browsers, keep the same error. This is a fresh install, I have no idea of what to try. [06:44:11] I’m running nginx + php-fpm, it’s not the canonical choice right? But it should do it. [06:59:14] I think it’s a bug, nobody saw it because they are all busy copying the old LocalSettings.php, so they dont ever touch the config wizard. I’ll have to take this approach, unfortunatelly. [07:24:30] <_jank> hi. i want to extend the fileupload. i want to add some extra attributes which are depending on an analysis of the uploaded file. i want an extra step in the uploadpop. i guess i can manipulate the form with function onUploadFormInitDescriptor( $descriptor ) and i get the temp file in the UploadVerification hook. But i have no idea how to wire it up. so that i can display the information which i would gather iin onUploadVerificatio [07:24:31] <_jank> n.... can someone give me a push in the right direction? [07:29:14] <_jank> does anyone know when bawolff is here again?:) [12:07:11] <_jank> hi. i want to extend the fileupload. i want to add some extra attributes which are depending on an analysis of the uploaded file. i want an extra step in the uploadpop. i guess i can manipulate the form with function onUploadFormInitDescriptor( $descriptor ) and i get the temp file in the UploadVerification hook. But i have no idea how to wire it up. so that i can display the information which i would gather iin onUploadVerificatio [12:07:11] <_jank> n.... can someone give me a push in the right direction? [12:18:52] Hey, i am using the actual stable version of MediaWiki. When i am trying to upload files, it tells me "Maximum file size: 10 KB". I have read and tried a lot the past days and i dont get it how to change it :( Using Debian, Nginx, MariaDB. Someone knows how to solve the problem? [12:22:57] On many pages i read default is 2 MB. I don't know why i have 10 Kb only. [12:23:47] Kyroy: What's the value of $wgMaxUploadSize? [12:24:51] Glaisher: $wgMaxUploadSize = 1024 * 1024 * 2; atm, had $wgMaxUploadSize = 1024 * 1024 * 100; too [12:28:32] Kyroy: And what about php's upload_max_filesize? [12:29:32] Glaisher: sudo cat /etc/php5/fpm/php.ini | grep upload_max_file ---> upload_max_filesize = 10240KB [12:30:08] Glaisher: it's the default value... but definitely greater than 10 KB ;) [12:31:49] hmm [12:31:54] there's also another config [12:32:16] Of php? [12:32:29] post_max_size [12:32:30] yes [12:32:36] What's the value of that? [12:32:46] post_max_size = 10240KB [12:34:18] Product Version MediaWiki 1.25.1 PHP 5.5.9-1ubuntu4.11 (apache2handler) MySQL 5.5.44-0ubuntu0.14.04.1 I Just finished installing [http://www.qojop.org my mediawiki] on my home server, I've pointed my domain name to my server ip address and edited $wgServer but the site keeps saying "Authentication Required" and I can't even view the wiki. How do I make the wiki public and get rid of "Authentication Required" ? [12:36:19] My mediawiki keeps saying "Authentication Required" , how do I get rid of this and make it viewable to the public? [12:36:42] qojop: go to the LocalConfig.php and edit $wgGroupPermissions['*']['edit'] = tŕue; and so on [12:37:06] Kyroy: and client_max_body_size ? [12:37:13] that's nginx's [12:38:28] Glaisher: dafault is 1m, i have tried some values, atm "100m" in the nginx.conf [12:40:44] Did you restart php after changing these? [12:41:06] yep [12:42:55] qojop: I don't see any "authentication required" when I visit the site [12:43:02] I changed $wgGroupPermissions['*']['edit'] = tŕue but its still says "Authentication Required" and I can't access the site [12:43:40] That's a mediawiki config but I guess this error is coming from apache [12:43:47] because I don't see anything at all [12:43:49] it just reloads [12:45:48] Kyroy: Sorry, I don't know why you can't upload the files [12:46:06] Are you sure this config is actually taking effect? [12:47:06] Glaisher: u mean the LocalSettings.php ? Yes, i enabled some extensions and so on [12:48:50] LocalSettings.php saved and Apache restated, still can't see the site [12:49:22] Kyroy: Could you open maintenance/eval.php [12:49:38] and then var_dump( $wgMaxUploadSize ); [12:49:52] qojop: As I already said, changing mediawiki config is unlikely to solve that error [12:49:55] Glaisher: sure [12:50:44] Glaisher: u want me to add these line ? [12:50:54] uh no [12:50:55] Run the script [12:51:08] php maintenance/eval.php [12:52:17] Glaisher: var_dump( $wgMaxUploadSize ); [12:52:24] Glaisher: int(2097152) [12:53:27] Glaisher: thats 2 MB, right?^^ [12:54:29] Glaisher: and now i have set it to 100: int(104857600) [12:55:50] That looks right. [12:56:36] Can you now check phpinfo(); [12:56:41] Any ideas as to why my mediawiki keeps saying "Authentication Required" and doesn't allow me to view the site? [12:56:43] not on command line [12:56:49] create a web file [12:56:55] and then look for the upload configs [12:57:28] Glaisher: checked it while chatting with u. send u a link private ;) [13:05:46] Is Jenkins not working right now, due to a MySQL issue? [13:08:36] ...and if that's the case, who can fix the problem? [13:13:45] Yaron: Try asking at #wikimedia-releng [13:13:46] Maybe hashar [13:15:14] Does someone know how the upload size "Maximum file size: 10 KB" is calculated? [13:27:52] Kyroy: if it's not in your LocalSettings.php, might be a PHP configuration [13:27:57] 10 KB is really low [13:29:40] Kyroy: I just looked at it. [13:29:41] Nemo_bis: Yeah, i know. But i don't find the problem: https://camimbo.de/phpinfo.php [13:29:54] Can you change it to MB rather than KB? [13:30:01] It looks like something is happening there [13:30:12] Glaisher: u mean in php.ini? [13:30:15] but I've to leave now so can't really wait [13:30:19] yep [13:30:35] var_dump( min( 2097152, wfShorthandToInteger( '10240KB' ), wfShorthandToInteger( '10240KB' ) ) ); [13:30:35] int(10240) [13:30:36] That's what happens in your config ^ [13:32:35] LAWL... I changed it to "10MB" in php.ini and now i get --> "Maximum file size: 10 B" [13:33:45] okay, i got it [13:34:00] it's a fault nin the DEFAULT php.ini [13:34:22] the values in the php.ini have to be: upload_max_filesize = 10M [13:34:37] and default it was: 10240KB .... well the B at the end is wrong [14:20:37] Glaisher: thanks. [14:21:47] hey everyone, i'm having some weird issue with lua on my server. i've got scribuntu installed using luasandbox and it appears to work on the wiki, but when scripts such as runJobs.php try to parse pages which invoke modules, i get errors in the CLI such as "error=Scribunto_LuaInterpreterNotFoundError: The luasandbox extension is not present, this engine cannot be used." [14:22:39] you can see here: https://psychonautwiki.org/wiki/Flubromazolam that there are no errors displayed (the warning panel at the top of the article uses a module to dynamically display some text) [14:26:43] PJosepherum: either install the LuaSandbox php extension, or switch to use LuaStandalone [14:28:02] it is installed, or it wouldn't work on the articles [14:28:13] it just doesn't work when called from command line in scripts [14:28:31] however there is no mention of it in phpinfo :/ [14:29:24] PJosepherum: then it's not being loaded via the cli [14:30:50] yeah that was my conclusion. do you know why that might be? [14:30:54] or how i might debug it? [14:31:34] maybe it uses a different php.ini or something? i'm not really sure [14:31:51] maybe ask in #php why an extension is loading with the webserver but not cli [14:34:01] good idea, thanks [14:34:15] Cannot join26 #php (Channel is invite only) =[ [14:37:18] could somebody invite me pelasE? [14:37:24] ##php [14:37:27] ah right [15:28:04] Hi! I am trying to install mediawiki, but index.php does not describe which script to run for the installation. And the README directs me here. Any thoughts? [15:29:29] in the extension.json file is there a way to have multiple functions from your extension run... something like "Hooks": { "EditPage::showEditForm:initial": [ "WikiROMSEditorMods::addSubmitButtons", "WikiROMSEditorMods::addColorDropdown" ] } [15:33:55] is the only way to create a wrapper function that calls the functions I want executed? [15:37:09] Heiya, just a stupid question. I am currently looking at the code of an extension on Diffusion. So how do I download a zip file of the revision I am looking at? [15:38:03] The extension homepage at https://www.mediawiki.org/wiki/Extension:FooBar should offer that. I don't think Diffusion or Gitblit offer that. [15:40:18] Thanks andre__ ! Ah so there is really no way. I just very much used to git.mediawiki.org. However this was currently not responding. [16:45:28] Hello [16:46:12] Anyone know how to resolve this http://prntscr.com/7xmdij error (Error creating thumbnail: Unable to save the thumbnail Destination) [16:53:36] Anyone know how to resolve this http://prntscr.com/7xmdij error (Error creating thumbnail: Unable to save the thumbnail Destination) [17:22:32] Is it fine to use mediawiki with php-cgi? [18:15:55] hi anomie [18:16:00] https://translatewiki.net/w/i.php?title=Special:MessageGroupStats&group=mediawiki-api#sortable:2=asc [18:16:10] there will soon be three languages with complete translation of core apihelp [18:16:19] aharoni: Good! [18:16:56] ... and I'm fixing little mistakes on the way as well [18:17:05] Also good [18:17:37] is there a way to define a template for a page, and to oblige user to fill in matching section (like html5) ? [18:17:49] and also a way to export a page to JSON [18:40:32] GeekShadow: Not without significant software changes [18:44:00] marktraceur, https://www.mediawiki.org/wiki/Extension:Semantic_Forms is a good start ? [18:46:35] Ehhh [18:46:40] "yes". "good". [18:46:41] !hss [18:46:41] ZOMG!! https://upload.wikimedia.org/wikipedia/mediawiki/6/69/Hesaidsemanticga2.jpg [19:07:27] There was talk on the wikimedia tech mailing list about how soon to raise minimum PHP version requirements. Well, OVH Hosting will discontinue PHP 5.3 support in September: https://www.ovh.com/ca/en/g1758.web_hosting_migrating_to_the_latest_versions_of_php [19:07:49] !del hss [19:07:49] Deleting users is very messy and not recommended, because this breaks referential integrity in the database (they appear in many different tables like users, edit histories, recentchanges, preferences, etc). A safe solution is to block the users, and possibly rename them with . You can also try [19:08:00] blech. [19:19:51] ori: thanks for trying! [19:26:40] !help [19:26:40] There are a lot of topics you could be asking about. Besides, this bot is mostly for experienced users to quickly answer common questions. Please just ask your question and wait patiently, as the best person to answer your question may be away for a few minutes or longer. If you're looking for help pages, we moved that to !helpfor. [19:26:46] !helpfor [19:26:47] http://www.mediawiki.org/wiki/Help: [19:26:52] haha. [19:27:03] this bot has a flair for comedy. [19:27:11] !delkey hss [19:28:17] !hss del [19:28:17] Successfully removed hss [19:28:24] Yaron: ta-da. [19:28:34] nooooooo [19:29:02] I think that image is seriously insulting. [19:29:34] People regularly write in to the lists or IRC to say they're using Semantic MediaWiki for some purpose or another, and to report that it works quite well [19:29:53] I don't see the need to deprecate it, it just hurts the community [19:30:14] If you're looking for code to mock, there's plenty of it around that isn't actually useful for anyone [19:30:22] Yeah, it's kind of in poor taste. (and I also use it, and it's pretty awesome) [19:30:33] *first it = image, 2nd it = SMW [19:32:02] ori: i never understood the joke anyway :P [19:32:36] Maybe we should just edit the image to say: "S/he replied to a good-faith question with an image macro, get him/her!" [19:34:05] Anyone have pointers on how I can search for all pages in my wiki that *don't* meet certain criteria? (That aren't in any categories, for example, or aren't in a few specific ones, or don't have certain templates?) [19:34:31] Or "Replied to a good-faith question with an image macro? GET EM!" to be more gender ambiguous and less unwieldy [19:35:18] Overand: You could use Special:WhatLinksHere to find transclusions of a certain template and invert that [19:35:35] Good call! [19:35:37] Thanks! [19:36:57] Overand: wait, that doesn't seem to work... [19:37:42] Bah, "Invert Selection" inverts namespace selection, not pages [19:38:19] GEOFBOT: yeah, so i noticed, BUT, I can just get an allpages list and do some shell scripting [19:38:27] True [19:38:43] hm, i wonder how crazy the sql query for this would be [19:38:48] i have no idea what the schema's like [19:38:58] probably more API-appropriate than sql appropriate [19:39:37] WhatLinksHere also works for categories, it appears [19:39:51] ha. [19:39:53] Special:UncategorizedPages [19:43:27] Overand: API for whatlinkshere-like functionality: https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&list=backlinks&format=json&bltitle=Template%3AUser%20en&bllimit=50 [19:46:26] !schema [19:46:26] http://www.mediawiki.org/wiki/Manual:Database_layout [19:52:09] ori: thanks! Though I did find it amusing that someone went to all the trouble to great that image and alias. [19:52:30] But it's probably a joke that went on too long. [20:08:04] oojs isn't loaded with mw by default? [20:08:14] Danny_B: OOjs or OOjs UI? [20:08:20] (The answer is 'no' to both.) [20:10:20] James_F: thx. i was trying to find out in doc on mw.o how to crank it up, no luck though. which page am i missing? wanted to play with those examples there and create some gadgets based on it... [20:10:48] Danny_B: https://www.mediawiki.org/wiki/Using_OOjs_UI_in_MediaWiki [20:14:12] James_F: seen that one, doesn't help since it has an example only for extension [20:14:29] Danny_B: Oh, you want to use it in a gadget? Why? [20:14:49] Danny_B: Do you hate other users so much you don't want to help them by writing it in a proper extension? ;-) [20:15:32] ??? (confused) [20:16:28] is anyone familiar with the echo extension? i've got some weird behaviour on mw 1.25.1 where it is notifying of new messages (extension:flow) but not actually displaying them in the popup [20:17:48] James_F: atm i want to create gadget - a simple single button added to the bottom of certain pages which will link to some page on click. of course i can do it the old plain js way, but isn't oojs preferred now? [20:18:09] Danny_B: Yes, but gadgets are horrible. [20:18:44] James_F: {{description missing}} why... [20:18:59] * MatmaRex stabs James_F [20:19:13] *fight* *fight* *fight* [20:19:55] Danny_B: let me make a ten-second example, there aren't really any docs about using OOUI in mediawiki, since it's mostly the same as using it anywhere else [20:20:15] * James_F grins at MatmaRex. [20:21:30] MatmaRex: thx. the deal is that the only single thing is missing in the doc obviously - how to load oouijs properly (assuming some dependency field in gadget description?) so it could be used in gadget [20:22:17] Danny_B: http://pastebin.com/jrKuxM1V [20:22:28] * Danny_B puts the mirror between James_F and MatmaRex :-P [20:22:45] Danny_B: for the rest, you can probably refer to https://www.mediawiki.org/wiki/OOjs_UI [20:24:17] MatmaRex: yup, i was reading that one carefully. but as i said, there was no example which would work instantly since ooui isn't obviously loaded, but on explicit call [20:24:30] yeah [20:27:52] MatmaRex: so assuming that this should allow to remove the mw.loader.using() wrapper? mygadget [ ResourceLoader | dependencies = oojs-ui ] | mygadget.js [20:29:16] Danny_B: yes. i added this to https://www.mediawiki.org/wiki/Using_OOjs_UI_in_MediaWiki#Gadgets , by the way. [20:30:58] awesome! thanks! [20:31:39] Thanks, MatmaRex. [22:49:29] !brain [22:49:29] Hello, I'm wm-bot. The database for this channel is published at http://bots.wmflabs.org/~wm-bot/db/%23mediawiki.htm More about WM-Bot: https://meta.wikimedia.org/wiki/wm-bot [23:04:13] !brain > GEOFBOT [23:04:13] Hello, I'm wm-bot. The database for this channel is published at http://bots.wmflabs.org/~wm-bot/db/%23mediawiki.htm More about WM-Bot: https://meta.wikimedia.org/wiki/wm-bot [23:04:28] !brain | GEOFBOT [23:04:28] GEOFBOT: Hello, I'm wm-bot. The database for this channel is published at http://bots.wmflabs.org/~wm-bot/db/%23mediawiki.htm More about WM-Bot: https://meta.wikimedia.org/wiki/wm-bot [23:04:46] derp, mixed up helpmebot and wm-bot; thanks Reedy [23:04:46] Hey GEOFBOT, you are welcome, but keep in mind I am just a stupid bot, it was actually Reedy who helped you :-) [23:05:02] 0_o [23:05:55] * GEOFBOT inches towards the door, eyes frozen wide in surprise [23:10:33] https://commons.wikimedia.org/wiki/File:Wm-bot.png nice picture someone made with the blender sculpt tool :P i tried to get good at blender once. failed spectacularly