[00:03:09] Deadmano, https://www.mediawiki.org/wiki/Template:Red does basic styling. [00:03:14] ah, gone :-/ [00:59:31] anyhow has any idea how to get the top article (based on number of likes) in mediawiki? I've already implemented the fblikebutton extension on every article and managed to retrieve the number of likes for each article. eg: http://example.com/wiki/index.php?title=ABC (1 like) http://example.com/wiki/index.php?title=XYZ (2 likes) I want to retrieve the content in http://example.com/wiki/index.php?title=XYZ and display in th [01:00:32] What should I do next after retrieving the number of likes for each article on each url. Thanks a million for helping! [01:12:57] i run a wiki for internal use only, but the spammers found it somehow. I thought i had turned off edits by non registered users, and user registration but somehow they seem to be registering users [01:13:21] how do i check that users have to be confirmed, and registered before they can edit? [01:15:32] !access | k-man [01:15:32] k-man: For information on customizing user access, see . For common examples of restricting access using both rights and extensions, see . [01:17:44] thanks [01:22:30] oh man, they created 1000s of users [01:22:42] how do i delete all users created after a certain date? [01:22:50] and edits those users made? [01:24:35] oh i see some links. I'll try those first [01:28:13] Hi all, anyone has any idea how to retrieve the top article (based on number of likes) ? Thanks! [01:32:25] k-man: you can't technically "delete" a user, only block them [01:32:31] *can't [01:33:17] oh... [01:33:20] thats not so good [02:22:56] so if i have a backup of my database before the vandalism, can i just dump the db, and restore the backup? [02:23:02] or is there other things I need to take care of? [02:23:14] that's it [02:23:21] (unless files got uploaded) [02:23:32] ah, how do i check that? [02:23:45] Special:ListFiles [02:24:35] phew, looks like no files were uploaded [02:26:15] can i somehow see a list of changes in a certain date range? (just want to see if there is anything changed between the last backup and the date i noticed the first spam registration [02:27:14] there's not a really good way [02:27:27] unless this all happened within a month. did it? [02:27:35] um, yeah, within this month [02:27:55] then check Special:RecentChanges [02:28:55] yeah, but that doesn't have a way to do a from to does it? [02:29:19] nm, its not worth it, any changes would have been minimal., we rarely edit this wiki [02:35:42] *sigh* those scum really added 1000s if not 10,000s of users and pages [02:37:14] gah, caching just gave me a heart attack. I just reloaded the page and it was still spam. *panic* then did a hard refresh and it was fine [02:39:29] anyway, normal service seems to be resumed, thanks for your help [02:41:51] if you rarely edit the wiki, maybe restrict account creation and editing [02:48:51] i did. i believe i had originally restricted it when i set up the wiki, but i suspect when i upgraded recently, perhaps i forgot to copy those settings accross or something [02:49:07] thanks for the suggestion though [02:49:57] and I just blocked the entire site except for my LAN too... just for good measure [04:06:30] How to upload images on mediawiki [04:06:58] I couldn't see upload option on left size menu on my main page [04:23:07] Jagan: go to Special:Upload [04:30:33] !uploads [04:30:33] File uploads are disabled by default, set $wgEnableUploads=true; to enable it. See for configuration details, and for using uploaded images and other files. [04:30:48] it needs to be enabled first [04:50:27] howdy all! how could i get the most popular article on mediawiki? [04:51:13] XYZ_: Popular how? Most visited? Most edited? [04:51:33] i would like based on most likes. is it possible? i have been struggling for 2 days :/ [04:51:46] i've implemented the fblikbutton extension on my wiki [04:55:42] Is it not possible to get based on most likes? [04:57:27] Facebook would have those stats, I imagine. [05:09:46] hey guys, trying to install mediawiki on debian jessie... and running into an issue where mediawiki/config gives me a permission issue and going to the mediawiki index gives a "bar(), etc etc) which throw parse errors in # PHP 4" etc etc error [05:09:49] any ideas? [05:10:37] are you running the package or the tarball version of mediawiki? [05:10:57] package [05:11:56] i would recommend using the tarball [05:12:36] cool. so, i'm guessing it's as simple as unpacking the tarball into the /var/www/html/ dir? [05:13:14] and setting up a database for it to use [05:13:28] thats already been done.. but ill try that out [05:17:09] p858snake, that was so easy -_-.... [05:17:18] fkin default packages... [06:44:55] Hi [06:45:38] i have installed mediawiki 1.15.5-7 from apt-get on ubuntu [06:45:50] i want to use Math extension [06:46:28] so, i installed mediawiki-math [06:47:08] but extensions is not in /etc/mediawiki-extensions and i don't know how i can activate this extension [06:47:18] anyone have an idea ? [06:49:43] ugh [06:58:24] hugokernel: don't use the ubuntu package. [07:14:56] ok legoktm lol [07:16:13] hugokernel, no lulz here. or there are - when your wiki will get pwned because it's running a prehistoric version [07:34:27] I want to use markup with mediawiki 1.25, how to do this ? [07:34:28] thx [07:34:47] !installing [07:34:47] Installing MediaWiki takes between 10 and 30 minutes, and involves uploading/copying files and running the installer script to configure the software. Full instructions can be found in the INSTALL file supplied in the distribution archive. An installation manual can also be found at . See also: !download [07:35:10] hugokernel: follow the instructions at ^ and the installer will offer to install the Math extension. [07:36:20] legoktm: Math extension is not in the 1.25 installer [07:36:25] i try [07:36:32] hugokernel: did you download the full tarball? [07:37:50] i don't know if it is the full version -> https://releases.wikimedia.org/mediawiki/1.25/mediawiki-1.25.1.tar.gz [07:39:17] hugokernel: sorry, for some reason I thought Math was in the tarball. You can download it from https://www.mediawiki.org/wiki/Special:ExtensionDistributor?extdist_name=Math&extdist_version=REL1_25&extdist_submit=Continue [07:39:38] hugokernel: and https://www.mediawiki.org/wiki/Extension:Math#Installation contains installation instructions [07:40:23] Anyone around with VisualEditor experience? [07:40:40] I have discovered on my wiki an odd case of VisualEditor changing interwiki prefixes without the editor doing anything [07:41:16] legoktm: Thx, i test ! [07:41:47] FastLizard4: best place to ask is #mediawiki-visualeditor, but I think most people will be asleep right now [07:42:03] legoktm: Hmm, okay, thanks :) [07:43:34] legoktm: ok, i already tested this one and it don't work [07:43:56] legoktm: i have an exception because extension.json is not present [07:44:08] legoktm: in the Math extension folder [07:44:19] hugokernel: use require_once "$IP/extensions/Math/Math.php" like the wiki page says [07:46:00] legoktm: already tested, -> class MWLoggerFactory not found [07:47:43] ugh, somehow a patch didn't get backported [07:51:47] legoktm: this patch ? https://www.mail-archive.com/mediawiki-commits@lists.wikimedia.org/msg245467.html [07:52:36] hugokernel: yeah. I just backported it to the 1.25 branch, but it's going to take about an hour for it to show up in ExtensionDistributor link [07:55:51] legoktm: ok [07:56:01] legoktm: i try to patch directly [07:59:32] hugokernel: https://gerrit.wikimedia.org/r/214305 is the backported patch [08:02:40] legoktm: done but i have another problem now [08:04:20] hugokernel: what is it? [08:04:57] texvc not found [08:05:00] i read the doc [08:08:32] hi, why is only one page shown when i do a search on the wiki and i know my search keyword exists on multiple pages? [08:16:35] What happens if 2 users edit the same wiki simultaneously? [08:19:10] anyone has any idea how to select count from database? i tried this but it doesnt work.. [08:19:33] $res = $dbr->select( $this->tableName(), // $table array(O(N),'page_id', 'user_id'), array('page_id ' => $this->page->getId()), [08:20:46] !paste [08:20:46] http://tools.wmflabs.org/paste [08:21:01] !pastebin [08:21:01] To avoid overflowing the channel with inane amounts of text, use https://phabricator.wikimedia.org/paste/create/ or other awesome pastebin sites to share code, errors, and other large texts. [08:21:29] XYZ_: Do you mean the select count(*) kind? [08:22:03] ya [08:22:45] but i read that the syntax for count is different [08:22:50] Remember that COUNT(*) is O(N) [08:23:07] There are a couple of things you can do. [08:23:27] according to this website https://www.mediawiki.org/wiki/Manual:Database_access [08:23:47] ohh, care to advise? thanks [08:24:03] XYZ_: True, it warns you against using expensive queries, but if have to do an accurate count, it's going to be O(N) [08:24:06] Now, things you can do: [08:24:14] https://doc.wikimedia.org/mediawiki-core/master/php/classDatabaseBase.html [08:24:21] will show you a couple of methods [08:24:26] What happens if 2 users edit the same wiki simultaneously? [08:24:40] XYZ_: such as estimateRowCount() and selectRowCount() [08:25:00] ok, let me take a look first. thank you! [08:25:03] legoktm: unknow error and nothing in log file [08:28:41] legoktm: Failed to parse (unknown error): \begin{bmatrix} x & y \\ z & v \end{bmatrix} [09:10:58] legoktm: have you a last tips to help me debug my problem please ? [09:22:15] hugokernel: did you install texvc as explained in [[Extension:Math]]? or do you plan to use client-side rendering with MathJax? [09:27:20] Vulpix: Thx, problem resolved (open_basedir restriction with popen) [09:27:35] Thx legoktm for the help ! [09:27:56] good :) [09:35:21] .stats [09:35:32] .level [09:35:39] oops, wrong channel [09:58:06] Anyone in here have experience writing an icalendar-file? [12:33:06] svip: Probably best to use a library or framework of some kind? [12:34:51] Fiona: I was just wondering why when I insert the timezone Europe/Copenhagen, my calendar program reads it as UTC time. [12:35:34] Maybe you need to do UTC with an offset? [12:36:29] Which calendar program? [12:36:57] An extension to Thunderbird. [14:13:42] hello [14:13:50] everyall [14:13:59] have a little problem [14:14:34] i want to upload any word file to media wiki [14:14:45] how can i do? [14:16:26] !upload [14:16:27] File uploads are disabled by default, set $wgEnableUploads=true; to enable it. See for configuration details, and for using uploaded images and other files. [14:17:02] i did [14:18:40] jucasiro: what error message do you get when trying to upload a word file? [14:20:20] the ZIP file is damaged or can not be read [14:21:52] jucasiro: see https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Allowing_Java_JAR_Uploads [14:27:18] thanks [14:27:21] very much [14:55:35] I took the toolbox off of the Mediawiki:Sidebar page but it still shows up in the sidebar. Is there a cache or something? (I tried restarting the webserver.) [14:58:33] karlpinc: toolbox, as well as search (in monobook), is a fixed section of the sidebar. You can control the place where it's shown using Mediawiki:Sidebar, but removing it won't remove it from the sidebar [15:02:24] Vulpix: Ah. Thanks. I guess I'd have to frob the css then. Humm. But $wgDefaultSkin = "vector"; [15:04:22] there's a way to completely remove it, from PHP. Let me see if I find it... [15:04:31] !sidebar [15:04:31] To edit the navigation menu on the left, edit page [[MediaWiki:Sidebar]] on your wiki using its special syntax (see https://www.mediawiki.org/wiki/Manual:Interface/Sidebar for details). If you need more control, you can use the SkinBuildSidebar hook (https://www.mediawiki.org/wiki/Manual:Hooks/SkinBuildSidebar). [15:07:10] I think I'd better edit Mediawiki:Common.css instead. But now I'd like to undo my changes to Mediawiki:Sidebar and there's no revert. My edit looks like the first revision of the page. How do I go back? [15:11:50] karlpinc: delete the page, or blank it [15:12:39] hmmm, I though I'd be able to remove the toolbox by simply unset() it from that hook, but that doesn't work :S [15:13:46] Vulpix: Thanks. (Deleting seemed exciting, so I did that!) [15:16:17] Vulpix: No biggie. I think I'll hide the sidebar entirely. [15:16:36] ok [15:28:37] Vulpix: I changed my mind. :-) Hiding the sidebar entirely hides search too. There's probably a way to hide the toolbar with css. I'll figure that out. [15:30:36] karlpinc: #p-tb {display: none;} [15:41:12] Vulpix: Thanks. [15:41:42] yw [15:52:49] I want to apply styling to a table column, but and are apparently not supported http://www.mediawiki.org/wiki/Help:Tables#Common_attributes_for_columns.2C_column_groups_and_row_groups [15:52:59] Is there any alternative? [16:04:12] itstheduke: use inline style cell by cell. Or if you can change global styles (MediaWiki:Common.css) you can use a specific CSS class for that table and use selectors like yourtableclass.td:first-child + td { ... } etc [16:10:23] My internet cut out. Not sure if there was a response... [16:10:38] but as an experiment I enabled $wgRawHtml and the parser still wouldn't accept and [16:10:51] It just spits them right back out. [16:11:54] I suppose an extension like HTML Tags probably wouldn't work either. [16:12:58] itstheduke: use inline style cell by cell. Or if you can change global styles (MediaWiki:Common.css) you can use a specific CSS class for that table and use selectors like yourtableclass.td:first-child + td { ... } etc [16:15:39] Vulpix: Hi. Yeah, cell by cell was what I was trying to avoid :-) , and complex selectors, too. Oh, well. Thanks! [17:05:15] I'm running MW in a docker on a desktop and its reaaaaly slow - what is a good mix of options that would make things reasonably faster? [17:07:41] hi. is there a compatible wysiwyg extension for mediawiki 1.25.1? [17:07:45] !fast | malaverdiere [17:07:45] malaverdiere: [17:07:57] Dirk^^^^: have you looked at VisualEditor? [17:09:15] i thought that visualeditor is a different extension?! [17:10:17] opening the links legoktm [17:10:36] hmm? sry don't understand [17:12:56] I thought that setting wgMainCacheType would make setting wgMessageCacheType unnecessary [17:47:39] PHP Fatal error: Class 'Wikimedia\Assert\Assert' not found in /srv/mediawiki/includes/libs/MapCacheLRU.php on line 45 [17:47:50] ^ any idea why i can no longer update MediaWiki? [17:48:02] Is it due to some Assert helper not being installed? [17:50:38] gleki: is your composer/vendor repo up to date? [18:06:22] so things are not crawling so badly anymore - but the first hit is still slow - is it that some caches are being built at that moment? Is there a way to get that done via the cli? [18:55:41] Dirk^^^^: VE is fully compatible with 1.25.1 and has been supported for some time now [19:04:51] hi, why is only one page shown when i do a search on the wiki and i know my search keyword exists on multiple pages? [19:06:26] guillom: do we still need the WmfProjectStatusHelper gadget on mw.o? [19:06:56] legoktm: Hmm, no; It can probably be safely disabled/removed: [19:07:14] Sorry I missed it during my cleanup. [19:09:38] guillom: one less default gadget :) https://www.mediawiki.org/w/index.php?title=MediaWiki%3AGadgets-definition&type=revision&diff=1660941&oldid=1435985 [19:13:18] can anybody see what i am writing? [19:13:19] hi stangeland [19:13:22] How do I go about disabling an account? I don't have administrator privileges to the website, but I do have root access to the server it's hosted on. [19:13:22] harej, hi :) ok...so my text is actually visible [19:13:22] legoktm: Thanks! [19:13:23] seems my questions are being totally ignored hehe [19:16:10] JimmyNeutron, is it a private (login required to read) wiki? [19:16:43] MaxSem, Yes, its private. Its my company internal Wiki page. [19:17:28] the person who usually does this is out of the office [19:17:35] JimmyNeutron, also: you can give yourself admin rights from shell: php maintenance/createAndPromote.php --sysop [19:18:35] doing that and then blocking via web interface is muuuuch preferred to messing with databse manually [19:18:38] MaxSem, I'll look at that php file. I was hoping to just change the user password to something random by logging into the database [19:19:30] you would also need to erase their email so that they couldn't reset the password [19:20:14] that's why configuring the wiki to disallow access to blocked users and then just blocking is preferrable, we do that on WIkimedia private wikis [19:20:15] MaxSem, that shouldn't be a problem since the password reset goes to the user's company email address, which is disable [19:20:41] that's cat and mouse problem again, what if they changed it? [19:21:10] MaxSem, ok..I understand what your saying and true. [19:23:38] MaxSem, I promoted my account, logout, and log back in but I don't see any admin page links [19:24:10] go to their userpage, you should see "block this user" in the sidebar [19:24:44] then you just need to make sure that $wgBlockDisablesLogin is enabled [19:25:30] MaxSem, Sorry, new to this. How do I get to the userpage? [19:25:42] User: [19:25:45] Special:ListUsers? [19:28:41] MaxSem, Vulpix ...got it...account is now listed as block under "Blocked users" Thanks everyone! [19:29:14] JimmyNeutron, now just make sure that $wgBlockDisablesLogin is enabled [19:30:29] MaxSem, What's $wgBlockDisablesLogin? On the "User List" and to the right side of the username, I see this "(Created on 9 June 2014 at 16:14) (blocked)" [19:36:15] !wg BlockDisablesLogin [19:36:15] https://www.mediawiki.org/wiki/Manual:%24wgBlockDisablesLogin [19:36:39] Vulpix, Thanks! Was just reading that. :) [22:15:55] https://en.wikipedia.org/wiki/Main_Page is utterly different for desktop and mobile versions of the site. How is it done? [22:16:33] Maybe, there is some IF tag? [22:17:24] !e MobileFrontend | porton [22:17:24] porton: https://www.mediawiki.org/wiki/Extension:MobileFrontend_ [23:12:02] bd808: so I upgraded to fedora 22 earlier today, and now "vagrant up --provider=lxc" just times out :P