Project:Support desk/Sections/Extension

__NEWSECTIONLINK__

= Extension Support =

I have a new project with Mediawiki..But I need some helps.

 * Moved from User talk:Burgutex per his own request. Diego Grez ¡hablemos! 01:56, 16 July 2010 (UTC)

Hi! I have a new project with Mediawiki..But I need some helps.

How can I change internface like your homepage?

How can I include advanced content editor like your content editor?

Please check my child project: http://www.islamvebiz.net/saadetepedia

Thank you.

Bulent Turgut
 * See Extension:UsabilityInitiative and follow the steps to install it, then you will be able to setup the 'advanced content editor'. To set up the Vector skin, you must update your MediaWiki installation to the last trunk version of the software. Cheers, Diego Grez ¡hablemos! 22:35, 14 July 2010 (UTC)

Thanks Diego. But where will I put this codes in? In localsettings.php? I tried somethings, but site gone away!

Please advise me somethings..

OK. I suggest to download the packages that appear there. Don't forget to backup! Then, extract the files of MediaWiki 1.16alpha on the path of your current installation of MediaWiki. After that, if you have shell access, go to "maintenance/" and run "php update.php". After you have successfully updated MediaWiki, extract the MediaWiki extensions in "extensions/". Add to your LocalSettings.php:

Also, to set up Vector (Wikipedia's skin) as the main skin of your wiki (be sure to have updated the wiki as I explained before), change:

...that is located in your LocalSettings.php. If you don't understand, don't bother to ask again! Cheers, Diego Grez ¡hablemos! 01:58, 15 July 2010 (UTC)

--

Dear Diego,

Thank you for your support.

I donwloaded: Alpha 1.6v + All MediaWiki extensions

I upload Mediawiki to my host and installed it. Also I uploaded extensions to my host, and is opened it in extensions directory.

Added lines below to Localsettings.php in root for editor:

require_once("$IP/extensions/UsabilityInitiative/WikiEditor/WikiEditor.php");

$wgWikiEditorModules['toc']['global'] = true; // Enable the TOC for everyone

$wgWikiEditorModules['toc']['user'] = false; // Don't allow users to turn the TOC on/off individually

Checked line below to Localsettings.php in root for skin:

$wgDefaultSkin = "monobook";

Result as:

http://www.islamvebiz.net/saadetepedia/index.php/Ana_sayfa

Same it.. Nothings are changed!

What must I do?

Thanks

I want these:

[IMG]http://i31.tinypic.com/syxwty.jpg[/IMG]

[IMG]http://i31.tinypic.com/5tuduc.jpg[/IMG]

[IMG]http://i29.tinypic.com/2i94e2s.jpg[/IMG]

Need to run update.php for finishing? If it is necessary, how can I finish to setup?

I changed skin as Vector.

But I couldn't change editor.. I installed wiki in subdirectory. I have tried to change this line:

require_once("$IP/saadetepedia/extensions/UsabilityInitiative/WikiEditor/WikiEditor.php");

But nothing..

It isn't working because you are using "/saadetepedia". Please remove that and use:

require_once("extensions/UsabilityInitiative/WikiEditor/WikiEditor.php");

This time will work, unless your "extensions" directory is located somewhere else. --Diego Grez ¡hablemos! 21:10, 15 July 2010 (UTC)

--

I tried both of 2 ways: with /ssadetepedia and non.. it is not working..

Now it is included under all codes of localsettings.php:

-- --



Need any permissions?
 * No it doesn't. Diego Grez ¡hablemos! 22:06, 15 July 2010 (UTC)
 * Try without the $IP thing. Diego Grez ¡hablemos! 22:09, 15 July 2010 (UTC)

--

No any new action.. Same it.. I don't understand why is shown editor?

Also my admin login is rejected. There is an error:

"Login error: There is an error with login attempt.. Please go bak, refresh your page, and try again later"

(I traslated from Turkish)

"Oturum açma hatası. Giriş oturumunuzla ilgili bir sorun var gibi görünüyor; bu eylem, oturum gaspına karşı önlem olarak iptal edildi. Lütfen "geri" gidin ve geldiğiniz sayfayı yeniden yükleyin, sonra tekrar deneyin. "

Also I have tried to crate a new user.. It gave me same message like above..

-

Diego,

I have reinstalled MediaWiki to my system.. Also I have included codes, but result is same again.. What do you advide me? Could you interest to install it with my admin and FTP account? Or could you advise me what must I do?

Thanks..
 * Hi Burgutex, I don't really know what's the issue here. I'm gonna move this thread to the support desk for comments of developers and more experienced users than me, perhaps they can help you solve this problem. Do you want that? Diego Grez ¡hablemos! 01:49, 16 July 2010 (UTC)

It may be.. Cause anybody can help me for these problem. I want to contact with them.. Thanks..


 * Hi. First of all, you do realized you publicly posted your mysql password up above. You might want to consider changing it. Second, I managed to log in fine, so it appears any login problems you had fixed themselves. Third, the wiki-editor is installed, but disabled by default (you need to enable it in special:preferences currently ). I'm not all that familiar with the extension, but I think you need to add the following to the bottom of localsettings.php to make it enabled by default:

$wgDefaultUserOptions['wikieditor-highlight'] = 1; $wgDefaultUserOptions['wikieditor-preview'] = 1; $wgDefaultUserOptions['wikieditor-publish'] = 1; $wgDefaultUserOptions['usenavigabletoc'] = 1; $wgDefaultUserOptions['wikieditor-template-editor'] = 1; $wgDefaultUserOptions['usebetatoolbar'] = 1; $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; Cheers. Hope that helps. Bawolff 03:15, 16 July 2010 (UTC)

Thank you Bawolff.

I tried to solve problems in last 24 hours nonstop :)

