[00:45:04] Hello. Is there a way to prevent links to a specific web site [00:46:01] OldCampingStuff: spam blacklist [00:46:13] thank you [01:03:34] I have been reading up on adding cutom edit buttons to the classic editor. I have found the following code http://pastebin.com/rGF3fSjh on the manual page here http://www.mediawiki.org/wiki/Manual:Custom_edit_buttons . What do I need to change to allow a classic toolbar button to call a user defined function? Or do I need to do it another way? I have other code that works, but I am sure is not the best way. If there is a [01:30:30] here is the 'other' code that works (tested with chrome)...i am not a javascript guru... http://pastebin.com/3ZU3Pws8 . I wrote this before I looked up 'adding custom toolbar buttons'.....I do now realize the simple functionality of the 'Template' button can easily be done following the manual instructions. What I dont see in the manual is how to be able to make a button I can click that will initiate my function to creat [02:07:20] OldCampingStuff: what verison of mediawiki are you targeting? [02:07:30] a *LOT* of the js you put there is handled via jQuery [02:07:40] which is universally available in modern mediawiki [02:12:22] to use a user-defined function, you can add it per the manual, making sure to specify the imageId property. That sets an HTML id on the new button, which you can then assign a click handler to via $('#myid').click(function () { ... } ); [02:25:39] Hi, what do I have to do to get a mediawiki cloak? [02:27:42] Skizzerz: thank you very much for pointing me in the right direction. when i wrote that i did not know mediawiki was using jquery. i had not looked up others (or even the manuals) methods for adding custom buttons. just kinda got the urge to do it and went at it. [02:42:10] JordanJ2: mediawiki cloaks are given out to reasonably active commiters [09:58:13] I think for https://bugzilla.wikimedia.org/show_bug.cgi?id=68126 adding a title in wfArrayInsertAfter will solve the problem.But testing it doesn't give me the desires output Can anyone help me out? [11:18:50] Hello [11:19:01] I'm just looking into an older database loaded to my pma, from mediawiki [11:19:22] and I see that all entries in database are, like, encoded. For example, an username looks like this: 416e64727a656a20566f7373 [11:19:38] the database is still working though, an installation of mediawiki is running there. [11:20:14] now, I'm just trying to copy one users password to another installation of mediawiki... but I don't know what's going on with the database. Why is it encoded that way? (the fresh installation one isn't) [11:20:28] and how do I restore it to a normal state? I can't even find the username whos password I'm trying to migrate. [11:37:54] for https://bugzilla.wikimedia.org/show_bug.cgi?id=68126 i think adding title in wfArrayInsertAfter will solve the problem but testing the same doesn't support my argument. Can anyone help me around? [15:34:14] Hi all. "mediawiki get talk page name javascript" search query gives rubbish. How do I get a talk page name in js, if I'm running it on a page or a talk page or a comments page of an article? I would rather not prefix its main part of name with 'Talk:' manually. [15:44:59] svetlana: i don't think there's a pre-made way, using mw.Title can make it a bit easier probably [15:48:58] svetlana: I'd imagine something like mw.loader.using( 'mw.Title', function() { var t = new mw.Title( mw.config.get( 'wgTitle' ), mw.config.get( 'wgNamespaceNumber' + 1 ); /*do something with title*/} ); [15:49:49] or I guess if you don't like mw.Title, you could use mw.config.get( 'wgNamespaceIds' ) to try and do it manually [16:05:41] bawolff, thanks :) [16:05:47] MatmaRex_mobile, thanks :) [16:22:54] Hi ! Very basic question, asked one before too. Is the userID of administrator of MW always "1" like here http://awesomescreenshot.com/0b536e2w07 ? [16:28:09] albertcoder, the userid remains constant for users [16:28:32] i can think only of one exception -- a rename -- which i don't know whether it changes that id or not [16:32:18] albertcoder: The user id of the first registered user is always 1 [16:32:21] svetlana, I just wished to know, is the userID "1" reserved for administrator ? [16:32:39] Whether or not that user is an admin can vary, although commonly the first user made ends up being an admin [16:32:58] But there's nothing instrinsic about 1 = admin. You can have user 1 not be an admin [16:33:23] alright bawolff thanks! [16:35:51] One more thing I am stuck at is, how to make the toolbar like User profile [16:35:52] Appearance [16:35:52] Date and time [16:35:52] etc. like here http://awesomescreenshot.com/0b536e2w07 , any idea bawolff ? [16:36:26] in Special Pages? [16:36:54] albertcoder, it's consequtive i believe (the first registered user id is 1) [16:37:09] !hook GetPreferences | albertcoder [16:37:09] albertcoder: https://www.mediawiki.org/wiki/Manual:Hooks/GetPreferences [16:37:28] svetlana: That's correct. Its an auto-increment field in the mysql db [16:38:11] yeah svetlana thanks and bawolff too :) [16:46:49] athiralekshmicv: So, the documentation you're looking for is https://www.mediawiki.org/wiki/Manual:Hooks/PersonalUrls [16:47:26] athiralekshmicv: I don't see any way to add a title there, so you might need to do it in JavaScript, or add a way to do it in core [16:51:35] marktraceur: Without knowing the context, PersonalUrls hook has a title object (?) [16:51:48] bawolff: The link title, not the page title [16:51:54] If you're adding links. [16:56:55] Hmm, there is a text key for the items in $personal_urls for that [16:58:55] No bawolff [16:59:02] It's automatic, based on the ID [16:59:14] * bawolff might just be very confused [16:59:43] There's a call to wfMessage( 'tooltip-$name' ) in Linker.php [17:00:05] Ah, you're right [17:00:34] text is obviously the actual text of the link [17:00:41] * bawolff goes back to the corner [17:01:00] Heh [17:01:04] * marktraceur hugs bawolff [17:01:07] Y'done good [17:01:22] Anyway, I commented on the bug [17:19:31] Hi everyone! [17:20:00] Is there someone I can ask questions? [17:20:09] !ask [17:20:09] Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [17:21:18] I am PHP programmer; but hardly have some experience in such a huge project like mediawiki. Is there a way for me to contribute? Maybe write some modules? [17:22:41] Hi Turingian [17:22:53] There's a ton of things that need the attention of PHP programmers [17:22:53] Hi [17:23:05] But, for starters... [17:23:16] We have https://www.mediawiki.org/wiki/Annoying_little_bugs [17:23:42] That has links to info about our conventions, code review system, etc. [17:24:36] Well some time ago, I was said I should have a mediawiki coder license or something. I cannot remember the exact name of it but they said something like this. [17:25:08] Ummmmm [17:25:31] We don't have a CLA if that's what you mean [17:26:10] Patches are accepted anyone (if the patch is good, of course) [17:26:13] from anyone* [17:27:01] Oh great! Thanks for your help. It indeed is helpful! [17:27:39] Oh, he quit [22:25:31] Hi guys! Who's up for a quick fix? (I hope). The thing is that I really want the imageoverlays to work with the maps extension. I also have SMW, so I cant get the latest ver. of Validator. I thought "hey, it's such a minor thing, and everything is OS, so maybe I can just hack the change myself. So I did every change made on this page: https://github.com/JeroenDeDauw/Maps/commit/574093daeb64d3a2dd2f93865324b79d3156ac4b and then i got th [22:25:31] is message: "Fatal error: Class 'Maps\ImageOverlayParser' not found in /volume1/web/wikiprivat/vendor/param-processor/param-processor/src/ParamProcessor/Param.php on line 245". My programming skills is very limited, but i guess I am only missing a single step? Plz help. [22:26:44] gute: are you using a different version of Validator than Maps specifies you should? [22:26:51] No [22:28:19] but the change i made by hand is for a later version, one that requires Validator 2.0. But it seems to be such a minor hack. Am i wrong? [22:29:04] JeroenDeDauw: sorry, I should type your name first. [22:30:45] JeroenDeDauw: I have Maps (Version 3.0.1), and Validator (Version 1.0.0.1) [22:32:00] JeroenDeDauw: Hey, its you! Just realized I talk to the parent of this thing. =) Good work mate! [22:32:03] gute: so you added the files from that commit? In that case the autoload map will need to be rebuild [22:32:05] run composer dump-autoload [22:32:31] JeroenDeDauw: alright. just a sec. [22:33:31] Hoping to rel SMW 2.0 RC1 in a few days, then you'll be able to use that together with the latest and greatest version of Maps [22:36:28] JeroenDeDauw: that sounds perfect! I did the dump-autoload and now I can see the map without errors. can't see my image though. But nevermind, if the upgrade is in only a few days time, I can wait. Greetings from Sweden btw. [22:40:44] JeroenDeDauw: hmm.. RC1? How long do you reccon till it's stable? [22:43:00] 2 weeks after that [22:46:12] JeroenDeDauw: alright. =) Thanks a lot for your time.