Jump to content

Extension talk:Referenceselector/Archive 1

Add topic
From mediawiki.org

Problem with 7-zip

[edit]

Well, if its just a question of 'unzipping' the file, then this process does not work with 7-zip. Jean-Lou Dupont 20:12, 2 November 2007 (UTC)Reply

cant reproduce - if I download the file behind the link (size: 5218 bytes) and test using the tools 7z and unzip(operating system: linux) i can extract just fine. (unzip produces a warning caused by the png-"garbage" at the beginning of the file). I have also seen a video demonstration of someone using the windows version of 7-zip to extract such an embedded zip file. --Mjs 20:41, 2 November 2007 (UTC)Reply

Why png?

[edit]

Is there any particular reason to embed a zip file within a png? At first I thought it was a broken link. I wouldn't mind an inconvenienced user experience if I gain something in exchange, but this choice of source code distribution has me mystified. --Emceelam 22:43, 18 July 2008 (UTC)Reply

I get errors adding images

[edit]

When I go to add images the popup window has a set of errors which I am unsure of how to fix. Any ideas?

Notice: Undefined property: stdClass::$img_user_text in D:\Inetpub\alaskamountainforum\wiki\includes\SpecialImagelist.php on line 97

Notice: Undefined property: stdClass::$img_user_text in D:\Inetpub\alaskamountainforum\wiki\includes\SpecialImagelist.php on line 97

Notice: Undefined property: stdClass::$img_user_text in D:\Inetpub\alaskamountainforum\wiki\includes\SpecialImagelist.php on line 97

Notice: Undefined property: stdClass::$img_user_text in D:\Inetpub\alaskamountainforum\wiki\includes\SpecialImagelist.php on line 97

so you are just opening the popup window and didnt change anything in the code? which version of MediaWiki are you using? And does this message also come on your Special:Imagelist page? --Mjs 10:28, 8 December 2007 (UTC)Reply

I got the same problem on my machine too. I am using mediawiki 1.12. Problem occurs on Special:ReferenceSelectorPage, but not on Special:Imagelist. --Emceelam 23:28, 18 July 2008 (UTC)Reply

[edit]

As Special:Version shows, the extension seems to be installed fine. But the icon is not shown in the Page-editor. :-( Do you have an idea? -Kaizen-84.60.32.49 22:18, 29 December 2007 (UTC)Reply

I found out, that there is a problem with the editpage.js file, which doesn't work with the IE. The file can be improved like this:
/**
* @author mjs & Kaizen
* @license GPLv2+
*/
var c7rs_basedir = wgScriptPath + '/extensions/referenceselector';
function c7rs_init() {
var Etoolbar = document.getElementById('toolbar');
var Ebu = document.createElement('img');
Ebu.src = c7rs_basedir + '/gfx/button_rs.png';
Ebu.style.cursor = "pointer";
// Ebu.addEventListener('click', c7rs_show, false);
if (Ebu.addEventListener) {//mozilla
Ebu.addEventListener('click', c7rs_show, false);
}
else if(Ebu.attachEvent){//IE
Ebu.attachEvent("onclick", c7rs_show);
}
Etoolbar.appendChild(Ebu);
}
function c7rs_show() {
var url = wgArticlePath.replace("$1", "Special:ReferenceSelectorPage");
window.open(url, 'c7rs_popup',
"width=500,height=400,left=0,top=0,location=no,menubar=no,toolbar=no,status=no,resizable=yes,scrollable=yes,scrollbars=yes");
}
if (window.addEventListener) {//mozilla
window.addEventListener('load', c7rs_init, false);
}
else if(window.attachEvent){//IE
window.attachEvent("onload", c7rs_init);
}

-Kaizen-88.64.88.234 20:29, 1 January 2008 (UTC)Reply

I've applied the changes - never tested in MSIE as i don't even have access to one ;) --Mjs 16:06, 20 January 2008 (UTC)Reply

The extension's entry in SpecialPages list looks wrong

[edit]

The extension is at the top of the list, it looks like this:

<referenceselectorpage>