- I reinstalled Mediawiki 1.6v midnight. - I found something when I logged in system and "preferences".. You can change "skin" and "editor" setting in "preferences" only. You couldn't change anything in LocalSettings.php. - Only; you will write some linesin LocalSettings.php below: '' require_once( "$IP/extensions/UsabilityInitiative/WikiEditor/WikiEditor.php" );
 * 1) WikiEditor (Toolbar, Toc, Preview, Highlight)

$wgDefaultUserOptions['wikieditor-highlight'] = 1; $wgDefaultUserOptions['wikieditor-preview'] = 1; $wgDefaultUserOptions['wikieditor-publish'] = 1; $wgDefaultUserOptions['usenavigabletoc'] = 1; $wgDefaultUserOptions['wikieditor-template-editor'] = 1; $wgDefaultUserOptions['usebetatoolbar'] = 1; $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; ''

-

And now:

I want to add two things to my system:

1. The box under the editor which you can use wikipage codes like this "[]".. You can see the box which has wikicodes under "... and you aggree to follow any relevant licencing requirements" words..

2. I want to set SMTP settings up to my system.. How can I do it? I found some copdes and tried somethings, but it is not success.

$wgSMTP = array( 'host'    => "mail.islamvebiz.net", //could also be an IP address 'IDHost'   => "islamvebiz.net", 'port'     => 587, 'auth'     => true, 'username' => "myemail@islamvebiz.net", 'password' => "mypass" );

I am not sure these lines are true.. And where will I put these lines in? Localsettings.php or includes/defaultsettings.php?

My emails are not sent to users.


 * I'm not that familar with mediawiki's smtp support, but assuming those settings are correct, you put it at the bottom of Localsettings.php. You should never ever edit includes/DefaultSettings.php. The click to insert wikicode stuff is part of extension:CharInsert. You can edit that part of the wikipage at mediawiki:Edittools Bawolff 22:45, 16 July 2010 (UTC)

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

Better search

 * MediaWiki version: 1.15.4
 * PHP version: 5.2.5
 * MySQL version: 5.0.51
 * URL: localhost

When I search i get prompts as last searched items. Can be possibility to be filtering existing article names as prompt like Wikipedia? Can install such extension?

—Borneq 20:27, 28 June 2010 (UTC)
 * read Manual:$wgEnableMWSuggest. Bawolff 03:22, 16 July 2010 (UTC)

How to enable templates on Wii-Site.com (resolved; invalid)

 * MediaWiki version: 1.11.2
 * PHP version: 5.1.6
 * MySQL version: 5.0.77
 * URL: http://dmartinaus.wiki-site.com/index.php/Don_Martin_%28Austin%2C_Texas%29


 * URL: http://wiki-site.com

I cannot find any page on www.wiki-sites.com where I can ask for templates to be added or authorized. In fact, no page on Wiki-Sites to ask anyone anything. Do you have any recommendations? There seem to be no sysops, administrators, etc. I've looked for weeks and used templates, and have finally given up on what to do. (FYI - I added a page here that was not "notable" for Wikipedia so want to get the most out of Wiki-Sites or some other alternative wiki if possible without belaboring Wikipedia with non-notable sites. Thanks.

—Dmartinaus 15:33, 1 July 2010 (UTC)


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

—188.61.192.21 10:22, 5 July 2010 (UTC)


 * Hi. This is the wrong place to ask. Templates are just normal pages that start with template: they don't need to be authorized generally. For help with the community at that website you'd have to ask there. We have no control over what happens at that website. Bawolff 03:20, 16 July 2010 (UTC)

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:

Problems with installation of flaggedrevs
Hello!

after adding flaggedrevs to my system I'm no longer able to adit discussions. The reviewing of articles as well as the writing of articles is no problem.

Installierte Software Produkt 	Version

MediaWiki 	1.15.0

PHP 	5.2.10-2ubuntu6.4 (apache2handler)

MySQL 	5.1.37-1ubuntu5.1

Installierte Erweiterungen

Spezialseiten

Flagged Revisions (Version r60856) 	Markierte Versionen 	Aaron Schulz und Joerg Baach

Parser-Hooks

ParserFunctions (Version 1.1.1) 	Erweitert den Parser um logische Funktionen 	Tim Starling

Funktionsaufrufe

efLoadFlaggedRevs und wfSetupParserFunctions

Parser-Erweiterungen (tags)

Parser-Funktionen anchorencode, basepagename, basepagenamee, defaultsort, displaytitle, expr, filepath, formatdate, formatnum, fullpagename, fullpagenamee, fullurl, fullurle, gender, grammar, if, ifeq, iferror, ifexist, ifexpr, int, language, lc, lcfirst, localurl, localurle, namespace, namespacee, ns, numberingroup, numberofactiveusers, numberofadmins, numberofarticles, numberofedits, numberoffiles, numberofpages, numberofusers, numberofviews, padleft, padright, pagename, pagenamee, pagesincategory, pagesize, plural, protectionlevel, rel2abs, special, subjectpagename, subjectpagenamee, subjectspace, subjectspacee, subpagename, subpagenamee, switch, tag, talkpagename, talkpagenamee, talkspace, talkspacee, time, timel, titleparts, uc, ucfirst und urlencode

—Dergi 11:53, 9 July 2010 (UTC)

-- --

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..

wikED problems with converting pasted Word7 tables into wiki code

 * MediaWiki version: 1.15.1
 * PHP version: 5.3.2-1ubuntu4.2 (apache2handler)
 * MySQL version: 5.1.41-3ubuntu12
 * URL: ?

"Convert pasted content to Wiki code" does not work properly for Word 7 (docx) tables. I'm using wikED 0.9.90r (June 14, 2010) which seems to be the latest version. Any tips are very much appreciated. Vielen Dank in advance --heinrich

--Heinrich 10:05, 17 July 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.

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)