Project:Support desk/Sections/Extension

__NEWSECTIONLINK__

= Extension Support =

TitleKey Extension and Vector Skin
Can somebody please let me know how mediawiki got this working... i cannot seem to make it happen with full namespace searching? (I have this working on monobook skin) Thanks.

Displaying Categories in Pages
Sorry if this is the wrong place. I am fairly new to all of this.

I am looking for a way to use what I think of as more common database accessing within wikimedia where for example I add a word as a page and on that page I define the word, and the I have a page called words or something that goes through and picks out those pages based on them being in the category:word and spitting them out into a table. Is that possible? I have tried a couple of extensions, but no luck so far.

Thanks.

(RESOLVED) EmbedImg Extension, Advice rather than tech help needed on Images

 * Product Version MediaWiki 1.14alpha (r45489)
 * PHP 5.2.4-2ubuntu5wm1 (apache2handler)
 * MySQL 4.0.40-wikimedia-log
 * www.trialworks.com/wiki

Hello, This is more of an "advice needed" post. I wanted to use the Upload/Image functions in MediaWiki but I believe I cannot... my webhost does not give me easy access to php.ini and I really don't want to go through the headaches of making them enable uploads in PHP, so I've kind of given up.

I did, however, download EmbedImg Extension and absolutely love it. It lets me take a address to an JPG or PNG file and paste it into the wiki, and in turn it displays the image (Rather than the path). The problem is that it's parameters only let me change size, but not location. I need to be able to align those images "right" with text, so that it all looks good. Aside from the extension, I got around the upload system by writing, in ColdFusion, an upload agent. It lets any of my users - in a super simple fashion - upload an image to the site and obtain the link, which then goes into the Wiki Article. It's really simple but very effective for my needs.

So now, I am just dealing with a formatting issue. It needs to be uber easy for my users. How would you guys/girls handle the alignment or would you really work on getting the Wiki upload stuff to work (btw, I feel my ColdFusion app is easier to use for my users than the Wiki stuff).

Karl @ www.trialworks.com/wiki Thanks!!


 * UPDATE: sorry to waste space, I think I've solved my little crisis with

MediaWiki oes not find texvc - but texvc exist in the math folder !!!

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.4
 * MySQL version: 5.0.51a
 * URL: not public ... local network

Hi there,

I need help, cause I tried serveral times to setup texvc for our MediaWiki. I downloaded and installed the latest version of OCaml and run the 3 steps:

1. Change to the "math" sub-directory of your MediaWiki install 2. Run 'make' (or 'gmake' if GNU make is not your default make). This should produce the texvc executable. 3. Enable $wgUseTeX and $wgEnableUploads in your LocalSettings.php and everything should work.

I've seen no errors during the make but the MediaWiki does still not find the texvc !!! I checked the math folder and there is an texvc...

how can I resolve the problem ???

thank you !!!

Alex

I have some problem with mediawiki-1.13.3-42.fc10.x86_64 on fedora 10 x86_64 and resolved it from http://zaphod.lite.msu.edu/bugzilla/show_bug.cgi?id=5757. The solution was to run texinfo rehash, and run fmtutil-sys --missing. Ivan

How-to restrict access to a Special Page? (Resolved)

 * MediaWiki version: 1.13
 * PHP version:  5.0

Hi,

I'm using the extension http://www.mediawiki.org/wiki/Extension:UploadCSV where I can update pages with an CSV file. As this extension can easily cause vandalism, I want to restrict the access for just "administrators". Like when trying to access this page as a normal user: http://meta.wikimedia.org/wiki/Special:Block

I added:

$wgGroupPermissions['*']['uploadcsv'] = false; $wgGroupPermissions['sysop']['uploadcsv'] = true;

to LoaclSettings.php - but everyone can still access the page. Any ideas what I'm doing wrong?

Thanks, Chris

add to uploadCSV.php

// New user right - required to access Special:Maintenance $wgAvailableRights[] = 'uploadcsv';

