[01:39:04] is there a way to make tables have sortable headings and heading stays on the screen when you scroll past the top of the table? [01:42:12] sortable is just adding the class `sortable` [01:42:46] there is a gadget for sticky table headings, but it is something in the realm of 'could be broken for vast amounts of your users' because browsers don't know how to deal [01:43:28] otherwise no [01:43:52] let me go get the relevant task for you to follow for the future which also has a link to the gadget [01:45:51] https://phabricator.wikimedia.org/T42763 [01:48:09] oh, nice thanks Izno [01:53:54] Izno: iiuc, that is a feature that is activly being worked on? [01:54:17] The timing looks like it may have been for the recent hackathon, so I don't know [01:55:38] thanks, seems like there is current activity. I hope it makes it into a realease one day [02:59:05] What's the proper syntax for loading js from another mediawiki page? IE: calling MediaWiki:Ads.js from MediaWiki:Monobook.js [02:59:23] I was using mw.loader.load('MediaWiki:Ad.js'); but that appears to not be correct [03:00:31] (Ignore the fact I said "Ad" instead of "Ads" the second time; that was a typo just now) [03:02:01] `mw.loader.load` is not `importScript` (don't use `importScript`). You have to use a 'full' URL to get the content of the page [03:02:53] So no local references? [03:02:53] see https://en.wikipedia.org/wiki/Template:Load_user_script for some examples [03:03:27] the 'localest' of references you can make is dropping the website before the slash [03:03:34] Ahhhh, I see [03:04:03] if you turn one or another scripts into a gadget, you can load the gadget's name [03:05:22] https://www.mediawiki.org/wiki/ResourceLoader/Core_modules#mw.loader.load has more [03:06:19] Izno: Perfect, that was exactly what I needed. Thanks! [13:20:43] Hello [13:23:04] So I installed media wiki, and setup LocalSettings.php to make the server private as explained here: https://www.mediawiki.org/wiki/Manual:Preventing_access But for some reason when i access the server without being logged in I still have normal access. [13:23:57] Is there someway to prin the settings that are configured as the server sees them so I can debug to see if the settings I set are being used? [13:27:30] tty1: visit Special:UserGroupRights on your wiki [13:27:45] ok [13:28:36] Ok so for some reason despite my settings in LocalSettings.php it does appear the rights werent set correctly according to that special page [13:28:59] If I changed those settings **after** the wiki was installed other than resetting the server is there anything I needed to do to get it to work? [13:29:40] I have an install where adding certbot certificate has made the visual editor stop working with http-bad-status error. I have updated $wgServer in LocalSettings.php to reflect the https. There seems to be no errors in apache logs and I'm not sure the next step to troubleshoot this [13:30:18] it should work immediately if you change the user groups in LocalSettings. make sure there aren't typos and that you uploaded the file [13:30:28] tty1: ^ [13:32:00] serp: when loading the page for editing in VisualEditor, MediaWiki does an internal HTTP request to itself, for historical reasons. this will be fxed in 1.39, but in the meantime, you need to make sure your config allows that [13:32:00] MatmaRex The file is certainly there and I checked several times for typos... there might be an issue in how it is defined (it uses environment variables to set it)... but the synatx used was used elsewhere in the file successfully and no errors were produced [13:32:35] I have lines in there that look like this: [13:32:36] $wgGroupPermissions['*']['read'] = getenv("MW_PERMISSIONS_READ") ?: false; [13:32:36] $wgGroupPermissions['user']['read'] = getenv("MW_PERMISSIONS_USER_READ") ?: true; [13:39:27] the file should be in /var/www/html/LocalSettings.php right? Is it possible the location is wrong? [13:42:28] tty1: in the same directory as MediaWiki's index.php [13:43:03] MatmaRex yea, thats where it is located... [13:43:08] hmm this is so strange [13:43:21] im not even sure how else to debug it... the ennv variable is there and set properly [13:43:28] and even if it wasnt it would fallback to false anyway [14:14:40] MatmaRex: Thank you. I did have it where it 301'd to https automatically. I removed that and am able to load the site with http now but that doesn't seem to have fixed the error. [14:27:22] Hi, I have a private wiki with Wikibase installed and have 300 entries that I want to link to their respective page so is there a way/script that I can use to link them automatically? linking 300 pages manually is a pain. [14:51:15] so when I make the following change it works: [14:51:15] -$wgGroupPermissions['*']['read'] = getenv('MW_PERMISSIONS_READ') ?: false; [14:51:16] +$wgGroupPermissions['*']['read'] = false; [14:51:33] however when i check the environment variable IS being set to false.. [14:51:47] \so I cant figure out why... anyone have any ideas or better ways I can debug? [14:52:43] tty1: is it false or the string 'false'? [14:53:06] taavi how can I check the difference? [14:53:24] the env variable is set with export FOO=false (no quotes) [14:53:33] env variables are usually strings [14:53:58] taavi how would you fix that [14:54:20] you might want to try something like `( getenv( 'MW_PERMISSIONS_READ' ) ?: 'false' ) === 'true'`, that would evaluate to true if the env variable is 'true' and to false otherwise [14:54:58] taavi good idea, let me try that [14:55:53] taavi should i include those backticks? [14:56:07] no [14:57:52] ok [15:01:11] taavi that gives me this error: "PHP Parse error: syntax error, unexpected '$wgGroupPermissions' (T_VARIABLE) in /var/www/html/LocalSettings.php on line 265" [15:02:12] nvm [15:02:15] i forgot a semicolon [15:04:11] taavi working perfectly now, thanks so much