[00:06:25] Reedy, you still there? [00:06:48] Yeah, but I've gotta go [00:06:58] Another way, would be a Scribunto lua module to query the API [00:07:10] Okay, I'll check that [00:08:20] Do you know the Wikitext code syntax? [00:11:09] Reedy, you still there? [11:17:50] hi [11:19:22] is there one of the developers of the MsCalendar extension here by chance? [11:24:19] unlikely. [11:24:31] but if you have a question, ask your question? :) [11:25:09] elian, ^ [11:26:05] okay. I installed the extension (on mediawiki 1.26.3), it shows up correctly in Special:Version, it displays a calendar but the select boxes in the header (as in screenshots here: https://www.mediawiki.org/wiki/Extension:MsCalendar) are missing [11:26:44] What does your browser's developer console say? [11:27:46] "TypeError: monthField[0] is undefined" (that's in the javascript of the extension) [11:28:09] and then I get lots and lots of warnings like "Use of "$j" is deprecated. Use $ or jQuery instead." [11:28:28] blabla does not work anymore, how do we do now? [11:29:03] "Use of "debug" is deprecated. Use mw.config instead." etc [11:29:56] I don't recognise any of the developers [11:30:29] vev: "anymore"? When did that work and in which browser? It's never been an attribute, as far as I know. [11:30:37] elian: I suspect it just needs dragging upto date [11:30:46] elian: https://www.mediawiki.org/wiki/Extension_talk:MsCalendar ? Or file a bug report [11:30:49] old MW version [11:31:08] Reedy: you mean the mediawiki itself? [11:31:13] No, the extension [11:31:17] ah or maybe it was an extension idk [11:32:30] is there a code to colorize the text background? [11:32:49] vev: red [11:33:03] vev: or you define a class for it [11:33:16] sorry, background:red in your case [11:33:28] ty elian [11:35:02] Reedy: thanks, I'll try this. (hoped to meet someone on IRC because it's usually the fastest way to get things fixed) [11:35:31] I'm not a js person, unfortunately [11:35:37] It should be easy stuff to fix up [11:36:03] Especially the deprecated warnings [11:37:25] elian: Ah [11:37:27] Quick glance... [11:37:31] If you're using 1.26 [11:37:46] It's been updated massively in 1.27 [11:38:19] https://github.com/wikimedia/mediawiki-extensions-MsUpload/blob/REL1_27/MsUpload.js vs https://github.com/wikimedia/mediawiki-extensions-MsUpload/blob/REL1_26/MsUpload.js [11:38:42] The 1.27 version may work on 1.26, but not guaranteed [11:39:51] that's another extension of the same developer. but it could be a 1.26 issue [11:40:26] The 1.26 version has the $j stuff, 1.27 doesn't [14:32:19] hello everibody [14:32:37] i have a question about format pages in wiki [14:33:32] i can include files to formate tables in html in page edit? [14:34:46] import the content to file ; exemple: "include =./tables/table.html" [14:38:34] No [14:44:51] Still unable to load a skin with my short url, the troubleshooting section is not helping me. It's telling me to symlink a file that does not exist into a location i've never used before (I think its for apache users?) [14:46:50] Im new to web stuff, especially site configuration and nginx. Ive tried a few things that seem logical but the css just won't load. [14:48:25] http://paste.bn-mc.net/raw/unurumoxoc [14:48:38] site is https://wiki.bn-mc.net so you can see for yourself [14:49:32] what's it saying to symlink? [14:50:24] https://www.mediawiki.org/wiki/Manual:Short_URL#No_Skins "To fix this, create a symbolic link in /var/www pointing to /var/lib/mediawiki with the value of $wgScriptPath in LocalSettings.php. If, for example, $wgScriptPath is set to "/w" then you need to run the command "sudo ln -s /var/lib/mediawiki /var/www/w"." [14:51:06] usually, it's have www as the root [14:51:10] and the MW files in www/w [14:51:21] /wiki is virtuak [14:51:28] my files are in /srv/http/wiki.bn-mc.net/ [14:51:45] the www doesn't matter too much [14:51:53] yeah i figured not :P [14:51:53] it's what you do in the end folder [14:52:15] the mw files don't want to be in there, they want to be in a w folder at the bottom [14:54:22] so, 'sudo ln -s /srv/http/wiki.bn-mc.net /srv/http/wiki.bn-mc.net/w' ? or should w/ be in /srv/http/? [14:54:41] neither [14:54:59] mkdir /srv/http/wiki.bn-mc.net/w [14:55:07] move everything that isn't the w folder, into it [14:55:51] Alright, did that [14:56:10] Is this on NGINX? [14:56:14] Yes [14:56:47] Seems PHP isn't processing now, it just downloads the folder [14:56:49] It should work with a standard MediaWiki install without a symlink unless you are using an ancient version of MediaWiki. [14:56:50] *file [14:57:56] I'm pretty sure we're on 1.26 or 27, we updated early this year, however im not the one who installed it originally so I'm not entirely sure whats going on :P [14:59:45] Reedy, it downloads the folder? [14:59:50] file [15:00:02] https://wiki.bn-mc.net/w/index.php [15:00:25] oh [15:01:35] I'm just getting 403's and 500's everywhere else [15:01:43] er, 404 [15:01:54] well all 3 [15:02:03] you'll need a few extra rewrites etc [15:02:19] in my dev install on apache [15:02:19] DocumentRoot /var/www/wiki [15:02:19] Alias /w/index.php /var/www/wiki/w/index.php [15:02:19] Alias /wiki /var/www/wiki/w/index.php [15:02:20] Alias /index.php /var/www/wiki/w/index.php [15:03:32] Probably need a try_files on /w/ and a generic location handler for PHP passing. [15:03:42] so, the equivalent on nginx for alias is this? http://stackoverflow.com/questions/21399789/nginx-how-to-create-an-alias-url-route [15:04:34] Pretty much. [15:06:44] er, that would be the same place? cause 'root /srv/http/wiki.bn-mc.net' and then '/w/index.php' [15:07:00] thats the actual file path [15:07:40] And trela, the 'try_files', is that this?: [15:07:40] location / { try_files $uri $uri/ /index.php?$query_string; } [15:07:58] that's already in my nginx conf [15:08:24] Yep. [15:08:52] I have: try_files $uri $uri/ /index.php?$args; [15:09:00] In the location block. [15:10:59] So what's breaking it? [15:11:38] Have you got a location ~ \.php$ { or similar? [15:11:53] http://paste.bn-mc.net/ukawuluwul.nginx [15:13:46] This is mine, but at worst you would need a tweak for the /wiki and /w URLs. http://codepad.org/queIHAPV [15:17:15] https://wiki.bn-mc.net/wiki/Main_Page Progress? maybe? [15:17:57] I can't decide if my browser is playing up or my connection [15:18:03] 404? [15:18:10] I get "File not found" [15:18:20] well, that's what 404 means ;) [15:18:55] Well yeah but its less shout-y than the big bold black text [15:19:02] That means NGINX passed "index.php" to PHP, but PHP could not find it. [15:20:09] oh! i get it [15:20:16] there :) [15:21:05] I assume you have to add /w/ to index.php? [15:21:15] To the first two location blocks, yes [15:21:56] It redirects properly too: https://wiki.bn-mc.net/w/index.php [15:22:13] It just downloads for me :x [15:22:34] Clear your cache, seems fine here. [15:23:02] Ah yes now its okay [15:23:12] cool! thank you, you two :) [15:23:33] You should upload an image next and make sure they work properly too. [15:24:31] Err, the plain url ( wiki.bn-mc.net ) gives a 403, is there a way to fix that? [15:25:08] Put a redirect into the NGINX configuration that sends the bare URL to /wiki. [15:27:10] I believe: location ^/$ { rewrite / /wiki permanent; } [15:27:15] ...Probably. Not tested. :D [15:29:09] Всем привет [15:32:54] Trela http://stackoverflow.com/questions/17738088/rewrite-root-address-to-a-subdirectory-in-nginx looks like someone else had the same problem :) but thank you, ill try images now..once i actually figure out how to do that, since ive never done that before...o.o [15:37:35] Hi guys! Anyone knows how to include multiple external js files to a special page? [15:39:10] I know it's resource loader, but it isn't clear for external js files. I have read about including these in the Mediawiki namespace but I'm not sure what that means [15:50:11] Is it possible to assign a background image to tables? Should work with style="background-image: ....;" right? [15:50:38] keekri1: What do you mean by external js files? [15:55:51] Kayokensa: that seems reasonable, though I've never seen it done. [16:02:53] nope doesnt work :D but this could be due to permissions or even hydradark... well rip template idea [16:03:07] I mean that they are self contained and for a particular function in a special page, already wriiten. [16:04:01] keekri1: You either create multiple RL modules [16:04:08] Or define multiple scripts in a module [16:05:47] Reedy: Like here : https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#Registering [16:12:27] but my input form is in a special page, but this is for a module that is executed in a js function [16:12:57] keekri1: yeah, just make scripts an array, and list them all [16:18:29] Reedy: But here, ext.myExtension will be called in the ext.myExtension.js file which is javascript. But my input is in the special page. [16:18:39] and? [16:20:19] Reedy: So how can I call these js files in the special page instead of the js file? [16:20:30] What do you mean by call them? [16:20:43] You add them to the special page in your php code [16:20:49] And then they can do whatever it is they need to do [16:21:29] Reedy: How do I add them in the php code instead of the js code? [16:23:11] Define a resource loader module [16:23:19] $out->addModule( 'moduleName' ) [16:23:53] Oh, Okay. How do I give the path in that? [16:24:04] what path? [16:24:20] you define the path to the file in the resource loader module definition [16:25:52] Reedy? Oh, So I put one of the ext.myExtension in the main php and I just call them with the add module? Thanks, I'll try that! [16:30:04] * Reedy: (Oops) [16:37:31] When I try to do a "git pull" in a repository that uses SSH (i.e., is used for committing code), I'm getting the following error: "ssh: connect to host gerrit.wikimedia.org port 29418: Network is unreachable". [16:37:56] Is this a temporary problem, or related to the recent Git/Gerrit restructuring? [16:38:52] In other words, do I need to change the remote URL? [16:39:13] Yaron: no, you shouldn't need to change any urls [16:39:37] Alright. [16:39:49] Can you browse the web interface alright? [16:40:16] Yes, on Phabricator/Diffusion. [16:41:00] This isn't just happening for one extension, by the way - it's happened for all the ones I've tried. [16:41:08] Am I the only one getting this error? [16:41:38] Yaron: first things first, check your /etc/hosts and ssh config for any silly rewrites. gerrit.wikimedia.org points to a different server now [16:42:47] (i vaguely recall some dns issues some months ago, which some people worked around with the hosts file) [16:43:09] MatmaRex: ah, maybe that's it. [16:43:39] It's not working :( [16:44:38] MatmaRex: I have 208.80.154.81 for gerrit.wikimedia.org in ~/.ssh/known_hosts . [16:44:44] Does that need to be modified? [16:45:29] hmm. maybe? it's 208.80.154.85 for me now [16:46:34] Alright... [16:48:37] I have some images in a wiki that didn't get EXIF data stored when they were originally uploaded. is there a way to load this data from the files after uploading without uploading the images all over again? [16:48:45] MatmaRex: changing the IP address didn't fix the problem, unfortunately. [16:49:00] Yaron: can you actually ping it? [16:49:17] Yaron: is something between you and gerrit blocking port 29418? [16:49:35] tsundoku: yes, there's a maintennace script somewhere [16:49:40] !maintenance [16:49:40] https://www.mediawiki.org/wiki/Manual:Maintenance_scripts [16:49:59] I've tried refreshImageMetadata and rebuildImages, but neither of them do it [16:50:14] tsundoku: refreshImageMetadata should do it. try with --force [16:50:19] ok [16:51:28] (by default it only refreshes metadata that is invalid, rather than just incomplete) [16:51:36] ah okay. [16:51:57] yeah, it appears that what happened is I migrated my wiki to a new server a while ago and forgot to enable the exif extension [16:52:12] so a large number of images were uploaded without EXIF data being stored in the wiki database [16:52:30] now I've enabled it and I want it to rescan for EXIF data in all of them [16:53:03] MatmaRex: yes, indeed: "ping gerrit.wikimedia.org" works, but "ping gerrit.wikimedia.org:29418" fails. [16:53:18] it looks like --force is doing it. [16:53:31] yay [16:53:35] thanks for the tip [16:55:16] Oh, never mind, ping doesn't handle ports. [17:00:53] Yaron: sorry, i don't know how to help you. as a workaround, try pulling from phab or github, and use https://tools.wmflabs.org/gerrit-patch-uploader/ instead of pushing [17:01:13] Yaron: gerrit now also allows you to create commits from the web interface, by the way. [17:16:34] MatmaRex: okay,, thanks for your help. That upload tool looks rather inconvenient, but it's a good backup tool if I can't get it working otherwise. [17:19:21] something else I might be interested in would be a script that changes img_timestamp to match the one in img_metadata [17:33:54] hello, have a question about include files in formate the wikimedia...formate wich html tags, i whant the front wish less codes [17:34:48] rcunha-BR-RJ-SG: Hi! Could you rephrase your question? What would you like to do / achieve? [17:36:57] tables html [17:39:06] rcunha-BR-RJ-SG: what would you like to do with tables and html? [17:39:28] (maybe this conversation might be easier for someone else who knows Portuguese?) [17:39:45] [17:39:46] [17:39:46] [17:39:46] [17:39:47] [17:39:47] [17:39:48] [17:39:50] [17:39:52] [17:39:54] [17:39:56] [17:39:58] [17:40:00] [17:40:02] [17:40:06] [17:40:08] [17:40:10] [17:40:12] [17:40:14] [17:40:16] [17:40:18] [17:40:20] [17:40:22]
Titulo da Tabela
Usuariosenhaip
adminxxxxxx10.0.0.1
adminxxxxxx10.0.0.1
adminxxxxxx10.0.0.1
[17:40:24] sim [17:40:26] Cara, como eu fa�o para setar vc como resposta [17:40:28] n�o sei usar o irc direito...rs [17:40:33] Please use pastebin [17:40:34] rcunha-BR-RJ-SG: Please do not post lots of suchj lines on IRC. Use pastebin.com or fpaste.org or something. [17:40:37] Rather than pasting into IRC [17:40:55] ok, sory [17:40:57] vlw! [17:41:22] also, sorry but not many people here know Portuguese [17:41:40] http://pastebin.com/LWRQtu4L [17:42:13] Hi! To add html to the php you can use : $output->addHTML('htmlstmt'); [17:43:41] Does anyone know how to add js files to the special page though? [17:43:46] htmlstmt is path? [17:44:20] No, 'html stmt is whatever html code you want displayed' [17:46:11] Where i insert the path this code [17:46:21] $output->addHTML(' Foo...'); For example [17:46:23] for les code in front edit [17:46:25] tks [17:46:34] i try [17:51:44] not work [17:52:14] wiki display the string : $output->addHTML('formate.html') [17:52:26] my code: $output->addHTML('formate.html') [17:54:09] semicolon? [17:55:21] $output = $this->getOutput(); $output->addHTML('formate.html'); [17:56:25] I'm not sure if it will render the contents of the html files though. [17:58:07] User has gone... [18:02:58] http://pastebin.com/QenXHtJw : Some help please? [18:04:31] keekri1: help with what? You posted some code snippet but what is your question? [18:06:07] andre__: Well, The js files in my code are not getting rendered. [19:27:53] is it possible to change the alignment of a gallery in packed mode? [19:28:27] it seems to stubbornly insist on centering the images on the page. [19:42:43] oh I see, it follows text-align. [20:38:42] Hi, I'm trying to upgrade my wikis to MediaWiki 1.27, but CentralAuth (Special:CentralLogin/complete?token=) gives this error: Central user log in No active login attempt is in progress for your session. [20:38:47] what could cause that error? [20:54:54] hi anyone around? [20:56:02] who manage this room [20:56:23] I want to login from my other account but it says I am banned. Can someone please lift it or at least tell me why I am banned? [21:25:52] Is there lua code that can query the api? (via Scribunto) [21:26:46] There's various methods for it on https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual [21:33:15] thanks [21:34:25] It's a long page, where exactly?? [21:36:03] Depends what you're wanting from the api [21:36:20] The Edit count [21:36:24] Of a user [21:41:34] Reedy, are you checking? [21:45:08] Reedy? [21:51:49] How do I use Lua to query the API for a user's edit count? [21:54:58] Anyone here to help? [22:00:24] probably can't [22:00:39] what? [22:01:22] querying the api requires being able to send a http request, which Scribunto has no doubt disabled [22:01:42] augh, Reedy gave me false info [22:01:45] thanks [22:02:10] Unless there's a magic word for it?