function wfUploadCSVStart { global $wgMessageCache, $ExtensionTitles, $wgOut, $wgUser;

# If the user doesn't have the required 'maintenance' permission, display an error if( !$wgUser->isAllowed( 'uploadcsv' ) ) { $wgOut->permissionRequired( 'uploadcsv' ); return; }

add to LocalSettings.php

$wgGroupPermissions['sysop']['uploadcsv'] = true;

Extension Licensing Guidelines
I was wondering if there were licensing guidelines for extensions. I am combined several extensions with MediaWiki and noticed that some of the extensions have licenses that are incompatible with other extensions (e.g. Affero v.3 with a majority of extensions under GPL v.2). There are also several extensions that have no license indicated--is there a default license if you are coding for combination with MediaWiki? I was wondering if there was already guidance or if there could be some written on these topics. Thanks.

Sphinx Search Special Page Query Failed
-->
 * MediaWiki version: 1.15.1
 * PHP version: 5.2.10-2ubuntu6.4 (apache2handler)
 * MySQL version: 5.1.37-1ubuntu5.1
 * URL:

Special pages SphinxSearch (Version 0.7.0)

When I run Sphinx Search Special Page it returns Query Failed If I run the same search from the command line it returns

root@twosinfo:~# /usr/local/sphinx/bin/search --config /usr/local/sphinx/sphinx.conf "Checks" Sphinx 0.9.9-release (r2117) Copyright (c) 2001-2009, Andrew Aksyonoff

using config file '/usr/local/sphinx/sphinx.conf'... index 'wiki_main': query 'Checks ': returned 2 matches of 2 total in 0.003 sec

displaying matches: 1. document=2, weight=1, page_namespace=0, old_id=3, category= page_title=A+_A/R page_namespace=0 2. document=3, weight=1, page_namespace=0, old_id=6, category= page_title=A+_A/P page_namespace=0

words: 1. 'check': 2 documents, 2814 hits

index 'wiki_incremental': query 'Checks ': returned 0 matches of 0 total in 0.000 sec

words: 1. 'check': 0 documents, 0 hits

Request for Enhancement / Extension: List of Tables and Figures

 * MediaWiki version: 1.16
 * URL: http://en.wikipedia.org etc.

I already asked for this on Help talk:Magic words, but supposedly this is the right place for enhancements requests.

Could we please have some new magic words,  and , added for "list of tables" and "list of figures"? Maybe also combinations of those:,  ,   for ToCs with tables or figures or both included, and   for a common list of tables and figures. I'm not keen on the L ("list of"), so if you prefer T ("table of")  and   etc. that is fine with me.

This should improve table and figure captions people write, but might result in follow-up requests for a way to differentiate between a short caption intended for the list of X and a long version to be used with the table or figure. — Christoph Päper


 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

Heading text
I need SMTP settings for wiki..

Create an infobox
I want to create infobox for my page. But I don't know anything for this subject. I wrote an example below.. Is it true for copy + paste for including in my page? Please check it..

[code]

[/code]

When I use codes without; [code] [/code] and [code] [/code] codes

Only letters shown in my page like this: "schema: Bilgi Kutusu" with linked.

What must I do for creating an infobox?

When I tried to create an infobox, I got result like image.. Please check it, and advise me what must I do?

http://i28.tinypic.com/maxjs1.png

[IMG]http://i28.tinypic.com/maxjs1.png[/IMG]

Thanks..

Needed Subeditor
I want to setup subeditor of Wikipedia. It has special chars Wiki Lang, Special chars, IPA, Turkish, Latin, Greek, and more..

http://i25.tinypic.com/2eevo6p.png

How can I put this tool in my system?

Thank you..


 * You need to install the Extension:CharInsert and then to edit at least the page MediaWiki:Edittools on your wiki; for changing the different edittools as seen on WP or even down below this edit window (Standard, Latin, Greek, and so on), you have to edit MediaWiki:Edittools.js, too. Best regards -- JörgM 84.156.146.62 17:09, 4 August 2010 (UTC)

Mediawiki Automatic Remote User Authentication

 * MediaWiki version: 1.15.4
 * PHP version: 5.3.2
 * MySQL version: 5.1.4
 * URL:

We authenticate users on Apache using Active Directory and we want to avoid authenticate again when going to Mediawiki. I have tried the Auth_remoteuser.php extension and it does not work. I have tried both authenticating on the same Mediawiki server and authenticate from a different server and have mod-proxy redirect wiki requests to Mediawiki server but neither worked.

Does this extension work? Do I have to do anything else apart from saving the extension in the 'extension folder' and add the following two lines to LocalSettings.php? require_once('extensions/Auth_remoteuser.php'); $wgAuth = new Auth_remoteuser;

Thanks,

—38.105.147.251 14:34, 19 July 2010 (UTC)

Hi,

we use this Extension for our wiki's either. During the last update from MediaWiki 1.15.1 to 1.15.4 we experienced, that this module stopped working. The last version to work with Auth_remoteuser extension is 1.15.2. I think there has to be done some maintaining to the extension. So, this is what i can say to this extension. A downgrade or self-debugging of the extension is the only thing that can help you now.

Greetz.

We have used it just fine on MW 1.15.4. It stopped working with the upgrade to MW 1.16.0. However, the comments at the top of the code say that it was adapted to be compatible with 1.16, so I don't know why it isn't working. Lkmorlan 20:16, 29 July 2010 (UTC)

I have made a minor update to Extension:AutomaticREMOTE USER so that it works with MW 1.16.0. I had to add  We are using PHP 5.2.13, if that matters. Lkmorlan 16:51, 30 July 2010 (UTC)

Hi, works great now. But it does not work consistent with old versions! We have a UNIX-Kerberos Server which wants it users to login like "username"@"domain". Old versions of Extension:AutomaticREMOTE USER deleted the domain part. The new version does not! There is an option for Windows-Kerberos-Servers to delete the domain-prefix ("domain"/"username"). But this does not help us. Is there a way to fix this?

Editbox in Extension

 * MediaWiki version: 1.16.0beta2
 * PHP version:  	5.2.0-8+etch15 (apache2handler)
 * MySQL version: 5.0.32-Debian_7etch10-log
 * URL: http://www.dairalainn.de/wiki/index.php/Spezial:PrivateMessages/write

Hello,

I'm trying to write a private messages extension for my Mediawiki. For this purpose I need an Edit Box on my "write" page. I don't want to confuse users with presenting another Edit Box than the Mediawikis. Is there any way to implement the buildin Edit Box to an Extension?

Kind regards.

Sven ( sfischer at newavalon dot de )

—89.204.137.156 08:34, 28 July 2010 (UTC)

Problem developing very very very simple extension

 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

I I'm developing a very simple tag extension. You can se that on http://www.mattyfog.com/mediawiki/index.php?title=MediaWiki:Sitenotice. It doesn't work! It show me the code! Why?

—77.242.189.101 20:24, 28 July 2010 (UTC)
 * Unfortunately, without resorting to telepathy to read the source code of your extension, hardly anyone will be able to help. Max Semenik 20:49, 28 July 2010 (UTC)

Sorry, I thought that is a tipical error for newbie :D setHook( 'banner_image', 'efBannerRender' ); return true; } function efBannerRender( $input, $args, $parser, $frame ) { $url = $args['url']; $output = ''; $output .= ''; if(strrpos($input, 'http://') >= 0) {		$image_url = $url; }	else {		/*$image_url = str_replace("extension/banner_image.php", "",realpath(".")).$input;*/ $image_url = realpath(".").'/'.$input; }	$output .= $image_url; $output .= ''; $output .= ' '; return htmlspecialchars( $output ); } You need to change the last line (return htmlspecialchars( $output );) to return $output ;. The htmlspecialchars causes all html to not be interpreted. Also, you have an xss - for example:. You're going to want to do htmlspecialchars on $args['url']. Bawolff 22:25, 28 July 2010 (UTC)

