Download is blocked - it´s working again!

edit

Hi,

when I try to download the file, I always get a "You don't have permission to access /wiki/imageplus.zip on this server." error. Is there another source for downloading the file?

Yeah, where can I find the Download?

Thanks!

Issues with packaging

edit

Hi there, there's some issues with the packaging, the diff here explains it all:

--- imageplus.php.bak   2008-02-23 03:14:07.000000000 -0500
+++ imageplus.php       2008-02-23 16:28:58.427578913 -0500
@@ -92,16 +92,16 @@
        $latestFiles = fnGetLastFilenames( $dbr );
     
     // import image plus javascript functions
-    $out->addScript("<script type=\"text/javascript\" src=\"extensions/imageplus.js\"></script>\n");
+    $out->addScript("<script type=\"text/javascript\" src=\"extensions/imageplus/imageplus.js\"></script>\n");
     
     // import files for autocomplete text field
-       $out->addScript("<script type=\"text/javascript\" src=\"extensions/moacdropdown/js/modomt.js\"></script>\n");
-       $out->addScript("<script type=\"text/javascript\" src=\"extensions/moacdropdown/js/getobject2.js\"></script>\n");
-       $out->addScript("<script type=\"text/javascript\" src=\"extensions/moacdropdown/js/acdropdown.js\"></script>\n");
-    $out->addScript("<style>@import url( extensions/moacdropdown/css/dropdown.css );</style>");
+       $out->addScript("<script type=\"text/javascript\" src=\"extensions/imageplus/moacdropdown/js/modomt.js\"></script>\n");
+       $out->addScript("<script type=\"text/javascript\" src=\"extensions/imageplus/moacdropdown/js/getobject2.js\"></script>\n");
+       $out->addScript("<script type=\"text/javascript\" src=\"extensions/imageplus/moacdropdown/js/acdropdown.js\"></script>\n");
+    $out->addScript("<style>@import url( extensions/imageplus/moacdropdown/css/dropdown.css );</style>");
     
        // html opening tags for image+
-    $out->addHTML( "<a href=\"javascript:showHide()\"><img src=\"extensions/addimage.png\" alt=\"Image Plus\"/></a>" );
+    $out->addHTML( "<a href=\"javascript:showHide();\"><img src=\"extensions/imageplus/addimage.png\" alt=\"Image Plus\"/></a>" );
     $out->addHTML( "<div id=\"imageplus\" name=\"imageplus\" style=\"display:none\">" );
     $out->addHTML( "<h2>Edit Image Options</h2>" );
        $out->addHTML( "<table width=\"900\" cellpadding=\"0\" border=\"0\"><tr>" );

the files are being looked for in "extensions/" but are found in "extensions/imageplus/".

Thanks
Kjikaqawej 21:15, 23 February 2008 (UTC)Reply


fixed

edit

thanks for the note. should be fixed now. --Mayrhuber 18:52, 9 March 2008 (UTC)Reply

Color plate

edit

