Jump to content

User talk:Technical 13/Scripts/OneClickArchiver/Archive 2

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Technical 13 (talk | contribs) at 17:36, 15 June 2015 (OneClickArchiver adding Change in behavior). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Archive 1Archive 2

OCA not appearing

Per your message yesterday to me, I upgraded to your version of the script. Now the archive links are not appearing on article pages. In particular I am trying to use it on Talk:Shooting_of_Michael_Brown This appears to be semi-intentional per the note "[Activates only on pages that] are in "Category:non-talk pages that are automatically signed". Is it truly intended that OCA not be usable on article talk pages any longer? Is there any way to configure this? Gaijin42 (talk) 15:42, 6 January 2015 (UTC)

  • The links are showing up for me on that talk page. First, Gaijin42, which skin are you using? If you are using Vector, please click on the More dropdown between View history and the search bar. Do you see 1CA is on or 1CA is off? If it is off, you need to click on 1CA is off or press Alt+⇧ Shift+o to turn it to 1CA is on. Also, on some pages there will be no archive links because there are no archive templates on that talk page. This will be indicated by there being an |Archive right under 1CA is on. Clicking on that link will give a popup message telling you what parameters the script needs that are missing. I'm working on doing away with this in the future by adding some new features to the script that will allow users to request that user talk pages be archived with the script or to setup the archiving script on the page for them (if there is no reply because they are inactive or if they actively refuse and the page is causing conflicts). The new feature will also allow easy setup of archiving on article talk pages. If 1CA is on and there is no |Archive in the More dropdown menu with it then I'll need to know what your userAgent string is. Thanks. :) — {{U|Technical 13}} (etc) 15:58, 6 January 2015 (UTC)
I am using Vector. When I click on More, the "arrow" icon floats downward (so the tip of the arrow almost touches the menu border), but no menu appears. When I click on the "Page" item just to the right of more, that menu appears correctly (and that arrow does not move). My UA is Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36.
I figured out part of it, I had the "Add page and user options to drop down menus" gadget turned on. When I turn that off, the "more" link now opens correctly, but inside it are only the "move" link. I also tried turning off twinkle which also modifies the menu bar, but it did not make any change.
I have confirmed that the script is in my common.js, and that the OneClickArciver.js appears in the scripts section of my page source (right next to Zhaofeng's reflinks)Gaijin42 (talk) 16:19, 6 January 2015 (UTC)
  • I see what the issue is... You have:
importScript( 'Technical 13/Scripts/OneClickArchiver.js' );// Backlink: [[Technical 13/Scripts/OneClickArchiver]]
in your common.js when you should have :
importScript( 'User:Technical 13/Scripts/OneClickArchiver.js' );// Backlink: [[User:Technical 13/Scripts/OneClickArchiver]]
Make that change and everything should be better. You should also be able to turn that gadget back on. :) No worries, no harm done. :) — {{U|Technical 13}} (etc) 17:26, 6 January 2015 (UTC)

Thanks. This did indeed resolve my issue. I'm very confused, I swear I copied an pasted the entire "subst" line straight out of the instructions so I don't know how that got mixed up. But in any case, thanks again. Gaijin42 (talk) 15:53, 16 January 2015 (UTC)

OCA archiving to wrong page

Resolved

Hi Technical 13,

I was using OCA to archive a section in Wikipedia talk:WikiProject New York City Public Transportation/Unidentified locations. Instead of archiving to Wikipedia talk:WikiProject New York City Public Transportation/Unidentified locations/Archive 1, the first archive of this subpage, the section was archived to Wikipedia talk:WikiProject New York City Public Transportation/Archive 16, the 16th archive of the parent page. Is this an error, or are you working on this? Epicgenius (talk) 01:42, 13 January 2015 (UTC)

I see it's a problem with the way the config is set up. Thanks for archiving that section. Epicgenius (talk) 02:04, 13 January 2015 (UTC)
  • You're welcome. I've fixed the configuration, so you should be good to continue archiving from there. :) When stuff like this happens, it's best to always check that first. :) Happy archiving! — {{U|Technical 13}} (etc) 14:43, 13 January 2015 (UTC)

Minor notes

  • re the warning "don't archive public notification boards": Indeed; I'd like to switch off my OCA for all subjectspaces.
  • I noticed that it is "one click" indeed. Could a confirmation step be added? I think it is good website practice to never have a one-click edit.
  • The font of the link could be less bold.
  • A pleasant and useful tool! -DePiep (talk) 12:53, 16 January 2015 (UTC)
    • Hello DePiep! There is actually already functionality to switch off the script when you are not using it. There is a link (under `more` in vector) next to the `move` link of the toolbar, clicking `1CA is on` will change it to `1CA is off` and the |Archive links should go away. Since navigating to the top of the page all the time to turn it on or off isn't idea, you can also do it with an accesskey by pressing Alt+⇧ Shift+o. It has been tested an works in Firefox. Chrome and Safari have a bug where they don't know what the visibility of objects are, and I haven't found a viable work-around for that flaw yet. I'll be happy to make adjustments when I do. I haven't tested in IE, so am uncertain at this time if/how it works there. I hadn't thought about font/appearance customization, I'll consider it for a future release but there are bigger problems to deal with first. :) Happy archiving! — {{U|Technical 13}} (etc) 14:05, 16 January 2015 (UTC)

Change in behavior

FYI, I had to change {{Archive basics |archive=User talk:Tom.Reding/Archive %(counter)d |counter=1 |maxsize=153600}} to {{Archive basics |archive=User talk:Tom.Reding/Archive 1}} for OCA to work for me. The last time I successfully used it was 00:23, 13 March 2015‎, the day before the last update.   ~ Tom.Reding (talkcontribsdgaf)  01:16, 22 March 2015 (UTC)

  • The script looks for each parameter to be on its own line. I am pretty sure it inherited that trait from its predecessor (which was a lot more strict as to spacing and whatnot). I've fixed your specific instance and I'll look at fixing the source soon. :) — {{U|Technical 13}} (etc) 03:01, 22 March 2015 (UTC)