Ok thanks! What I have to do if I want to use this extension in the sidebar?

Custom search-box

 * MediaWiki version: 	1.15.1 (r755)
 * PHP version: 5.2.6-3ubuntu4.5 (apache2handler)
 * MySQL version: 5.0.75-0ubuntu10.5
 * URL: http://www.cockos.com/wiki/index.php/Action_List_Reference

Hi! We're looking for a solution to make a custom search-box for this page: http://www.cockos.com/wiki/index.php/Action_List_Reference I'm thinking of using jQuery, and think I found a good way of adding it: http://www.thusa.co.za/blog/gareth-davies/getting-jquery-running-mediawiki Now, I would like to add the html-part (a box on the right side) with a wikitext like (so it's not editable for the normal user and it don't mess up the edit-field). How do we achieve that?

Thanks! —Gsoler 19:55, 29 July 2010 (UTC)
 * The display of showed me how to make a template -it's a possible solution. But, I'd like to use full html, inline css and add a couple of javascripts. Can I use "" (minus underscore)? Gsoler 06:30, 30 July 2010 (UTC)


 * If you want to use full HTML on wiki pages, see Manual:$wgRawHtml for getting it - but consider the fact that this is NOT recommended for wikis which can be edited by everyone. See also m:Help:HTML in wikitext for allowed html tags in a standard wiki (which tags could be added with inline css), and there is the page MediaWiki:Common.js (also on your wiki) for commonly used javascript. Best regards -- JörgM 84.156.146.62 16:52, 4 August 2010 (UTC)

Extension tag doesn't work in the sidebar!
Hi! I have developet a simple extension tag. It works on the sitenote but it doens't work in the sidebar! For example if I write in the sidebar: ****  in the sidebar appear the code, so my extension isn't called and on the sidebar will appear the text (which is the same I have write): **** Why?
 * MediaWiki version: the last
 * PHP version: 5
 * MySQL version: 5
 * URL:

