Jump to content

User talk:Fran Rogers/CommonsHelper Helper

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Questions

[edit]

Excellent tool! Any chances to get it working in other language versions too? ja-wiki has a lot of public domain / GFDL pictures. —Ppntori 14:39, 4 April 2007 (UTC)[reply]

OK, after a little work I got it working on JA wikipedia (I don't know Japanese though, had to use Google Translate, so I'm sure the grammar is horrible =P). Internationalization for other Wikipedias should be pretty straightforward now too! Krimpet (talk/review) 19:52, 4 April 2007 (UTC)[reply]
I got it working on nl. It's indeed straightforward. --Erwin85 10:21, 11 April 2007 (UTC)[reply]

I installed the script but it's not working for me. Firefox's error console reports

imageTitleRe.exec(decodeURI(location.href)) has no properties

on line 8. I'm using Firefox 2.0.0.3. Any thoughts? —Remember the dot (talk) 04:42, 27 April 2007 (UTC)[reply]

That's weird, I'm using the same version of Firefox without problems. I changed things around a little bit now though so it doesn't use regexps anymore, give it a try now. Krimpet (talk) 04:52, 27 April 2007 (UTC)[reply]
It's working now. Thanks! —Remember the dot (talk) 02:11, 28 April 2007 (UTC)[reply]

Now it don't work for me (Firefox 2.0.0.3). I get: Warning: Unknown property 'column-count'. Declaration dropped. Source File: http://wiki.riteme.site/w/index.php?title=MediaWiki:Common.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=2678400 Line: 42 but that seems unrelated. It seems to simply have vanished. // Liftarn

That's bizarre, I'm using Firefox 2.0.0.3 too without problems. Exactly what symptoms are occurring? Also is there anything noteworthy about your configuration: any firefox extensions installed, or are you using a skin other than Monobook? Krimpet (talk)
It is. It has work fine until recently. No changes as far as I can tell. http://wiki.riteme.site/wiki/User:Liftarn/monobook.js is empty except for importScript('User:Krimpet/CH2.js');. I click "edit this page" for an image and the button isn't displayed. // Liftarn

Hold on. I got

Error: document.getElementById("toolbar") has no properties
Source File: http://commons.wikimedia.org/w/index.php?title=User:Krimpet/CH2.js&action=raw&ctype=text/javascript&dontcountme=s
Line: 80

in the error console. // Liftarn

Incidentally, the column-count error happens to everyone, whether or not they are using CH2. —Remember the dot (talk) 16:53, 30 April 2007 (UTC)[reply]

I supected that. It was also a warning anyway. // Liftarn
OK, it should now be fixed! Krimpet (talk) 15:12, 1 May 2007 (UTC)[reply]
Thanks, it seems to work now. // Liftarn

Not working

[edit]

I copied this code on the page to my monobook page:

// User:Krimpet/CH2.js
importScript('User:Krimpet/CH2.js');

Why is it not working? Am I supposed to leave something out or add something extra?  hmwith  talk 13:25, 2 July 2007 (UTC)[reply]

Same problem. Firefox 2.0.0.11 on XP 2.0.0.8 Ubuntu Feisty. Where is this button I am looking for? ClemRutter (talk) 14:39, 22 December 2007 (UTC)[reply]

I'm not having any luck either, I'm on Firefox and XP (both up to date I'm sure) Ryan4314 (talk) 15:31, 16 February 2008 (UTC)[reply]

Doesn't work for me using either Firefox 2.00.11 or Safari 3 (both running on Mac OS 10.5.2). In Firefox, the following warnings show up in the error console whenever I load any image page:
Note that the first three errors show up on any Wikipedia page I open (looks like problems with the main CSS). Also, TWINKLE is working just fine, so it can't be a problem with my Monobook setup. Finally, I tried removing TWINKLE to see if that had caused a conflict, but it didn't make a difference. Hope this helps! -- Hux (talk) 18:39, 18 March 2008 (UTC)[reply]

Direct upload?

[edit]

Magnus' CommonsHelper now has an option to upload the file directly using his File Upload Bot commons username, and you don't have to take the time to save the file to your computer first. Can we get a check box for CH2 to allow us to use the direct upload if desired? Personally, I'd rather not fuss with saving and reuploading the file if I don't have to. --Darkwind (talk) 22:06, 31 October 2007 (UTC)[reply]

I agree. That would make it even more useful. Just adding another checkbox for reallydirectupload would do it. Superm401 - Talk 06:11, 12 December 2007 (UTC)[reply]

Images that use {{ShouldBeSVG}} in one of its various redirect forms seem to end up with duplicate templates on Commons. If they use a subcategory, then one of the duplicates keeps it, whilst the other doesn't. I'm not sure what the cause of this problem is, but it's not helping with the backlog in commons:Category:Images that should use vector graphics, as already-subcategorised images are being dumped into the main category. Is anyone able to sort this? Ta, Stannered (talk) 00:23, 19 January 2008 (UTC)[reply]

Bug

[edit]

After the latest revision, I'm getting an error in Firefox 2.0.0.11:

Error: return not in function Source File: http://wiki.riteme.site/w/index.php?title=User%3AKrimpet%2FCH2.js&action=raw&ctype=text/javascript Line: 35, Column: 7

Source Code:

return;

The issue is that you are attempting to return from a function, but there is no function. I suggest instead:

if ( wgCanonicalNamespace == 'Image' )
{
   var page = 'User:Krimpet/CH2.js';
   if(! importedScripts[page] ) {
        importedScripts[page] = true;
        var url = 'http://commons.wikimedia.org/w'
             + '/index.php?title='
             + encodeURIComponent( page.replace( / /g, '_' ) )
             + '&action=raw&ctype=text/javascript';
        var scriptElem = document.createElement( 'script' );
        scriptElem.setAttribute( 'src' , url );
        scriptElem.setAttribute( 'type' , 'text/javascript' );
        document.getElementsByTagName( 'head' )[0].appendChild( scriptElem );
   }
}

This is not tested, but should be correct... Superm401 - Talk 17:23, 25 January 2008 (UTC)[reply]

Unfortunately, this version still doesn't work. I was able to get it working without the check; see User:Superm401/CH2.js. Superm401 - Talk 11:05, 7 February 2008 (UTC)[reply]

Doesn't work :(

[edit]

I get the tab for it above the image but when I click it, just an edit box appears and nothing else. I'm using Firefox 3.1b2pre. -Nard 14:51, 11 October 2008 (UTC)[reply]

Commonshelper itself isn't working half the time, along with a lot of other stuff on the toolserver, for the past week. Hope they get things fixed soon. —Elipongo (Talk contribs) 20:47, 19 October 2008 (UTC)[reply]
I added the script, and got the button on my toolbar. However when I click "move image to commons", it doesn't do anything? (I'm Using Firefox 3.0 on XP) -- $user log (Talk) @ 07:41, 20 October 2008 (UTC)[reply]
I'm having the same experience. I'm on Firefox 3.0.4 Is anything going on regarding this issue? -- Mwanner | Talk 18:23, 14 November 2008 (UTC)[reply]
Me too. I get the edit page with no changes. Rocket000 (talk) 20:35, 8 March 2009 (UTC)[reply]
Maybe it's an issue with Firefox 3. Glacier Wolf 19:14, 9 April 2009 (UTC)[reply]