mediawiki-extensions

curl gives 403 error?

假如想象 提交于 2019-12-07 13:09:01
问题 I'm trying to set a cookie for my phpBB forums from a MediaWiki login page. Using the hook after a login to the wiki is successful, I want to run a php script that sets the cookie. The script works when I run it independently or when I use GET , but for security reasons I want to POST to the script. For this I figured curl would be the best option. Unfortunately, even the basic script like this: curl_setopt($ch, CURLOPT_URL, "http://www.example.com/ForumLogin.php"); curl_setopt($ch, CURLOPT

UserMerge Error

霸气de小男生 提交于 2019-12-06 16:07:02
I recently added the UserMerge extension to my mediawiki installation. Followed the instructions found here . I enabled $wgShowExceptionDetails = true; and it gave me this: [f9bbe088] /wiki/index.php/Special:UserMerge Exception from line 376 of /wiki/includes/SpecialPage.php: Call to undefined method UserMerge::getPageTitle Backtrace: #0 /wiki/extensions/UserMerge/UserMerge_body.php(128): SpecialPage->__call(string, array) #1 /wiki/extensions/UserMerge/UserMerge_body.php(128): UserMerge->getPageTitle() #2 /wiki/includes/SpecialPage.php(631): UserMerge->execute(NULL) #3 /wiki/includes

curl gives 403 error?

若如初见. 提交于 2019-12-05 23:00:44
I'm trying to set a cookie for my phpBB forums from a MediaWiki login page. Using the hook after a login to the wiki is successful, I want to run a php script that sets the cookie. The script works when I run it independently or when I use GET , but for security reasons I want to POST to the script. For this I figured curl would be the best option. Unfortunately, even the basic script like this: curl_setopt($ch, CURLOPT_URL, "http://www.example.com/ForumLogin.php"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); Gives me a 403 Forbidden error. There's no rules in robots

How to best add extensions when using official docker image for MediaWiki?

∥☆過路亽.° 提交于 2019-12-04 22:11:54
问题 We are using the official MediaWiki Docker image and want to be able to add additional MediaWiki extensions. Questions: What is the recommended next step here if we are currently using the docker-compose file below were we mount volumes on the host? Is it to build a new image that wraps the official image? Is there an example somewhere of this modified new image for adding a mediawiki extension? Or can we just mount an extensions volume on the host in the current docker-compose and if needed

How to enable Mathematica syntax highlighting for MediaWiki using extension “SyntaxHighlight GeSHi”?

时光毁灭记忆、已成空白 提交于 2019-12-04 12:58:49
I'd like to syntax highlight Mathematica code on a MediaWiki site. I've already installed the MediaWiki extension SyntaxHighlight GeSHi and verified that it works for other languages. I tried simply putting a Mathematica langauge data file mathematica.php into MediaWiki's extension path wiki/extensions/SyntaxHighlight_GeSHi/geshi , however it didn't correctly highlight a Mathematica code block such as: <syntaxhighlight lang="Mathematica"> (* this is a comment *) List[Sin[x], Cos[x], Tan[x]]; </syntaxhighlight> Any ideas? I do not see Mathematica listed as a supported language at http://qbnz

How to best add extensions when using official docker image for MediaWiki?

心不动则不痛 提交于 2019-12-03 14:19:44
We are using the official MediaWiki Docker image and want to be able to add additional MediaWiki extensions. Questions: What is the recommended next step here if we are currently using the docker-compose file below were we mount volumes on the host? Is it to build a new image that wraps the official image? Is there an example somewhere of this modified new image for adding a mediawiki extension? Or can we just mount an extensions volume on the host in the current docker-compose and if needed make any adjustments the LocalSettings.php ? This link on the docker website refers to adding PHP

How to add a link in MediaWiki VisualEditor Toolbar?

僤鯓⒐⒋嵵緔 提交于 2019-11-29 03:25:24
I`m trying to insert a custom link to a special page in VisualEditor toolbar. See the image below. See Image I googled a lot but without success. Someone please give a path... My answer is based on the following resources: MediaWiki core JS doc (ooui-js) VisualEditor JS doc (+ reading code of both repositories used for VE, mediawiki/extension/VisualEditor and VisualEditor ) Also, I'm pretty sure, that there is no documented way of adding a tool to the toolbar in VE, as far as I know. Although it's possible to add a tool to a group, which is already added, mostly used for the "Insert" tool

How to add a link in MediaWiki VisualEditor Toolbar?

删除回忆录丶 提交于 2019-11-27 17:32:53
问题 I`m trying to insert a custom link to a special page in VisualEditor toolbar. See the image below. See Image I googled a lot but without success. Someone please give a path... 回答1: My answer is based on the following resources: MediaWiki core JS doc (ooui-js) VisualEditor JS doc (+ reading code of both repositories used for VE, mediawiki/extension/VisualEditor and VisualEditor) Also, I'm pretty sure, that there is no documented way of adding a tool to the toolbar in VE, as far as I know.