Project:Support desk/Sections/Extension

__NEWSECTIONLINK__

= Extension Support =

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

Extenstion in subdir doesn't seem to work
I've installed the extention for the parserfunctions. When i install it in the root of extentions, it works fine, but the dir will be a mess.

require_once("$IP/extensions/ParserFunctions.php");
 * 1) require_once("$IP/extensions/ParserFunctions/ParserFunctions.php");

When i install it in a subdir, the whole wiki doesn't work anymore. What do i do wrong?

Can someone help please?

—84.53.68.26 10:58, 15 September 2009 (UTC)

Tree And Menu extension does not work

 * MediaWiki version: 1.15.1
 * PHP version: 5.3.0 (apache2handler)
 * MySQL version: 5.1.37-community-log
 * URL: unreachable (intranet only)

Hello,

I tried to install the TreeAndMenu extension as indicated in this link :

My problem is that when I type this menu for example :

I see exactly what I entered... (like if I entered the code between the nowiki parsers)

In the special page "Special:Version", the TreeAndMenu extension does not appears...Nevertheless, the DynamicPageList extension appears and works...

How can I solve this problem ?

Thank you very much for your help.

Best regards. Damien

—193.57.67.241 12:12, 21 September 2009 (UTC)

png preview successful, but after save page, the png image can not display.
Hi,

I try to display $$formula$$ on Mediawiki-1.15.1, it seems all the converts are successful, I can find the ".png" images in the directory "/wiki/images/math...", but the png images can not display on the wiki page.

I right click(mouse) the error image on wiki page, see the image properties,it shows:

Protocal: HyperText Transfer Protocol Type: Not Available Address(URL): http://sbtamino2.vtt.fi:8088/mediawiki-1.15.1/index.php/images/math/8/9/4/894f312e78ebc09a4e78c11b79cf4a8c.png Size: Not Available Dimentions: 195 * 53 pixels

I am using XAMPP server including Apache 2.2.12, MySQL 5.1.37, PHP 5.3.0.

Please help me with this question. Many Thanks!

Brudy Zhao


 * It sounds like your URLs are misconfigured; properly implement short URLs. —Emufarmers(T 01:38, 2 October 2009 (UTC)

Hi, Emufarmers! Thank you for your hints. I found it was a URL error of these PNG images, in the above image URL, it should not contain "index.php" text. Do you have any experience to remove "index.php" text from the URL?


 * Manual:Short URL —Emufarmers(T 04:51, 3 October 2009 (UTC)

Category "exclusion in print" in Extension:Collection
(Wikimedia sites)
 * MediaWiki version: 1.16alpha-wmf (r57236)
 * PHP version: 5.2.4-2ubuntu5.7wm1 (apache2handler)
 * MySQL version: 4.0.40-wikimedia-log
 * URL: fr:Catégorie:Wikipédia:Exclure lors de l'impression

In the french-speaking Wikipédia, we would like to change the default category MediaWiki:Coll-exclusion_category_title of the extension:Collection (from Exclure lors de l'impression to Wikipédia:Exclure lors de l'impression). I changed the message MediaWiki:Coll-exclusion_category_title but it seems there is no effect : for example, the template fr:Template:Article principal is already present in the PDFs.

I thought there was some delay due to the replication (?) between servers, but I changed the category yesterday and the templates are still present in the PDFs. So is there some other thing to do or do we wait?

Thanks ~ Seb35 11:59, 5 October 2009 (UTC)