Hi, Florian Mayrhuber.
Could you also give users a Color plate? When we select a color(e.g white) in the plate, it will give the number of the color (e.g #FFFFFF) in the edit text box. :-)--Roc michael 14:21, 11 May 2008 (UTC)Reply

 

It might be better to make a different extension that handles color pallette. There does not seem to be much correlation between image insertion and color pallette. --Emceelam 17:40, 21 July 2008 (UTC)Reply

Chinese message (Zh_tw)

edit

Chinese people can use the following code between the line 109 and line 170 in the imageplus.php

	// select box for latest files
	$out->addHTML( "<td width=\"130\" align=\"right\">最後上傳: </td>" );
	$out->addHTML( "<td width=\"20\">&nbsp;</td><td width=\"300\" align=\"left\"> " );
	// put all files into select field
	$out->addHTML( "<select onchange=\"createMarkup(this)\" id=\"latestFiles\" name=\"latestFiles\" 
					style=\"width:280px;border: 1px solid\">" );    
	$out->addHTML( "<option value=\"Latest Files\" style=\"color:#000000;\">none</option>" );
    while ( $row = $dbr->fetchObject($latestFiles) )
    {
		$option = $row->img_name . " ( " . $row->img_width . "x" . $row->img_height . " ) ";
		$out->addHTML( "<option value=\"$option\" style=\"color:#000000;\">$option</option>" );
    }
    $out->addHTML( "</select></td>" );
	$out->addHTML( "<td width=\"130\" align=\"right\">位置: </td>" );
	$out->addHTML( "<td width=\"20\">&nbsp;</td>" );	
	// radio buttons for left/center/right
	$out->addHTML( "<td width=\"75\" align=\"left\">" );
	$out->addHTML( "<input type=\"radio\" id=\"left\" name=\"position\" value=\"left\" onchange=\"createMarkup(this)\"/>左" );
	$out->addHTML( "</td><td width=\"75\" align=\"left\">" );
	$out->addHTML( "<input type=\"radio\" id=\"center\" name=\"position\" value=\"center\" onchange=\"createMarkup(this)\"/>中" );
	$out->addHTML( "</td><td width=\"75\" align=\"left\">" );
	$out->addHTML( "<input type=\"radio\" id=\"right\" name=\"position\" value=\"right\" onchange=\"createMarkup(this)\"/>右" );
	$out->addHTML( "</td><td width=\"75\" align=\"left\">" );
	$out->addHTML( "<input type=\"radio\" id=\"nonea\" name=\"position\" value=\"none\" onchange=\"createMarkup(this)\"/>無" );
	$out->addHTML( "</td></tr><tr>" );
	// autocomplete text field
	$out->addHTML( "<td width=\"130\" align=\"right\">搜尋圖像: </td>" );
	$out->addHTML( "<td width=\"20\">&nbsp;</td><td width=\"300\" align=\"left\"> " );
	$out->addHTML( "<input id=\"files\" style=\"width:280px;\" onmouseout=\"createMarkup(this)\" value=\"Search Image\" class=\"dropdown\" autocomplete=\"off\" acdropdown=\"true\" autocomplete_list=\"array:aImages\" 
					autocomplete_format=\"formatFiles\" autocomplete_matchbegin=\"false\"></td>");
	// radio buttons for border/thumb/frame
	$out->addHTML( "<td width=\"130\" align=\"right\">型態: </td>" );
	$out->addHTML( "<td width=\"20\">&nbsp;</td>" );	
	$out->addHTML( "</td><td width=\"75\" align=\"left\">" );
	$out->addHTML( "<input type=\"radio\"  name=\"format\" id=\"border\" value=\"border\" onchange=\"createMarkup(this)\"/>邊框border" );
	$out->addHTML( "</td><td width=\"75\" align=\"left\">" );
	$out->addHTML( "<input type=\"radio\" name=\"format\" id=\"thumb\" value=\"thumb\" onchange=\"createMarkup(this)\"/>縮圖thumb" );
	$out->addHTML( "</td><td width=\"75\" align=\"left\">");
	$out->addHTML( "<input type=\"radio\" name=\"format\" id=\"frame\" value=\"frame\" onchange=\"createMarkup(this)\"/>外框frame" );
	$out->addHTML( "</td><td width=\"75\" align=\"left\">" );
	$out->addHTML( "<input type=\"radio\" name=\"format\" id=\"nonef\" value=\"none\" onchange=\"createMarkup(this)\"/>無" );
	$out->addHTML( "</td></tr><tr>" );
	$out->addHTML( "<td width=\"130\" align=\"right\">標題: </td>" );
	$out->addHTML( "<td width=\"20\">&nbsp;</td><td width=\"300\" align=\"left\"> " );
	$out->addHTML ( "<input type=\"text\" value=\"Caption\" id=\"caption\" style=\"width:278px;border: 1px solid\" 
		maxlength=\"40\"/ onkeyup=\"createMarkup(this)\" onmouseout=\"新增本項標記\"></td>");
	$out->addHTML( "<td width=\"130\" align=\"right\">尺寸: </td>" );
	$out->addHTML( "<td width=\"20\">&nbsp;</td>" );	
	$out->addHTML( "<td colspan=\"4\" width=\"300\" align=\"left\">&nbsp;<input type=\"text\" value=\"0\" id=\"size\" 
	size=\"23\" maxlength=\"12\" onkeyup=\"createMarkup(this)\" onmouseout=\"createMarkup(this)\"/>  像素 (px, 寬 x 高)</td>" );
	$out->addHTML( "</tr></table>" );
	
	// preview markup and insert button
	$out->addHTML( "<table width=\"900\" cellpadding=\"0\" border=\"0\"><tr>");
	$out->addHTML( "<td width=\"130\" height=\"50\" align=\"right\">Wiki標記:</td>" );
	$out->addHTML( "<td width=\"20\">&nbsp;</td>" );
	$out->addHTML( "<td width=\"430\" align=\"left\">" );
	$out->addHTML( "<input type=\"text\" value=\"Show Preview\" id=\"markup\" size=\"67\" maxlength=\"100\" /></td>" );
	$out->addHTML( "<td width=\"20\" align=\"center\">&nbsp;</td>" );
	$out->addHTML( "<td width=\"300\" align=\"left\"><input type=\"button\" style=\"width:164px\" id=\"insert\" 
	value=\"插入標記並關閉\" onclick=\"insertMarkup()\"/>" );
	$out->addHTML( "</td></tr></table></div>" );

--Roc michael 22:41, 11 May 2008 (UTC)Reply


Unfortunately, any such a patch is tied to a specific version. Whenever the extension is updated, the patch becomes useless. Would it not be better to make a patch that ties into the mediawiki localization mechanism?

Does the author still maintain this extension? I notice an obvious php syntax error when I ran this extension. --Emceelam 17:32, 21 July 2008 (UTC)Reply

Couldn't get it to work

edit

I got a link image_plus but not a button. Javascript is ShowHide. Doesn't pop up anything.

Firefiox 3 browser.


Also couldn't get it to work

edit

To above: What version of MediaWiki?

I don't even have an image_plus link. IE7 and Firefox 2.0.0.9, MediaWiki 1.9.

19 oct 2012 : works for me in MediaWiki 1.19.1, PHP 5.2.17, MySQL 5.5.25a-27.1-log

Last uploaded list does not work

edit

Hi

I think you should change the code a bit if you want to display last uploaded list properly. Now it displays oldest uploads, it is more usable if it shows the newest instead.

Find row 203 from imageplus.php:

array(), $fname, array('ORDER BY' => 'img_timestamp', 'LIMIT' => '10'));// add. SQL options