Sorry for my English. —77.242.189.101 11:46, 2 August 2010 (UTC)

HELP!!!!

Please, it's urgent!


 * Well, even a simple HTML    tag or its wikicode counterpart  ''  are not working in the sidebar - have a look at Manual:Sidebar for maybe changing this (haven't tested this). Best regards -- JörgM 84.156.139.116 17:27, 6 August 2010 (UTC)

Extension: Watchers
I installed the Extension: Watchers and this should create a a new page under special: watchers-list But I dont have a new link to this watchers-list. When I manually enter: http://intranet.de/index.php?title=Spezial:Beobachter or http://intranet.de/index.php?title=Spezial:Watchers there is an error message: page does not exist
 * MediaWiki version: 1.15.4
 * PHP version: 5.2.3 (cgi-fcgi)
 * MySQL version: 5.024 community-nt
 * URL: only reachable in company Intranet

Who can help me? —213.70.219.132 14:12, 2 August 2010 (UTC)

Problems with Extension:UsabilityInitiative (WikiEditor) on IE6

 * MediaWiki version: 1.16.0
 * PHP version: 5.2.4-2ubuntu5.10 (apache2handler)
 * MySQL version: 5.0.51a-3ubuntu5.4
 * URL: non-public

Other details
 * Extensions: not a large number and have actively focused on those marked Stable. They are: CategoryTree, RenameUser, ImageMap, ParserFunctions and FLVPlayerTwo.

I did raise this here: Extension_talk:UsabilityInitiative but I thought perhaps this page would receive more attention and I have included more specific details which might assist in diagnosing the problem.

The issue I have is that if a user with IE6 goes to edit a page, they see no toolbar at all, even though I have installed Vector and the Usability extension and configured it to work - it works fine in IE8 and Firefox 3.n. I didn't expect the full toolbar (i.e. "WikiEditor") to function in IE6 but I was hoping it would still show the basic (original) toolbar, which is the behaviour that Wikipedia has. Is there some setting I should change to make this appear?

I have got Vector set as the default skin. It doesn't make any difference if an IE6 user switches back to Monobook or sticks with Vector - there is still no toolbar. I have not edited the skin files at all - in fact I'm pretty conservative with the configuration in general, testing things and not making numerous changes, so I can't see anything that would obviously lead to problems of this sort, but there must be something I haven't considered.

Any help / suggestions would be gratefully received! —83.244.174.157 15:48, 5 August 2010 (UTC)

Widget not rendering

 * MediaWiki version: 1.15.1
 * PHP version: 5.3.2-1ubuntu4.2 (apache2handler)
 * MySQL version: 	5.1.41-3ubuntu12
 * URL: Intranet Only
 * Widgets: (Version 0.9f)

Hello, I have been working with installing the widget plugin but am experiencing difficulty in getting the plugin to function correctly. Any of the sample code that I have pasted into a page created in the Widget namespace renders blank. Can you offer any suggestions? As a note I have added the following to the bottom of LocalSettings.php:

define('NS_WIDGET',274);

$wgGroupPermissions['sysop']['editwidgets']=true;

require_once("path/to/extensions/Widgets/Widgets.php");

—72.215.183.28 18:40, 5 August 2010 (UTC)


 * You added

require_once(" path/to /extensions/Widgets/Widgets.php");
 * and not

require_once(" $IP /extensions/Widgets/Widgets.php");
 * ? First one won't work, I think. -- JörgM 84.156.136.94 09:17, 7 August 2010 (UTC)

Help with Mediawiki tags

 * MediaWiki version: 1.15.4
 * PHP version: 5.2.13
 * MySQL version: 5.0.90
 * URL:

I'm kind of new to installing and managing MediaWiki. I am very familiar and active with Wikipedia and was hoping to have some of the same capabilities by using MediaWiki. I'm kind of confused though when it comes to tags or extensions. I don't know what I need to do, but I would like to get some of these tags or shortcodes set up that automatically applies a template to the page. Something like what Wikipedia has done with stubs, copy-vio's and a ton of other tags. Any idea where I need to start?, where I might find some already made if possible (where I can edit the text or something and be ready to go)? Any help would be appreciated. Thanks 69.132.106.174 20:55, 6 August 2010 (UTC)


 * Do you think about such templates as en:Template:Stub which is included with   on a stub page? If so, you have to create those templates yourself (or maybe to copy them from the resp. WP ...). Best regards -- JörgM 84.156.136.94 09:09, 7 August 2010 (UTC)