[00:01:11] ads? [00:01:46] Automatik: third-party wikis are more than welcome to show ads, you know [00:01:50] (see also: wikia ;) ) [00:02:06] This extension is a hook that is making the determination of whether ads should show ... I just need the magic to know that I'm in "edit mode" [00:04:52] We don't want to show ads while someone is editing the wiki and adding value. [00:09:21] as opposed to reading the wiki and adding revenue.. [00:09:36] Exactly. [00:15:35] global $wgUser; [00:15:35] require_once('StubObject.php'); [00:15:35] if (StubObject::isRealObject($wgUser) && $wgUser->isLoggedIn()) { [00:15:36] return false; // Do not display ads [00:15:36] } else if ( ?? Something about Are we in Edit Mode ?? ) [00:15:36] return false; // Do not Display Ads [00:15:38] else [00:15:40] return true; [00:15:54] might be better to use dpaste.de for code. [00:16:14] Yeah please don't flood [00:17:03] https://dpaste.de/phbT [00:19:32] there is a public variable $action set to "submit" in EditPage.php: https://github.com/wikimedia/mediawiki/blob/master/includes/EditPage.php, maybe there is a relation [00:20:39] hiding with css might be easier [00:21:27] I'm calling someone else code ... I'm just the messenger. [00:22:07] .action-edit .youradclass { display:none } [00:22:11] Hiding with css might get you yelled at by your add service. [00:22:39] Hi guys! [00:23:12] Actually, I'm being "called" by someone else's code ... I just want to return the correct state ... go or no go ... [00:23:27] I tried this page by Daniel Friesen(?) http://shorturls.redwerks.org/ to generate me a config for short URLs. [00:23:43] This is the Apache conf, which it gave me: https://dpaste.de/PqTi [00:23:57] What I am confused about is the order of these rules: [00:24:03] Isn't it wrong? [00:24:32] Isn't it so that if the first rule matched, then the following rules will no longer be applied? [00:24:58] But as I understand these rules, they in fact _should_ be applied, e.g. for thumbs. [00:25:24] Is this code wrong or do I not understand it? [00:32:40] betacommand can the folder named core that is downloaded from git repo be changed to a different folder named? [00:33:04] yeah [00:34:40] anyone here do low-level coding on mediawiki ? [00:35:52] will this change effect future fetches,pulls or merges when we download new commits from the mediawiki core master branch? [00:36:01] no [00:36:31] thank you. [00:36:36] just wondering how to determine if we are in edit more ... code here ... https://dpaste.de/phbT [00:36:46] I'm in an extension ... [00:38:20] ... edit mode ... [02:43:23] I still can't get over the fact that I'm so damn proud of my union local for supporting BDS [02:48:24] how do i make my mediawiki installation to run on hhvm ? [03:43:11] $wgDiff3 = "C:/Program Files/GnuWin32/bin/diff3.exe"; [03:43:42] Gnu Diff3.exe could not be found. [03:44:15] how do we get mediawiki installer to find diff3.exe? [03:44:44] diff3.exe is installed... [03:48:56] I have a (couple) custom WikiLove scripts, I'm wondering if I can have edits made with those scripts add a custom "tag". [03:50:33] T13|mobile: not unless you get an abusefilter set up to catch them [03:55:00] I didn't know if maybe there was a way to tag them through the api. [03:55:52] i really need to get this answer [03:56:42] how do we get the mw-config to find the diff3.exe [05:30:52] Why are changes sent to recent changes twice, first when the edit is submitted, and then re-added once the edit goes through or removed if the edit timed out? [05:31:35] I only noticed because I have an IRC recent changes that sometimes see edits that then timeout and don't get saved, or it sees edits twice [05:41:59] Is there a way to have a sort of iframe in pages showing the contents of other wiki pages? [05:42:46] yes. [05:43:10] How would you do that? [05:43:19] You can transclude a page directly in another page [05:43:19] is there a way to get the mw-config to find our ddiff3.exe [05:43:26] Similar to how templates work [05:43:45] Or if you want it dynamically loaded, you can do something with a bit of javascript [05:44:41] do you need his iframe on one page or all pages? [05:45:05] You're talking about this? https://en.wikipedia.org/wiki/Wikipedia:Transclusion [05:45:34] we have an fresh extension only one php file [05:46:35] jehovahsays: I have a main page I want to list the contents of several smaller pages on, one after another in a list. [05:47:08] Transclusion is likely the easiest option [05:47:34] in iframes no scroll and with scroll? [05:48:13] just one page right your homepage. [05:49:32] you could use a mediawiki extension widgets that has iframe widget. [05:50:29] our extension is for all of the pages [05:50:50] Would it be possible to transclude pages inside of an #ask query? [05:51:05] ie: A list of transcluded page contents. [06:20:01] ehhh .... its me again ;) .... now i have installed apache php and mysql .... in the virtual host i have phpadmin and mediawiki ... both installed now .... the first time where all is working, no APC xCache probems no INTL problems and no strange mix of dll's ...... so now .... can i copy now this virtualhost folder and a mysql dump to some place and when i destroy my wiki i can always get back to this fresh install point?? [06:20:20] i did now even login to the fresh wiki :)) [06:21:08] i am afraight to destroy it again if i log in :( [06:23:07] it took a week ... and now after two days it seems as i could go to sleep .... may i should try this backup and tomorrow i would like to install a cool calendar :) [06:25:22] the only thing ... but less important that is missing is the ssl stuff in the apache ... but if i got it right its not realy practicable on a local windows host [07:02:47] ok i backed up my fresh install of wiki and sql ... now i hope if i destroy my wiki with the calendar i can get back to this fresh install state :D [08:38:23] Hello, any ideas on how to convert a string into a hex color in mediawiki? [09:01:39] or, another question how to get a hash of a string in mediawiki? [09:13:04] gleki: in an extension? or do you mean in wikitext? [09:13:19] in a wikitext [09:13:50] I just want to convert an arbitary letter string into a number from 0 to 360. [09:14:17] How to convert a number to a number from 0 to 360 is easy using ParserFunctions [09:14:45] but converting from a string to number is aproblem for me [09:14:59] you can probably write a lua module for this [09:15:00] !lua [09:15:00] Scribunto is a new extension that makes it easier to write repeatable code in Lua, rather than in complex wikitext templates. See http://www.mediawiki.org/wiki/Lua_scripting and http://www.mediawiki.org/wiki/Extension:Scribunto for more information. [09:16:41] For now I just thought of replacing every letter to a number using {{#invoke:String|replace}} :) [10:33:15] hello,can anyone tell me if the ldap extension can configured to check against userPrincipalName in AD ? didn`t find any documentation about this [12:03:09] Hey guys I would like to contribute to the open source development of mediawiki. Can anyone give me a link with instructions to build the source code? Thanks :) [12:04:14] anirudhgp: take a look at https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker [12:04:33] zuzak: Thankss [12:07:33] no one using ldap extension to check for userprincipalname ? [12:16:03] Hi MWikians, just read about Wikipedia Education Program, it's fascinating. [12:16:17] I just tried to install the extension Education Program [12:17:09] but I am facing some errors, it says Education Program depends upon CLDR, I have installed that too [12:17:34] but still unable to access the extension. [12:20:09] I am getting this error SELECT course_id FROM `wiki_ep_courses` INNER JOIN `wiki_ep_users_per_course` ON ((upc_course_id=course_id)) WHERE upc_role = '3' AND upc_user_id = '0' LIMIT 1 [12:20:37] Error: 1146 Table 'mikiwikidb.wiki_ep_courses' doesn't exist (localhost) [12:21:17] I know this is requires some updation in the database for the extension to run, but how? [12:25:51] Ah! that was a silly mistake I just figured out, I did not run php maintenance/update.php :P [13:46:01] is it possible to modify the MediaWiki Search box (i.e. add JS to it) without messing with the core code? [14:20:53] wmat, may not be the best way, but add to MediaWiki:Common.js? [14:21:22] probably is best way. [14:21:27] unicodesnowman: I'll have a look [14:35:13] Anyone here have experience developing extensions, specifically hooks? Newbie here. The documentation indicates the existence of a global method wfRunHooks() that doesn't seem to exist in Hooks.php. Getting around it using Hooks::run, but am I missing something? [14:48:36] batard: I think Hooks::run may be the "new" way to do things, let me just make sure :) [14:49:31] batard: wfRunHooks is in GlobalFunctions.php, this is what it does: https://doc.wikimedia.org/mediawiki-core/master/php/html/GlobalFunctions_8php_source.html#l03957 [14:49:42] So basically you're just skipping a function call :) [14:50:09] Oh thanks for that. [14:50:21] No problem! [14:52:27] batard: Feel free to stick around, and ask more questions if you need to :) [14:52:39] Will do, thanks again. [16:39:25] Newbie question related to extension development: I want to do echo json_encode(value); so that I can pick up the value in javascript, but I'm getting a bunch of MIME-type errors. Do I need to make a header declaration somewhere for this to work, or should I do something else? I get the same types of errors trying to just echo a JS script. [16:41:50] batard: why not implement a new API module instead? It will handle the encoding for you, you'll only need to create an array with the data instead [16:42:25] Ok will look into that route, thanks for the suggestion [17:19:00] Hey guys im trying to run ssh so that i can download the source code of mediawiki. I'm getting this error: https://dpaste.de/FtkS . Any help?? [17:20:04] Ok nevermind. I solved the problem. Wrong port number. [17:20:21] I was about to say that :) [17:22:35] @Vulpix: Haha :) I cloned core.git and now i have a folder called core in my PC. Can i start fixing bugs or do i have to clone more stuff? [17:25:46] anirudhgp: https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries [17:33:47] I'm using mw.notify to give notices on a user script of mine, and I'm wondering if there is a way to append to or pull the information back to modify it? Maybe using the tag? [17:35:53] Also, if I want to use both title and tag, are they grouped together in the curly brackets like an object or are they chained? [17:38:41] Hi i have a question, I use {{#if:{{{"expression"|}}}| * }} to hide some information if Expression is not given in a Template but how I can add a Table for *. I tried Text and this works but if I add the Table I one get the first line "{| summary=" .... anyone with a clue? Thanks [17:42:35] @link [[en:w:Template:(!]] [17:42:35] http://enwp.org/w:Template:(! [17:42:38] Nokius: if you want to use a table inside a parser function, you should replace all pipe characters from the table syntax with the {{!}} template [17:42:51] Follow my link. [17:42:55] @link [17:42:55] https://www.mediawiki.org/wiki/Template:! [17:43:15] You also can't use pipes or equals [17:43:18] @link [[en:w:Template:(!]] [17:43:18] http://enwp.org/w:Template:(! [17:43:26] Vulpix: Thanks will try it :) [17:43:34] https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#Escaping_pipe_characters_in_tables [17:45:18] Can anyone give me an easy bug to fix? This is going to be my first bug ! [17:46:15] /me smile face [17:46:51] I don't know if this would work... [17:46:52] !easy [17:46:52] We keep a list of bugs that are easy to solve, in case new developers want a simple step to start out with. Check out https://phabricator.wikimedia.org/tag/easy/ and let us know if you need any help fixing your first bug! [17:47:12] @Vulpix: It did :D [17:47:37] !! [17:47:37] bla [17:52:50] I'm working on this bug : https://phabricator.wikimedia.org/T72070 . Where will i find the code that is responsible for displaying that message? [17:57:47] anirudhgp: you could use the qqx trick to find the message "this topic was hidden by $1" on the code, and then grep the code for it [17:57:49] !qqx [17:57:49] If you want to find a particular system message being used on a page, you can append the uselang=qqx parameter to the URL. That will replace all system messages used on the page by their message names. See https://www.mediawiki.org/wiki/Qqx [18:00:03] @Vulpix: I will have to reproduce the steps required to obtain that error message correct? [18:00:36] yes, it would be desirable, specially because you should be able to test your own code [18:01:27] Ok. How do i reproduce it? The steps to reproduce have not been mentioned. Do i ask the author for it? [18:03:40] the bug is about Extension:Flow, and looking at the description, it may happen when someone hides a message... there may be a way to hide a message from the interface somewhere [18:04:47] anyway, I'd recomend you to choose a bug where you can know certainly the steps to reproduce, and after you have been able to reproduce the bug [18:05:48] Ok thanks for your help. I'll get back to you if i need anything. [18:54:57] I'm in an extension and I need to know if I'm in "Edit Mode" ... Any thoughts ? [18:55:04] See Here ... https://dpaste.de/VHsN [18:58:07] ibjoe: if ( $wgRequest->getVal( 'action', 'edit' ) ) { ... } [18:59:49] ori: would that work for action=submit as well? [19:00:24] Really ... that's it ... AWESOME !!! [19:09:04] I'm in an extension and I need to know if I'm in "Edit Mode" ... Any thoughts ? [19:09:04] See Here ... https://dpaste.de/VHsN [19:09:48] ori: if ( $wgRequest->getVal( 'action', 'edit' ) ) { ... } ... is beautiful ... but ... it's always returning true ?? [19:09:49] ibjoe: Did the previous suggestion not work? [19:09:57] Oh. Hm. [19:10:26] ibjoe: Shouldn't it be if ( $wgRequest->getVal( 'action' ) === 'edit' ) { ... } ? [19:10:34] God ori [19:10:54] I thought you were good at this programming stuff. :P [19:13:21] no ... the form is right ... but I'm missing something ... [19:17:41] ori: ... this is correct ... if ( $wgRequest->getVal("action") == "edit" ) [19:19:01] I must have flubbed it up .. but your first idea ... didn't error out ??? What's that about ? I guess I'm getting to dependant on strong typing ... PHP ??? Hmmmm [19:21:36] ori: PHP GURU question ... is this different ? ? ... if ( $wgRequest->getVal('action') == 'edit' ) ... notice the single quotes ... this does _NOT_ work ?? [19:22:51] ibjoe: single vs double quotes won't make a difference there [19:23:43] ibjoe: The second argument to getVal is the default value, in case it can't find a value in that key [19:23:54] So the fallback would be "edit" [19:23:57] Which is always true. [19:24:34] doh ... yeah ... and the first time I left out ... global $wgRequest; .... but didn't know what was up ... [19:24:45] That would do it [19:25:18] Thanks !!! another successful dip into the IRC pool .... [19:27:03] defaults and stuff ... mediawiki is powerful ... but this was a hard question to answer using the docs ... what is the magic docs lookup ?? [19:31:21] could anyone suggest a workaround for this error, I'm new here and trying to push a commit, but getting this: [19:31:23] https://dpaste.de/D1on [19:36:21] codezee : are you in the folder you need to be in ? [19:36:23] like cd core [19:36:40] yes I am [19:37:22] you feeded your ssh key in your gerrit account ? [19:38:32] yes, all that setup was done as given in the docs [19:38:56] try again maybe ? [19:42:37] what you got codezee ? [19:43:46] should changing the name of local folder to something other than "core" have any effect? [19:45:39] Anyone have an idea about why the AutoLoader isn't working here? http://pastebin.com/BKP79qVM [19:47:31] codezee: no [19:49:00] codezee: it would be good to know what you get as Anshoe has asked [19:49:16] yes, I'm looking into the ssh keys again [19:51:21] other wise re generate and do it [19:51:26] that might help [19:54:59] I'm confused. Where to the default skins set their modules? I see skins.vector.styles being used in Vector.php but I don't see it being defined. [19:56:15] hexmode: doh, you dummy, you forgot to save the mods you made [20:00:21] sigilbaram: what version of mediawiki? [20:00:48] hexmode: 1.23 [20:04:38] https://www.mediawiki.org/w/index.php?title=Manual_talk:Upgrading&diff=0&oldid=1101670 [20:04:49] Maybe that's an answer to QuestPC :p [20:06:57] so true [20:07:57] i have a question about semanticwiki ... they say i sould unpack the zip and in it should be a folder Semanticwiki and Validator .... but i only see the semanticwiki folder in the zip .... in it are a lot of folders and it contains a extensions folder too ... but in it is only the validator .... now they day i should place both folders into my extensions folder .... but what shall i do now ... should i put the semanticwiki into my extens [20:11:29] ohh the english install manual is more or less totaly otherwise .... i will try this one :)) [20:12:36] !smw [20:12:36] SemanticMediaWiki is an awesome extension that lets you connect wiki pages with semantic relations. See and . Mailing lists are available at [20:12:45] I thought they had an IRC channel... [20:17:33] Is it possible to create a category link with the &from= argument intact? So the link would take you to a specific letter on the category page. [20:19:10] i dont know ... i try to set up a wiki with a calendar since one week ... now i think the server and sql and php is runing and i could reinstall it quickly :)) ... i had to learn a bit ... now i am also able to reinstall media wiki without reinstalling the whole server stuff :)) .... now i gave this semantic wiki a try and now i have reinstalled the wiki without the whole server :)) ... after adding the semantic thing i got strange error [20:19:30] Rabutz: Do you have a link to the non-english install manual you used? [20:20:27] https://semantic-mediawiki.org/wiki/Help:Installation_%28de%29#Erstinstallation [20:21:06] here the description of point 1 does not fit together with the zip in the same sentence [20:21:17] !hss [20:21:17] ZOMG!! https://upload.wikimedia.org/wikipedia/mediawiki/6/69/Hesaidsemanticga2.jpg [20:21:35] oh, I though that image had the name of the channel [20:21:36] Vulpix: yeahyeah. :P [20:22:08] Rabutz: That german version is more than two year old. 8-| [20:22:28] i thoght its theyr official site :/ [20:23:12] google and wiki.org broght me to this german install manual [20:23:15] It is. [20:24:23] Nemo_bis : i wanted to know if there is any open project/bug/extension suitable for a newbie to hop on as a first step to get comfortable with meidawiki codebase? [20:25:33] Rabutz: Raised an issue: https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/686. If you want, follow it. Better yet, take it and solve it. ;-) [20:28:15] what should i do? ... sing up and then? ... may i should tell you i am very new to this stuff and i am not even programmer or such a strange obscure thing ;) [20:31:05] Rabutz: This is not about programming. It is about translating the English article into German. Once logged in to the wiki, you should be able to edit the manual just like any other wiki page. [20:31:33] ameenkhan07: did you check https://www.mediawiki.org/wiki/Annoying_little_bugs [20:33:27] Nemo_bis: ah! just what i needed. will get back to you after going over it [22:02:14] ok i did follow the english semantic wiki instructions .... they are not much better than the 2 year old german instructions .... how ever with this composer thing it did work somehow i dee now a semantic logo and not a wm.something error as the last time :)) with the old version from the german instructions [22:04:13] Anyone know how to manually change the configuration in the WikiEditor extension? Whenever I click "Publish" in the top right, a window prompts up that says "Publish to {{SITENAME}}". [22:04:30] And I want it to actually say my site's name lol. [22:21:53] any tool to autoupdate with SSH access? [22:23:22] Sia-, git? [22:23:44] MaxSem autoupdate on my server [22:23:53] yep;) [22:24:21] or you want to do it like in cronjob? [22:24:52] MaxSem yes something like that [22:25:35] cd mediawiki && git pull && composer update && php maintenance/update.php --quick [22:26:17] what kind of wiki is this? automatic code updates aren't really suitable for production wikis [22:26:20] git pull can update without creating repo for it [22:27:06] it was earlier this command very quickly "tar xvfz mediawiki-1.23.5.tar.gz -C /path/to/your/wiki/ --strip-components=1" [22:27:27] hmm, so you want taballs only? [22:27:32] *tarballs [22:28:05] yes with one line command was easier [22:28:09] about the composer i have a question ... i just search for extension names and add them to the json as already there and then i run composer and the update.php and all is done? [22:28:31] i installed semantic wiki ... can i now just add new lines to the json richt? [22:30:56] on command line like this command> php composer.phar require mediawiki/EXTENSIONNAME "*" will it add to the json? [22:31:16] on the italian mediawiki you have the old commands still their [22:31:25] can i use it [22:32:00] http://www.mediawiki.org/wiki/Manual:Upgrading/it [22:32:02] Rabutz: No, that will not work. [22:32:53] so i add the lines manualy to the json below the other required lines? [22:32:54] Rabutz: See https://packagist.org/packages/mediawiki/ for packages available with composer. [22:33:43] Hello? [22:33:46] to add one you can edit the composer.json, but I'd recommend command line commands [22:34:26] And you should always consult an extension's page on mediawiki.org for install instructions [22:34:42] there might be additional steps necessary [22:35:09] sounds reasonable :D [22:35:26] i will try this :D [22:57:38] Anyone know how to manually change the configuration in the WikiEditor extension? Whenever I click "Publish" in the top right, a window prompts up that says "Publish to {{SITENAME}}". [22:57:50] *pops up [23:30:53] I am writing a review/comparison of technologies to move TeX content to the Web for publication in TUGBoat and it will most definitely contain a few words on TeXvc due to its importance to the Wiki world. [23:31:43] I asked a few question to the original author (Tomasz Wegrzanowski) and he asked me to ask the questions here! [23:33:07] pauloney: I don't know if /I/ can answer your questions, but this is probably a good place to ask them! [23:34:25] Okay, here we go! Does the MathML translation of texvc really do anything non-tricial ? I have a hard time getting it to understand \sqrt{2} ? [23:34:37] non-trivial? [23:34:51] hmm [23:35:11] Non-trivial as in "more than just sub- and super-script". [23:35:54] brion may know [23:36:20] physikerwelt (Moritz Schubotz) as well, don't think he's here though [23:36:31] He's not on IRC much. [23:36:55] Basically if I do: texvc /tmp /tmp "y=\Delta x+2" iso-8859-1 "rgb 1.0 1.0 1.0" it works and writes me MathML. [23:37:19] there was the ancient texvc mathml which hardlty does anything cause it never got finished [23:37:26] and there’s some newer mathml stuff that i’m less familiar with [23:37:28] Dang :/ [23:37:30] but if I add a \sqrt{2} in there it gives up and makes a PNG. [23:38:07] Where can I get the latest code base? [23:39:22] My other question is: What is the future of texvc in MidiaWiki? Aren't it moving to Mathoid and MathJax? [23:40:10] MediaWiki :) [23:40:29] brion should probably know where the code is? maybe. [23:40:47] Mathoid... sounds like a gwicke thing [23:40:50] :P [23:41:27] pauloney: i’m pretty sure we’re considering texvc a dead-end and the future is mathoid as the converter [23:41:36] but i’m not super familiar with the details [23:41:41] so don’t know current state of things [23:42:52] gwicke is busy at the moment. the calendar doesn't show what with [23:59:35] Anyone have a clue? o.O