And simply add DESC:

array(), $fname, array('ORDER BY' => 'img_timestamp DESC', 'LIMIT' => '10'));// add. SQL options

Best regards,

--JuhaV 07:49, 30 October 2008 (UTC)Reply

19 oct 2012 - this change worked for me (extension is almost worthless to me without this change.)

Question

edit

Florian,

Do you have an email address? I was hoping to see your interest on building another extension..Thanks

insert markup not working

mark up

edit

insert mark up not working

Internationalization

edit

It would be great if this extension used Internationalization : you could get the current language used in mediawiki, look in a folder if the corresponding language file exist, and if not, default to the english one.

Internationalization and generalized interface to include files

edit

With the dropdown and autocomplete this extension is super useful for including files generally as well as images. I updated it to show the image interface only when an image with jpg, png, or gif extensions is chosen. I also added the internationalization file and translations in German. This updated code is here: User:Cm#Updates_to_ImagePlus --Cm 15:18, 29 October 2009 (UTC)Reply

Features to add

edit

I would love to see this extension include two more fields 1. A search button, to view all uploaded images (maybe a link to Special Pages: List Files), and to choose one to add. 2. A field where the user can upload thier own image.

error

edit

Notice: Undefined variable: fname in C:\wamp\www\mediawiki-1.16.2\extensions\imageplus\imageplus.php on line 241 Why do I get this message when I use this extension?

Return to "ImagePlus" page.