[00:07:26] Hi guys. I have an URL which is LOWN, I want to have the main title set as LibreOffice Weekly News. The uppercase letters must be underlined. I've succeeded to underline, but the main title is appearing twice: I've LOWN and LibreOffice Weekly News #2, I just want the second one to appear. [00:07:29] Any idea? [00:08:42] wget: Title, like html element, or title like the <h1> on the page? [00:09:07] <wget> bawolff: The first level = Title = [00:09:19] <wget> bawolff: Not the html element one then. [00:11:02] <bawolff> wget: Have you tried {{DISPLAYTITLE:Libre Office Weekly News #2}} (By default its disabled for being something different than url unless $wgRestrictDisplayTitle = false in LocalSettings.php) [00:11:35] <wget> gonna try [00:12:21] <bawolff> you do have to set the $wgRestrictDisplayTitle = false; setting, or that won't work [00:12:38] <bawolff> Actually, I probably should have said, add <u> tags to the display title for underline where you want them [00:14:07] <wget> bawolff: Ok it works ;-) [00:14:23] <wget> bawolff: Thanks a lot ;-) [00:14:31] <bawolff> no problem [00:27:52] <SudoKing> what is this? http://www.mediawiki.org/wiki/Special:MathShowImage [00:30:46] <Krenair> SudoKing, part of the math extension, presumably? [00:31:06] <SudoKing> ah. it should probably be an unlisted special page then :p [00:31:41] <bawolff> probs [00:31:48] * bawolff encourages SudoKing to file a bug [00:31:49] <Krenair> SudoKing, was already done [00:31:52] <Krenair> SudoKing, https://gerrit.wikimedia.org/r/#/c/142787/ [00:32:10] <SudoKing> nice, just not pushed to production then? [00:32:31] * bawolff disencourages [00:32:53] <Krenair> When developers update software, users don't immediately see the changes. First, they have to update their copy of the software. [00:32:59] <bawolff> SudoKing: Things get pushed to mediawiki.org every thursday [00:33:07] <Krenair> Wikimedia has not done this on mediawiki.org yet. So the old code is run. [00:34:53] <SudoKing> thursday is good [00:35:01] <SudoKing> my work won't let me deploy code on a friday [00:35:10] <Krenair> Wikimedia doesn't either [00:36:15] <Krenair> wikihow.com is running an old version - not used in Wikimedia production since 6th March. When they update, you'll see changes made since then take effect [00:36:39] <SudoKing> no [00:36:41] <bawolff> Well at least they aren't on 1.13 anymore [00:36:41] <SudoKing> we're using 1.23 [00:37:11] <Krenair> 1.23wmf15 [00:37:44] <bawolff> SudoKing: Wikimedia essentially uses alpha versions of mediawiki, so 1.23.0 is somewhat "old" by Wikimedia standards when its released [00:37:49] <Krenair> The wmf branches are pre-release - that's from -before- 1.23 [00:37:52] <SudoKing> ah, well I wasn't asking about the math extension because of wikiHow (or i would just fix it myself) [00:38:30] <wmat> shouldn't all 'normal' productin wikis run 1.23? [00:38:51] <bawolff> But we want to introduce bugs! [00:39:00] <Krenair> Meh. Supposedly. [00:39:10] <Krenair> Wikimedia updates every week though... [00:39:25] <wmat> i run master on one site, and 1.23 on another [00:39:33] <bawolff> wmat: The logic being, since Wikimedia is the primary developer of MediaWiki, we're uniquely suited to figure out wtf happened when bad things happen [00:39:35] <wmat> master runs quite a bit nicer, tbh [00:39:40] <SudoKing> it's easier to update frequently when you don't have a lot of core hacks :P [00:39:55] <Krenair> WMF has some core hacks don't they? I think. [00:40:02] <bawolff> yes they do [00:40:02] <wmat> bawolff: indeed, that's why i only run master on my non-job site [00:40:17] <bawolff> And with wikipedia being our beta testers, the real release is in theory better (but perhaps not in practise) [00:40:32] * wmat thinks this is bad [00:41:10] <SudoKing> nahh [00:41:21] <wmat> my users are always "make this work like wikipedia" [00:42:10] <SudoKing> hm [00:42:13] <wmat> specifically with regard to Lua and Lua based templates/modules [00:42:31] <bawolff> Krenair: Hmm, or maybe they don't. there used to be core hacks in the wmf branches but I don't see any in the most recent one [00:42:51] <Krenair> bawolff, yeah I just went looking and found nothing as well. Reedy? [00:42:59] <wmat> bawolff: oh, that's good! [00:43:17] <wmat> but if you track master, it doesn't matter correct? [00:43:40] <SudoKing> i guess because a lot of things can be done with hooks now [00:43:51] <wmat> and I'm sure any core hacks were very WMF specific [00:43:52] <SudoKing> but not everything [00:45:18] <Krenair> https://git.wikimedia.org/commitdiff/mediawiki%2Fcore.git/d9e388351d1edb888dfbc9728c87acce68c9cc40 [00:46:18] <wmat> seems reasonable [00:46:59] <wmat> sometimes I wonder if WMF and 'public' MW should diverge [00:47:56] <bawolff> That'd be bad, as something like 90% of mediawiki work is funded by WMF [00:48:22] <bawolff> and then no one would love the other mediawiki [00:48:40] <wmat> heh, ok, i've crushed that thought :) [00:48:50] <SudoKing> i presume other wikis might contribute as well [00:48:53] <bawolff> or maybe it would attract its own developer community that isn't burdened by WMF bussiness priorities [00:49:01] <Carmela> What would diverging solve? [00:49:12] <Carmela> We have extensions for hyper-specialized functionality. [00:49:15] <Carmela> It seems to work pretty well. [00:49:34] <wmat> Carmela: merging of stuff into core that WMF doesn't want/need [00:49:40] <bawolff> SudoKing: Maybe, but there isn't an overwhelming amount of contribution as it currently stands [00:49:49] <wmat> but I'm not necessarily advocating for that [00:50:09] <bawolff> Most developers are paid by the foundation, those that aren't are mostly volunteering because they contribute to some wikimedia project [00:50:37] <SudoKing> true -- with wH it's just that there are too many interdependent extensions so though it's open source, it's unrealistic to tout them as individual extensions [00:51:56] <SudoKing> i guess wikia has a lot of extensions as well but i don't know their open source policy [00:51:58] <bawolff> SudoKing: Not familiar with it, but in theory couldn't those be divided up into independent units? Just probably be a whole lot of work that doesn't really benefit wikihow [00:52:12] <bawolff> SudoKing: No disrespect to wikia, but their code is scary [00:52:21] <SudoKing> o.O [00:52:49] <bawolff> although WMF and wikia are working jointly on the visual editor extension [00:53:56] <SamB> bawolff: I'm sure it's much easier to cooperate on a new extension than to disentangle the existing ones [00:54:33] <bawolff> I imagine so [00:55:05] <wmat> someone should fix the extension matrix [00:55:08] <SudoKing> http://www.wikihow.com/Special:ArticleCreator?t=asdf-asdfasdf for example.. specific to how-to format [00:56:56] <wmat> is there a bugzilla ticker for the broken extension matrix? [00:57:26] * wmat ssearches [00:57:33] <bawolff> I don't think so, I think it was just some guy with a bot [00:57:55] <bawolff> wmat: There is a gsoc student working on some sort of extension list thing [00:58:22] <wmat> oh right, i heard about that [00:58:44] <SudoKing> :> [01:00:08] <wmat> https://bugzilla.wikimedia.org/show_bug.cgi?id=46704 [01:00:12] <SudoKing> i'm trying to use HTMLForm to replace some raw html in a new extension i'm creating, but I don't see a way to align the submit button to the left (unless it is and it's my skin that's messing up) [01:30:35] <Prizyetsa> Good evening, Are there any NSWiki mods / people who know their way around the coding? [01:33:25] <Carmela> What's NSWiki? [01:34:27] <Prizyetsa> Hmmm, I'll take that as a no then. Apparently I'm supposed to be able to get help regarding tech issues I've got here. [01:34:47] <Prizyetsa> I'll be on my way again then. Have a lovely evening. :) [07:15:11] <legoktm> SudoKing: you can just use CSS? [11:14:26] <Milos> I know I can include pages like {{Special:AllPages}} but what if I want to do so and have only one column in the output, as I find that more readable? [11:16:10] <Milos> Looks like it can't be done programmatically (at least 4 years ago) http://superuser.com/questions/115326/how-to-change-the-column-count-in-pages-in-category-x-in-mediawiki [11:16:17] <Milos> Seems to be a hardcoded value. [12:09:52] <Antoine8338> Hello [12:09:58] <sumanah> Hi Antoine8338 [12:10:04] <Antoine8338> De yout speck french ? [12:10:08] <Antoine8338> *your [12:10:31] <Antoine8338> ? [12:12:00] <Antoine8338> sumanah: ? [12:12:18] <Antoine8338> Do you speck french ? [12:12:37] <sumanah> Antoine8338: un peu [12:13:33] <sumanah> Antoine8338: qu'est-ce que vous voudriez? [12:14:10] <Antoine8338> Savoir la difference entre la 1.19 et la 1.23 [12:14:42] <sumanah> ah - https://www.mediawiki.org/wiki/Release_notes [12:15:21] <sumanah> guillom: ^ (help? my French is super rusty) [12:15:41] <guillom> Hi [12:15:45] <guillom> Bonjour [12:15:55] <sumanah> Antoine8338: https://www.mediawiki.org/wiki/MediaWiki_1.20 , https://www.mediawiki.org/wiki/MediaWiki_1.21 , https://www.mediawiki.org/wiki/MediaWiki_1.22 , et https://www.mediawiki.org/wiki/MediaWiki_1.23 . Vous avez vu? [12:16:57] <Milos> mdr [12:17:13] <Antoine8338> sumanah: Traduit STP [12:17:34] <guillom> Antoine8338: 1.19 est une vieille version, elle est toujours supportée car elle est LTS, mais is est conseillé de mettre à jour [12:17:40] <guillom> il* [12:17:53] <Antoine8338> LTS ? [12:17:59] <Milos> long-term support [12:18:00] <guillom> long-term support [12:18:06] <Antoine8338> In french ? [12:18:13] <Milos> support long-terme? [12:18:16] <Antoine8338> Ok [12:18:34] <guillom> Elle aura des mises à jour mineures jusqu'en 2015 [12:18:44] <Antoine8338> ok [12:19:40] <Antoine8338> Et pourquoi on as arreter Vector ? [12:19:50] <Milos> on a arreter??? [12:19:51] <guillom> La dernière version LTS vient d'être publiée (1.23) ; elle aura des mises à jour mineures jusqu'en 2017 [12:20:06] <guillom> Antoine8338: Vector est toujours l'apparence par défaut [12:20:12] <Milos> wahoo [12:20:18] <Antoine8338> Ou Monobook [12:20:27] <guillom> Monobook est toujours disponible [12:20:52] <guillom> Soit en options personnelles, soit en options générales pour le site [12:21:07] <Antoine8338> Mais pourquoi c'est plus par default ? [12:21:37] <guillom> Parce que Vector est plus jolie ; mais tu peux choisir l'apparence par défaut de ton site. [12:21:44] <Antoine8338> Plus joli ? [12:22:13] <guillom> Je ne vais pas argumenter sur l'apparence, étant donné que c'est ton choix au moment de l'installation. [12:22:42] <Antoine8338> Mais j'ai un wiki sous média wiki [12:22:55] <Antoine8338> Mais Monobook n'est pas dispo [12:23:09] <Antoine8338> :( [12:23:10] <guillom> Probablement que si. [12:23:27] <Antoine8338> Non il n'y ai pas sur préference [12:23:51] <guillom> Est-ce ton site ? [12:23:54] <Antoine8338> Oui [12:23:56] <Antoine8338> Mon wiki [12:24:09] <Antoine8338> Et y'a 40 articles !!! [12:24:25] <Antoine8338> Mon Wiki est mieux que Wikipédia [12:24:29] <guillom> … [12:24:37] <Milos> bon effort [12:26:57] <guillom> Monobook est inclus par défaut avec MediaWiki [12:27:06] <guillom> Ton site est public ? [12:27:10] <Antoine8338> Donc pourquoi j'ai pas monoobool [12:27:15] <Antoine8338> *monobook [12:27:30] <Antoine8338> Oui il est public mais tellement payant [12:28:02] <guillom> Quelle est l'adresse ? [12:28:13] <Antoine8338> fr.public.wikia.com [12:28:30] <Antoine8338> C'est mon petit chouchou :) [12:28:31] <Milos> wikia.com? c'est la tienne? [12:28:43] <Antoine8338> Milos: Quoi ? [12:28:55] <Antoine8338> Wikia.com héberge mon wiki [12:29:08] <guillom> Antoine8338: Alros tu dois demander à Wikia [12:29:18] <Milos> excuse le francais mais peut-etre parce-que ce n'est pas ton serveur vous ne l'avez pas (le monobook) [12:29:29] <Milos> wikia n'ya pas monobook peut-etre? [12:29:31] <Antoine8338> Ah mince ca [12:29:44] <Antoine8338> Ils sont bien mes articles non ? [12:29:45] <Milos> c'est simple :) [12:29:46] <guillom> Si tu n'héberges pas le sute toi-même, tu dois demander de l'aide à Wikia directement. [12:29:53] <guillom> site* [12:30:04] <Milos> tes articles, pas ton installation [12:30:59] <Antoine8338> Oui [12:31:06] <Antoine8338> Mais il sont bien mes articles ? [12:31:12] <Milos> oui...? [12:31:18] <guillom> Là n'est pas la question. [12:31:30] <Milos> c'est completement autre chose [12:31:49] <Antoine8338> Mais il sont bien [12:31:58] <Antoine8338> Vous pouvez contribuer dessus [12:32:14] <Milos> vous etes troll? [12:32:27] <Antoine8338> C'est quoi trol [12:32:31] <Antoine8338> Ca se mange ? [12:32:32] <guillom> Ce canal est dédié à l'aide technique concernant mediawiki. As-tu besoin d'aide technique ? [12:32:41] <Antoine8338> Oui [12:32:56] <Milos> je ne crois pas [12:32:58] <Antoine8338> J'ai pas assez de contributeurs [12:33:06] <Milos> definite troll ;p [12:33:10] <Antoine8338> Je vous invite a rejoindre mon wiki [12:33:10] <guillom> Indeed :P [12:33:11] <Milos> ignored! [12:33:32] <guillom> Antoine8338: Merci d'arrêter maintenant ou de quitter ce canal. [12:33:40] <Antoine8338> Arreter quoi ? [12:33:48] <Antoine8338> Vous m'aider ou non ? [12:34:44] <Antoine8338> guillom: Oui mais mon wiki marche avec média wiki [12:35:29] <guillom> … [12:35:33] <Milos> oh la la [12:35:47] <Milos> !ops [12:35:59] <Antoine8338> C'est mieux sans tout ce blabla [12:36:14] <Antoine8338> <3 [12:37:12] <sumanah> I went away for a few minutes and come back to ... nonsense I guess? This is strange. [12:37:22] <Milos> just a troll defaming the channel [12:37:33] <Antoine8338> Milos: Tu dit quoi ? [12:37:35] <Milos> at least I got to practice some french [12:37:50] <Antoine8338> Je remet comme avant [12:38:07] <guillom> sumanah: Well, at least this troll speaks French; That's somewhat novel. [12:38:12] <Milos> it is [12:38:29] <Milos> it sounded like a total noob at first but that was just part of the plan [12:38:33] <sumanah> ahhhh [12:39:11] <Antoine8338> J'ai besoin d'aide [12:39:27] <sumanah> I don't think you do, Antoine8338 [12:39:41] <sumanah> or at least, not help we are likely to provide [12:39:42] <Antoine8338> Parlez francais [12:39:45] <sumanah> No. [12:39:52] <Antoine8338> Je veut installer Média Wiki sur mon PC [12:40:01] <Antoine8338> Comment on fait [12:40:10] <Milos> read the docs - mediawiki.org [12:40:14] <Milos> pretty simple! [12:40:23] <Antoine8338> It's trop compliquer [12:40:37] <Antoine8338> Media wiki existe en francais ? [12:40:49] * guillom goes back to actual work. [12:40:50] <Milos> just a sec [12:41:09] <Milos> http://fr.wikipedia.org/wiki/Troll_(Internet) [12:41:14] <Milos> en francais [12:41:36] <Milos> me too, cya [12:42:26] <Antoine8338> Milos: Tu t'es tromper de page [14:20:24] <CosmicLogick> does anyone use parsoid here? [14:20:24] <CosmicLogick> i keep getting this response when trying to edit a page [14:20:24] <CosmicLogick> The requested URL /wiki/api.php was not found on this server. [14:20:24] <CosmicLogick> however, in the localsettings, i had put in /bwiki/api.php [14:20:25] <CosmicLogick> i have no idea why it's looking in /wiki/ [14:22:21] <sumanah> Hi CosmicLogick - what versions of MW & the Parsoid extension are you using btw? just to check . And is there anywhere else that you specify /wiki/ ? and is this a new problem? [14:22:34] <sumanah> CosmicLogick: like, was it working before and it broke, or are you trying to use Parsoid for the 1st time [14:22:55] <CosmicLogick> it did work [14:23:15] <CosmicLogick> i did change some apache directives, but on the external ip [14:23:19] <CosmicLogick> not localhost [14:23:34] <CosmicLogick> so i don't think it's related [14:23:46] <CosmicLogick> versions... [14:23:48] <CosmicLogick> hold on [14:25:13] <CosmicLogick> MW 1.22.5 [14:26:41] <CosmicLogick> regarding parsoid, i just cloned the git repo [14:26:53] <CosmicLogick> hmm [14:28:49] <sumanah> CosmicLogick: hmm, so I'm wondering - if it used to work and it doesn't now, what changed in the interim? just a git pull on the Parsoid repo? [14:30:28] <CosmicLogick> yes, and some apache directives [14:30:32] <CosmicLogick> another symptom [14:30:49] <CosmicLogick> when trying to edit via visualeditor [14:30:57] <sumanah> CosmicLogick: there's a #mediawiki-parsoid channel and they may have more specific thoughts [14:30:58] <CosmicLogick> i get that response in the log [14:31:18] <CosmicLogick> when curl'ing the url, i get something else [14:31:20] <CosmicLogick> ah [14:31:26] <CosmicLogick> didn't realise there was a room [14:31:28] <CosmicLogick> thanks [14:31:46] <sumanah> it's okay - I think that team oughta publicize it more, not your fault for not knowing [14:37:26] <shayan-as-of-tod> in API:Backlinks how can I get the "number" of backlinks? (as oppose to the list of them) [14:39:13] <MatmaRex> shayan-as-of-tod: you can't [14:40:40] <shayan-as-of-tod> MatmaRex is there any other API that provide me with the number of redirects/links? [14:41:24] <MatmaRex> no [14:41:42] <MatmaRex> getting the number of items from a database is approximately just as expensive as getting a list of these items [14:41:59] <MatmaRex> so mediawiki only implements listing them all [14:42:40] <shayan-as-of-tod> there "was" this tool in the toolserver which could do that (see http://toolserver.org/~dispenser/cgi-bin/backlinkscount.py?title=CSI:_Miami as an example) but unfortunately toolserver is going down today [16:27:54] <Delfino> Hi, would there happen to be a guide for understanding the differences between "normal" database querying and how you do so with Mediawiki? It seems to utilize some function that allows you to accomplish queries without the traditional "SELECT * WHERE * FROM" type deal. I'd like to "SELECT user_name FROM user WHERE user_id = $user_id" [16:43:43] <Reedy> Delfino: https://www.mediawiki.org/wiki/Manual:Database_access [16:46:28] <Delfino> Reedy: Just what I was looking for! Thank-you very much. [16:59:26] <fhocutt> morning sumanah [16:59:36] <sumanah> hi fhocutt! [16:59:40] <Zuko> Hi [16:59:49] <Zuko> Can i contact a coder ? [17:00:29] <fhocutt> sumanah: almost ready for vidchat, give me a few [17:00:34] <sumanah> Cool np fhocutt [17:00:46] <Zuko> can i have help ? [17:01:32] <sumanah> Zuko: if you talk about your problem here maybe we can help you [17:01:37] <sumanah> we can direct you to the right place [17:01:49] <Zuko> Well, it would be about assistance with a code [17:02:17] <Zuko> that i am currently doing [17:02:26] <Zuko> but i have a little problem with [17:02:58] <sumanah> Go ahead, tell us details [17:03:10] <Zuko> well here:http://dev.wikia.com/wiki/WHAM/code.js [17:03:12] <Zuko> there is a code [17:03:15] <Zuko> WHAM [17:03:50] <Zuko> WHAM! is a script that adds a "quick tools" popup to a user's contribution page, allowing for various functions. [17:04:02] <Zuko> So i am trying to add an new option [17:04:03] <Zuko> to it [17:04:12] <Zuko> wich would edit user right of someone [17:04:39] <Zuko> and would do that i could exemple:Promote someone to user->admin [17:05:00] <Zuko> but i have few problems and i was thinking that comming to MW was the best idea [17:05:28] <sumanah> What problems are you having? [17:05:40] <Zuko> Well [17:05:44] <sumanah> If you give us specific information Zuko we are more likely to be able to help you - for example, telling us the error [17:05:54] <fhocutt> sumanah, I'm in the room [17:05:59] <Zuko> yes but its hard for me because i dont speak english as my first language [17:06:03] <Zuko> i speak french normally [17:06:12] <Zuko> so it takes time to writte it to explain it :/ [17:06:13] <Zuko> sorry [17:06:28] <Zuko> so i did that: [17:06:37] <Zuko> I could do the first step [17:06:45] <Zuko> wich was adding the button for fix right [17:07:16] <Zuko> but when i am trying to test my add, by clicking in the buttom, it show me as if i wanted to block someone [17:07:55] <Zuko> i added this at first: }, [17:07:55] <Zuko> "Fix Rights": function() { [17:07:55] <Zuko> $( this ).dialog( "close" ).click(wham()) [17:07:59] <Zuko> so that it add the button [17:08:06] <Zuko> bu tthen [17:08:10] <Zuko> i added that: [17:08:36] <Zuko> function userrright() { [17:08:36] <Zuko> $('mw-userrights-group').each(function() { [17:08:36] <Zuko> var href = $(this).attr('href'); [17:08:36] <Zuko> $.get(href); [17:08:36] <Zuko> $(this).text('done!').css('color','grey').removeAttr('href'); [17:08:36] <Zuko> }); [17:08:37] <Zuko> } [17:09:05] <Zuko> i wanted to know if there are problems with this code making that the right change can't be done [17:11:06] <Zuko> What do you think sumanah [17:15:20] <Zuko> hum [17:15:28] <sumanah> Zuko: sorry, am in a meeting [17:15:34] <sumanah> other people here may be able to help [17:15:36] <sumanah> MatmaRex: ^ ? [17:15:47] <Zuko> who ? [17:22:59] <sumanah> Mithrandir: remind me, do you do Perl? [17:23:14] <sumanah> anomie: and remind me, is Perl one of the languages you write? [17:23:28] <anomie> sumanah: Yes, it is [17:23:53] <Mithrandir> sumanah: yes, but I'm seriously jetlagged right now, so if you need something today, I'm not your man. [17:24:43] <sumanah> thanks anomie & Mithrandir - fhocutt will reach out to you to schedule some short pairing sessions late in the week [17:34:55] <Delfino> I was just here a few moments ago - And now I have another question: How can I get access to the output of an SQL query as a variable? I've tried various methods, but it always prints out as "array" [17:35:18] <Reedy> What do you mean by the output? [17:35:19] <Reedy> The result? [17:36:25] <Delfino> Yes, I meant the reult. [17:36:28] <Delfino> *result [17:36:54] <Reedy> if it's an array, you should probably try var_dump/print_r [17:37:07] <Reedy> But most of them need iterating over to actually pull the results [17:37:57] <Delfino> It's not an array - That's what prints due to the apparent invalid methods I'm utilizing. I simply need the result to be a single array. [17:38:18] <Delfino> *I simply need the result to be a single variable. [17:38:35] <Reedy> From "SELECT user_name FROM user WHERE user_id = $user_id" ? [17:38:50] <Reedy> Are you using select(), selectRow(), selectField()? [17:38:59] <Delfino> select(); [17:39:24] <Reedy> There's only going to be one row, so you probably don't want to use select [17:39:54] <Delfino> So selectField();? [17:39:57] <Reedy> If you use selectField, it should just give you a string [17:39:58] <Reedy> Yeah [17:40:19] <Reedy> As an aside, you maybe shouldn't be doing the queries yourself [17:40:27] <Reedy> User::newFromId( $user_id )->getName(); [17:40:28] <Reedy> IIRC [17:40:35] <Reedy> Includes some caching [17:43:21] <Delfino> Ah, didn't know you could do it that way. [17:43:40] <Reedy> !class User [17:43:40] <wm-bot> See https://doc.wikimedia.org/mediawiki-core/master/php/html/classUser.html [17:44:59] <Delfino> Well thank-you for letting me know about that, I guess queries are reserved for non-out of package functions such as extensions? [17:45:27] <Reedy> Well, obviously we use them in core [17:46:13] <Reedy> You can still do query... Theres's just cases where you probably shouldn't be doing it [17:46:39] <Reedy> If you were wanting results from numerous tables etc, you probably will want to do the SQL yourself [18:34:20] <Delfino> Okay, getting further along - When running a query that selects multiple instances (Say, in table "pages", you want to select "title", "content" and "views" where the page id = 7), you want to dump all of the results to variables. How is that accomplished in this case? Same as normal or is there some shortcut? [18:35:17] <Reedy> You can use selectRow() [18:35:27] <Reedy> then $row->title etc [19:12:36] <Delfino> I've been wrestling with this for quite some time now - https://dpaste.de/JYmg#L5,10 - What on earth am I doing wrong? What I'm trying to accomplish was pretty straightforward on it's own, but once I tried to work it into mediawiki I'm getting errors. [19:13:14] <MatmaRex> Delfino: selectRow() only selects one row [19:13:27] <MatmaRex> you probably want select() [19:13:58] <^d> Or, if you really want selectRow() you won't iterate over it. [19:14:06] <^d> It returns an associative array I thought. [19:14:28] <^d> Oh, no, just the result object. [19:42:59] <Delfino> MatmaRex: Your suggestion was successful, but now there's I seem to be running into a third issue, now I can't seem to use an existing PHP variable for comparison in my "WHERE" statement - https://dpaste.de/8kSi [19:43:38] <Delfino> That seems to work in normal Querying with PHP, but, yet again, it does not work in this case. How can I use a variable? [19:45:16] <MatmaRex> Delfino: can you pastebin a few more lines of context? :) [19:45:30] <MatmaRex> Delfino: looking at code in MediaWiki itself can help you get an idea how to use this interface [19:45:46] <RoanKattouw> Depending on context it sounds like you want 'post_id' => $post_id [19:45:52] <RoanKattouw> Which does automatic escaping too [19:48:08] <Delfino> Here it is: https://dpaste.de/iOiz#L I'm not writing, but reading. [19:48:42] <Delfino> ...Unless => isn't a read-only function? [19:50:14] <Delfino> post_id gets it's value from the URL (?id=ect) [19:51:07] <Delfino> And it keeps treating $post_id as a literal string - Not a variable like it needs to be. [19:53:01] <Delfino> MatmaRex: I've done some poking around, though I can't seem to find anywhere where it uses a variable in a 'WHERE' argument. [19:55:52] <MatmaRex> Delfino: this is a reasonably straightforward example: [19:56:28] <MatmaRex> https://github.com/wikimedia/mediawiki-core/blob/master/includes/CategoryViewer.php#L307 [20:14:16] <Delfino> MatmaRex: Sorry for the disconnect, power loss. That, unfortuntale,y does not solve my issue. My basic need: "WHERE post_id = (The data in the $post_id variable)". No matter what I try that won't work. [20:14:39] <Delfino> *unfortunately [20:15:25] <MatmaRex> https://dpaste.de/ESMD ? [20:16:54] <Delfino> MatmaRex: That produces nothing, it's reading the variable as a literal string :/ [20:17:26] <MatmaRex> that is literally not possible [20:19:08] <Delfino> Then I'm wondering - Why am I getting no output? If I replace $post_id with 1, then it loads the data where post_id = 1. When I try to echo $post_id on it's own, it print the ID just find. [20:20:16] <Delfino> All I can guess is that something else is interfering with the data assigned to $post_id..? [20:21:44] <Delfino> I'll run it by a colleague and see if they can spot the source of the issue, I won't waste your time any further. It's likely an issue on my side that I just can't see. Thank-you. [20:38:37] <Howie> I am trying to identify the PHP code which processes Math Wikitext. in particular, I would like to find the string which contains the 'LaTeX' source for the math. I'm happy to take the first math I encouter on a given page. Can someone point me to the code which does this? [20:44:22] <MatmaRex> Howie: the Math extension [20:44:23] <MatmaRex> !e Math [20:44:24] <wm-bot> https://www.mediawiki.org/wiki/Extension:Math [20:48:37] <Howie> Where is the Math Extension called from? [20:48:57] <Howie> i.e., how does MediaWiki know that it has encountered math? [20:49:20] <Howie> and that if it enounters math, then it should call the math extension. [20:50:18] <MatmaRex> Howie: it's handled somewhere deep in the internals of the Parser. you really don't want to look there, trust me [20:50:27] <Howie> haha. [20:50:33] <Howie> I want to get a hold of the TeX string. [20:51:40] <Howie> ...before it is processed [20:52:16] <MatmaRex> Howie: there probably isn't a good way to do that, unfortunately. what are you trying to do? there might be a better approach [20:52:59] <Howie> I want to pass the initial TeX string to MathJax and then output it to the screen. [20:53:05] <Howie> (using MathJax) [20:53:15] <Howie> in a window [20:53:18] <MatmaRex> the Math extension can already do that? [20:53:27] <Howie> .... [20:53:31] <MatmaRex> oh, not in a separate window i guess. it just embeds mathjax in the page [20:53:33] <Howie> it's a processed version of the TeX string [20:53:50] <MatmaRex> you can choose PNG images or MathJax in your user preferences [20:53:52] <bawolff> It sounds like you want to just write your own version of the math extension [20:54:10] <Howie> I am working with Moritz right now, but he's busy with other stuff (deadlines) [20:54:20] <Howie> he's ok with us rewriting the Math extension [20:54:27] <Howie> he'll work with us to do this. [20:54:38] <MatmaRex> (it requires $wgUseMathJax = true, though, apparently) [20:54:48] <MatmaRex> Howie: the handler for <math> tag is here: https://github.com/wikimedia/mediawiki-extensions-Math/blob/master/Math.hooks.php#L94 [20:55:18] <Howie> Is the TeX string in there? [20:55:30] <MatmaRex> in $content, yes [20:56:00] <MatmaRex> i have no idea why you're reinventing the wheel, but okay. :) [20:56:16] <Howie> The math is getting processed [20:56:23] <Howie> we need the original math [20:59:14] <bawolff> Howie: Have you read the docs for how to create a tag hook [21:00:03] <Howie> no [21:01:49] <bawolff> https://www.mediawiki.org/wiki/Manual:Tag_extensions [21:02:04] <bawolff> So you could just create your own math extension [21:04:05] <bawolff> omg, there's just so many things wrong on that page... This is what I get for reading our docs [21:06:17] <Vulpix> bug 1 strikes again :) [21:10:30] <bawolff> Everytime I read a tutorial on mediawiki, I cry a little bit inside [21:10:38] <Howie> thanks all. $content seems to be exactly what we were looking for. [21:11:00] <bawolff> And now I'm reading through parser.php to try and figure out what the correct answer is for cache varrying, as it seems to be documented nowhere [21:11:03] <Howie> now we will try and pass it all the way to our MathJax calling routine. thanks again! [21:15:12] <legoktm> bawolff: isn't cache varying done via ParserOutput? [21:15:48] <legoktm> with recordOption I think? [21:17:10] <bawolff> legoktm: Yes. Sort of [21:17:26] <bawolff> things get complicated if you introduce your own settings [21:17:52] <bawolff> And the docs were suggesting hooking into a hook, which would sort of work, but only if you did it when not during a parse [21:19:17] <bawolff> legoktm: The tutorial was suggesting modifying ParserOptions during the parse, which is kind of a bad idea, since then it won't happen during parser cache retrivial [21:19:30] <legoktm> hm yeah. [21:51:15] <Lee__> hi anyone here who can help with php mail injection [21:51:34] <Lee__> protecting against it I mean [22:39:08] <elricsfate> Greetings everyone [22:39:13] <elricsfate> I seem to be having some issues installing [22:39:36] <elricsfate> "Notice: Uncommitted DB writes (transaction from DatabaseBase::query (LinkBatch::doQuery (for Skin::preloadExistence))). in PATHTOINSTALL/includes/db/Database.php on line 4147 [22:48:47] <bawolff> elricsfate: You can ignore that error. What version are you installing [22:49:13] <bawolff> Do you have other errors (or does installing otherwise not work)? [22:49:30] <elricsfate> bawolff, latest, I discovered a fix. [22:49:41] <elricsfate> $wgJobRunRate = 0.01; [22:49:41] <elricsfate> bawolff [22:50:22] <bawolff> elricsfate: You were getting this error during the installation, or after installing? [22:50:34] <elricsfate> after installing, right after [22:51:15] <bawolff> I should note, that setting $wgJobRunRate = 0.01; will more or less disable the job queue, that will make tempaltes not update correctly