mediawiki

MediaWiki sessions and cookies not working on multi-server behind CloudFlare

一个人想着一个人 提交于 2019-12-02 12:00:24
问题 I have a MediaWiki running on multiple AWS instances and login and registration is broken. The session.save_path is set to /tmp which is writeable and readable by anyone. I use Apache2 and PHP5 as well as MEMCACHED. Whenever you try to login you either get informed that there is protection against session hijacking or that you have cookies off. These are the errors: There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go

How to add extensions in Mediawiki?

白昼怎懂夜的黑 提交于 2019-12-02 10:49:51
How do i add the below new extensions in MediaWiki? *.xmcd and *.mcd for MathCad source files *.m and *.dat for Matlab source files. I have already few extensions in LocalSettings.php mentioned below $wgFileExtensions = array_merge( $wgFileExtensions, array( 'doc','pdf', 'ppt', 'zip', 'svg', 'xls', 'vsd', 'vdx', 'docx', 'xlsx', 'pptx') ); Thanks in advance Jayaprabu R If I've understood correctly, you simply add extensions as follows: $wgFileExtensions = array_merge( $wgFileExtensions, array( 'doc','pdf', 'ppt', 'zip', 'svg', 'xls', 'vsd', 'vdx', 'docx', 'xlsx', 'pptx', 'xmcd' , 'mcd' , 'm' ,

Enhance MediaWiki Search

眉间皱痕 提交于 2019-12-02 08:05:17
I was just wondering if I can enhance the search facility in MediaWiki, like returning a suggested Result Set closest to the Search Key instead of return 0 results page. For eg. I have created the ff: articles, Guidelines to Database Management Guidelines to SQL Reporting But when I try to search just by entering Guidelines , instead of showing me or suggesting me something close, it returns 0 results prompting me if I want to create it. Would it be a little suggestive, can I make it be a little suggestive? Try installing Lucene in place of the default MediaWiki search engine, which merely

Enhance MediaWiki Search

旧街凉风 提交于 2019-12-02 06:48:46
问题 I was just wondering if I can enhance the search facility in MediaWiki, like returning a suggested Result Set closest to the Search Key instead of return 0 results page. For eg. I have created the ff: articles, Guidelines to Database Management Guidelines to SQL Reporting But when I try to search just by entering Guidelines , instead of showing me or suggesting me something close, it returns 0 results prompting me if I want to create it. Would it be a little suggestive, can I make it be a

Generating an article from an email in mediawiki

帅比萌擦擦* 提交于 2019-12-02 00:56:56
问题 I would like to be send an email to an address that mediawiki can pick up and have mediawiki take it and generate a new page from it as a starting point. More complicated stuff like categories can come later. I have searched around on the web and not found anything obvious. I have not developed against mediawiki before but am an able and willing developer. Thanks for any assistance provided. 回答1: There is this extension - EmailToWiki It relies on a POP3 account being available and has been in

Generating an article from an email in mediawiki

有些话、适合烂在心里 提交于 2019-12-01 21:28:13
I would like to be send an email to an address that mediawiki can pick up and have mediawiki take it and generate a new page from it as a starting point. More complicated stuff like categories can come later. I have searched around on the web and not found anything obvious. I have not developed against mediawiki before but am an able and willing developer. Thanks for any assistance provided. There is this extension - EmailToWiki It relies on a POP3 account being available and has been in Beta for a long time, but it may be a good start for what you want to do. Have a daemon of some sort

How to check if user is Sysop using Php in Mediawiki?

一世执手 提交于 2019-12-01 21:23:32
I am trying to add a div to my sidebar and I only want this block to show to administrators. How can I check if a user is an administrator in php? I am trying to add this to myskin.php file and dont know how to do it. I have been using something like this to check if a user is logged in, <?php if($this->data['loggedin']) { ?> Is there anything similar to that to check if that user is a sysop? The code in the answer by *blackops_programmer* checks whether the user can protect pages. Per default, that would be sysops, but the permission can be assigned or removed from any group. If what you want

filter data from mediawiki api ios

帅比萌擦擦* 提交于 2019-12-01 14:42:33
I used the "action=query&prop=revisions&rvprop=content&titles=%@&format=json&redirects" api for getting the details about Anil_Ambani. In response i got the following dictionary <i> query = { normalized = ( { from = "Anil_Ambani"; to = "Anil Ambani"; } ); pages = { 1222313 = { ns = 0; pageid = 1222313; revisions = ( { "*" = "{{BLP sources|date=June 2012}}\n{{Infobox person\n| name = Anil Ambani \n| image =AnilAmbani.jpg\n| image_size = \n| caption = Ambani in 2009\n| birth_date = {{Birth date and age|1959|6|4|df=y}}\n| birth_place = [[Mumbai]], [[Maharashtra]], [[India]]\n| nationality =

How to redirect Mediawiki Short URL with no title to Main Page?

此生再无相见时 提交于 2019-12-01 14:32:08
I've implemented Short URL for my mediawiki and I have these in htaccess that works: RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2

filter data from mediawiki api ios

馋奶兔 提交于 2019-12-01 12:09:11
问题 I used the "action=query&prop=revisions&rvprop=content&titles=%@&format=json&redirects" api for getting the details about Anil_Ambani. In response i got the following dictionary <i> query = { normalized = ( { from = "Anil_Ambani"; to = "Anil Ambani"; } ); pages = { 1222313 = { ns = 0; pageid = 1222313; revisions = ( { "*" = "{{BLP sources|date=June 2012}}\n{{Infobox person\n| name = Anil Ambani \n| image =AnilAmbani.jpg\n| image_size = \n| caption = Ambani in 2009\n| birth_date = {{Birth date