mediawiki

Mediawiki, can't login after password change

≯℡__Kan透↙ 提交于 2019-12-12 01:59:04
问题 I'm using MediaWiki 1.27.0 on Ubuntu 14.04 I haven't set up email on the server yet, so I was going to reset a users password using the maintenance/changePassword.php script that mediawiki provides. When I ran their command php maintenance/changePassword.php --conf=/var/www/html/LocalSettings.php --user=myuser --password=newPassword It said Password set for myuser Now no one can log in, and everyone gets the same error of There seems to be a problem with your login session; this action has

Mediawiki editor reftoolbar missing?

早过忘川 提交于 2019-12-11 23:37:16
问题 For my projetc i installed mediawiki in my server, there everything works fine except cite(ref-tool bar). I am attaching the screenshot. Do we need any other js/css files to be included? Thanks in advance 回答1: Wikipedia runs a lot of custom extensions to the MediaWiki software. Like on any MediaWiki installation, you can see a list of the installed extensions at Special:Version. I believe that what you are looking for is Extension:Cite. 来源: https://stackoverflow.com/questions/10649475

MediaWiki Special:MyPage/common.js not working

我的梦境 提交于 2019-12-11 18:38:22
问题 MediaWiki Version and LocalSettings.php MediaWiki 1.22.4 $wgAllowUserJs = true; $wgUseSiteJs = true; Browser Version FireFox 28.0 JavaScript Code $ gvim common.js function myFunction() { alert("Hello World!"); } var onClickAttribute = document.createAttribute("onclick"); onClickAttribute.value="myFunction()"; var button = document.createElement("button"); button.setAttributeNode(onClickAttribute); button.innerHTML = "Say hello"; if (document.URL === 'http://mywiki.com/w/index.php/User:Pjc

MediaWiki fails executing JavaScript which gets executed fine in browser console

纵然是瞬间 提交于 2019-12-11 17:59:20
问题 The following global JavaScript code is the only JavaScript code I use in my entire all-core, Hebrew, MediaWiki 1.33.0 website: /* כל הסקריפטים הנכתבים כאן ייטענו עבור כל המשתמשים בכל טעינת עמוד. */ const list = document.querySelector("#footnotes_list"); document.querySelectorAll(".footnote>sup").forEach((footnote, i) => { const li = document.createElement("li"); li.append(...footnote.childNodes); // move content list.appendChild(li); footnote.textContent = i+1; }); Related templates The

How to trigger a signal / hook on edit of a specific page?

瘦欲@ 提交于 2019-12-11 17:46:10
问题 Is it possible to trigger some kind of signal or configure a hook (e.g. execution of defined / hard coded shell script) after editing one specific page of a MediaWiki? The scenario is as follows. Up to now a RSS feed is generated from the content of one specific MediaWiki page (call it wiki/index.php?title=News ) each time the RSS feed is requested. As this page gets edited only once in a couple of days, having a Perl::CGI oder PHP script as the source of the RSS feed (e.g. URL for feed

Log into my MediaWiki site when specific users are logged into my website on a different server

蓝咒 提交于 2019-12-11 14:18:29
问题 I have a ASP.NET/C# website using IIS that when a user logs in successfully (Using login control and checking oracle table for user info) I create a session variable that lets the site know the user is authenticated. I have also created a Wiki site using Media Wiki which I have hosted on a different web server. I'm going to link to the Wiki from my main website where the user logged in. What I need to do is when a specific users log into my main site I want them to be logged into my Wiki site

Can I use jquery.uls on a MediaWiki wiki to get a language code from the name of a language in English?

家住魔仙堡 提交于 2019-12-11 13:04:56
问题 WikiMedia has a jquery plugin called jquery.uls (Universal Language Selector) for choosing a language in all kinds of fancy ways. All MediaWiki sites seem to have it available to the JavaScript running on them via $.uls . There is documentation for the ULS extension but it seems to only concern itself with the server side and how an end user would interact with it. I want to know if I can use it to obtain a mapping from the English name of a language (such as "Vietnamese") to the ISO 639

How to parse the attributes value inside {{}} (curly braces) inside a infobox

﹥>﹥吖頭↗ 提交于 2019-12-11 11:05:08
问题 Within Infobox at wikipedia some attributes values are also inside curly braces {{}}.. Some time they have lins also.. I need values inside the braces, which is displayed on wikipedia web page. I read these are templates also.. Can anyone give me some link or guide me how do I deal with it? 回答1: Double-curly-braces {{}} define a call to some kind of magic word, variable, parser function, or template.. Help can be found on MediaWiki.org/.../Manual:Magic_words. The little lines that look like |

Semantic MediaWiki: How do I make a query for pages with intermediate relationships?

会有一股神秘感。 提交于 2019-12-11 10:19:57
问题 Suppose I would like to link several wiki pages in a "knowledge graph". Let's say, here is a quick list of geographic objects from bigger to smaller, where arrows denote a direct MediaWiki link: Continent:Europe ^__Country:Netherlands ^__City:Amsterdam ^__Venue:Heineken Music Hall The pages above have the following content: Continent:Europe {{#set: | self:name = Europe }} [[Category:Continents]] Country:Netherlands {{#set: | ref:continent = Continent:Europe | self:name = Netherlands }} [

Mediawiki + AJAX + IE = broken

[亡魂溺海] 提交于 2019-12-11 08:26:29
问题 I have created an extension for mediawiki that works in all major browsers other than IE (any version it appears). The extension relies on mediawiki's ajax wrapper to send an xmlhttprequest with parameters that essentially build a database query to a php script. This script will run a query based on the parameters and then create an XML object (using php's simplexml class) which then returns the XML to javascript for display in the browser (just a table, mostly). Now with all that information