Would be great if....

edit
  Unresolved

I could archive in e.g. User talk:Josve05a/Archives/2014/February With this tool. I don't see how.... (tJosve05a (c) 17:01, 14 February 2014 (UTC)Reply

  • Hello Josve05a! I've thought about this, and need to do some more research on this. The way that I've done it is by number, so counter=1 for January, counter=2 for February, etc. How does the page currently flip through the months? Does a current bot update it every month? What about when there is no archiving that happens by bot in a month, as the script does not handle creating new archives very well? — {{U|Technical 13}} (etc) 16:00, 10 December 2014 (UTC)Reply

Problems in archiving

edit
  Unresolved

Here User:EEng used this tool to archive 7 threads one by one but the seven threads arriving here have one thread duplicated twice and one another duplicated once. Resulting in loss of archiving for 3 threads. --Vigyanitalkਯੋਗਦਾਨ 07:15, 18 December 2014 (UTC)Reply

I sure hope this gets fixed since one-click archiving is the best thing since sliced bread.
{{Plain link|url=//tools.wmflabs.org/sigma/summary.py?server=enwiki&max=500&ns=&nosect=on&name={{urlencode:{{BASEPAGENAME}}}}&search={{urlencode:[[User:Equazcion/OneClickArchiver|OneClickArchiver]]}}|name=Check OneClickArchiver edits}}
To any page in your userspace. This will make a link like: Check OneClickArchiver edits. On top of that, if you find it difficult to distinguish one row from another, you can open your error console and add the following code which will color each row either light red or light green for removing and adding content:
$('ul li').each(function(){$(this).css('background-color', $(this).find('span, strong').hasClass('plusminus-neg') ? '#FEE' : '#EFE')});
There should be a difference in 10 bytes caused by prefixing {{Clear}}\n (\n is a newline character and counts as one character) to each section archived on the destination page (prevents section bleed in archives, may subst: it in the future, not sure yet). I'm going to modify the code a little tomorrow so that it should always save the archived copy before clearing the section from the page (this, in itself, should help with the issue). — {{U|Technical 13}} (etc) 06:05, 21 December 2014 (UTC)Reply
Thanks for the effort, Technical 13, but I have no idea what any of that said or means. I still have intermittent probs with Oneclickarchiving, though. SandyGeorgia (Talk) 16:02, 21 December 2014 (UTC)Reply
  • I added the link to the top of your "useful links" box. All you have to do is click on that and you can easily look through your recent (500 entries should be 250 archived sections) and compare the byte size. The difference between a green number and a red one should be the green number is 9 or 10 higher than the red number. Big differences means that what was put on the archive page isn't the same as what was taking off of the section you wanted to archive. Thanks. :) — {{U|Technical 13}} (etc) 16:11, 21 December 2014 (UTC)Reply
  • It's quicker and easier for when you archive 3 or 4 sections on a page to just check that and see if the diff sizes line up. If they do, you don't have to manually go through each revision. :) — {{U|Technical 13}} (etc) 16:41, 21 December 2014 (UTC)Reply

Error messages

edit

I'm now getting visible error messages each time I load talk (and some other) pages that do not have archives:

OneClickArchiver errors!
The following errors detected:
• Unable to find |counter=
• Unable to find |archive=
• Causing the script to abort.
Please, see the documentation for details.

– can this be suppressed please? It's very annoying to see this pop up and then dissappear on pages that don't even need archives, such as short pages, TFD logs, etc. - Evad37 [talk] 03:37, 31 December 2014 (UTC)Reply

  • Evad37, toggling the off using the link or accesskey when you are not using will suppress the messages. See User:Equazcion/OneClickArchiver#Further technical notes for details on toggling. — {{U|Technical 13}} (etc) 03:54, 31 December 2014 (UTC)Reply
    • But is there any way to have it on all the time for when I want it, but not show error messages for pages without archives - like it used be? Perhaps something I could add to my custom CSS? - Evad37 [talk] 04:04, 31 December 2014 (UTC)Reply
      • Not at the moment, and I've been stareing into a screen too long today. The purpose of that 5 second notice is to tell people why there are no `|Archive` linjs on the page instead of having links that didn't archive but instead yelled at you to say it couldn't archive. I really don't like the idea of there being no explaination for a lack of links. — {{U|Technical 13}} (etc) 04:13, 31 December 2014 (UTC)Reply
        • I would really get rid of that error popup on load, Technical13. They won't be useful on the vast majority of page loads by most users, yet they show up all the time. Either get rid of it altogether or perhaps have a tiny permanent link somewhere saying "OneClickArchiver errors" that shows the popup when clicked, so people can troubleshoot when they need to. They shouldn't be showing up on every load. equazcion 10:48, 1 Jan 2015 (UTC)
        • I'm almost to a point where that error popup will be obsolete. The purpose is to tell users why there are no |Archive links since the script now checks for counter and page name before populating the page with the links. I spent all day on the beta version of the script on December 31, 2014, and it now knows how to create new archives with the defined header or the default {{Aan}}, knows how to respect maxarchive size and increment the counter, and in debug beta mode, it can even archive sections on pages that don't have an archival template. The next step is to get it to archive sections on pages like that and then apply a fully populated with defaults . Once that is done, then the links to archive section will always be there and that error message will be obsolete. There is now a much more detailed "on load" error message for those that need it by running the script in "debug=true" mode (same as the on site debug mode) and I'll be adding more details to that. I'm debating logging to the console as well. So, TL;DR on the error message, toggle it off if it really annoys, otherwise be patient and wait for the next release and it will be completely gone. :) — {{U|Technical 13}} (etc) 15:52, 1 January 2015 (UTC)Reply
          • I'm aware of the purpose of the popups. That purpose is only served in a miniscule number of circumstances. It shouldn't be activated on every load, as most people looking at most talk pages will not be wondering why no archive links show up. I've removed the redirect for now from my code page, so users who installed prior to that will be running my old version, at least for now. I'll also be reverting the documentation page. You can host your version independently in your userspace if you like. equazcion 16:02, 1 Jan 2015 (UTC)
            • You do realize that does away with many functions that people asked for such as making sure the script clears the section it archived, being able to archive different header levels, being able to disable the archive links when they are not using it (to prevent accidental archiving). I've made that report "by request" with a link next to the toggle button as you requested. I'm sorry it wasn't quicker, I was only a 1/4 awake when I first responded at 5am this morning. — {{U|Technical 13}} (etc) 16:35, 1 January 2015 (UTC)Reply

Your comment above from one hour ago seemed to indicate that you were not working on getting rid of the auto error popup, and weren't willing to, saying people should toggle it off if it really annoys them, and to otherwise wait til the error messages are no longer necessary. Of course I realize my revert removes your new features, however I'm more concerned when everyone who had installed something I made were suddenly getting an unnecessary and annoying popup that most of them were probably just confused by. It might be best if we kept our versions separate. People can manually install yours if they like; this way they won't suddenly get unexpected/confusing behavior. equazcion 16:48, 1 Jan 2015 (UTC)

Once you post your documentation page let me know and I'll link to it from here. equazcion 16:53, 1 Jan 2015 (UTC)

toggling

edit
  • The installation wasn't as simple as copy this, click here, paste -- actually, I had to remove the old code, save despite a message saying "There are errors on this page/script", etc. Anyway...
  • Where is the toggle button?
  • I used alt-shift-O to toggle, which is fine I guess if I can remember it. But it seems tp me it should be off by default, not on by default. The whole point is prevent accidentally hitting ARCHIVE and if I have to remember to toggle off every time I arrive on a new page, that's useless.

Thanks again for working on this. EEng (talk) 16:20, 1 January 2015 (UTC).Reply

    • Read the section above. Equazcion unilaterally decided to get rid of all the new features. If you wish to ensure that the features are working for you, replace importScript( 'User:Equazcion/OneClickArchiver.js' );// with importScript( 'User:Technical 13/Scripts/OneClickArchiver.js' );// to use my version directly, which has this feature. — {{U|Technical 13}} (etc) 16:35, 1 January 2015 (UTC)Reply
What I've got now is the Technical13 version, and my comments above apply to that. Can't you technical guys move forward together without all this struggling? EEng (talk) 17:01, 1 January 2015 (UTC)Reply
Your issue has nothing to do with our struggle, EEng. Just ignore us :) equazcion 17:05, 1 Jan 2015 (UTC)
  • (edit conflict) I hope so. If I was in his shoes, I might be feeling like my idea was moving forward too fast and possibly in a direction I hadn't thought of. All of the changes I've been adding to the script would probably make me want to do have a knee jerk reaction and dump all the changes and put mine back. While I certainly respect his opinions on the script, many of my changes have been in response to what the community has asked for (although not always in exactly the way they asked for it). I hope that we can get past whatever this is quickly, and am fairly certain that we can move forward together. :) — {{U|Technical 13}} (etc) 17:10, 1 January 2015 (UTC)Reply
...but now that that's settled, EEng was asking questions about your version above, Tech13. He has yours installed and wants to know where your toggle button is, among other things. equazcion 17:14, 1 Jan 2015 (UTC)
  • The link to toggle is on your action bar next to `move` (if you are using vector, it's in the `more` dropdown). You don't have to toggle it for every page load. It remembers what it's last state was. If you turn it off on one page, and then navigate to other pages, it stays off until you turn it back on. The toggle button says "OCA - " and then what the current state is (on|off). If it is on, and the script can't find the headers it needs, there is a link right next to that which says "|Archive" in the header. Clicking on that will give you the popup. You can get a much more detailed popup if needed by reloading the page with ?debug=true or &debug=true (if there is already a ? in the url). Happy archiving! — {{U|Technical 13}} (etc) 17:22, 1 January 2015 (UTC)Reply
OK, this is looking pretty good now. Some suggestions:
  • Instead of OCA - on and OCA - off how about OCA is on and OCA is off. I hate buttons which are ambiguous as to whether they're telling you the current state vs. telling you what state you'll get if you click them.
  • Can the initial state please be off?
  • Maybe instead of OCA how about OneClickArchive or 1ClickArchive or 1ClickArch if those will fit. Each time I see OCA I think Orca.
EEng (talk) 18:17, 1 January 2015 (UTC)Reply
  • I can change it to "is" if that would be clearer (although if you hover on it, it can't be ambiguous as it says "Click to disable OneClickArchiver" or "Click to enable OneClickArchiver", I realize those texts can't be seen on touch devices). No biggie there.
  • Defaulting the script to off would make everyone who has never toggled the script before think the script was completely broken and that would be bad. Now that you've toggled the script once, the setting is entirely what you choose it to be.
  • I can change it to "1CA" if that would be better. People who use other skins don't get the dropdown for `more` and real estate in that bar can be slim, so making it anymore characters would be undesirable. On a lighter note, is thinking Orca really a bad thing considering what it does? :p — {{U|Technical 13}} (etc) 19:13, 1 January 2015 (UTC)Reply
After I toggle it off, if I reload the page it's back on again (Chrome). I doubt that's what you intend, is it? EEng (talk) 20:01, 1 January 2015 (UTC)Reply
Wait a second. Just now, after saving this page, the dropdown say OCA - off (i.e. it's off) but in fact the Archive links are there on each section.Then I click to enable, the popup says "Now enabled", but the Archive links have disappeared! What's going on? EEng (talk) 20:02, 1 January 2015 (UTC)Reply
But now I save the comment I just made, and the Archive links are back. EEng (talk) 20:04, 1 January 2015 (UTC)Reply
Chrome Version 39.0.2171.95 m EEng (talk)
Don't stress yourself. I can live without Orca for a while. Why don't we just see if Chrome fixes itself for us in due course? Use your talents on more pressing matters. EEng (talk) 03:50, 2 January 2015 (UTC)Reply

A drive by....

edit

...to say thank you for your work on the one click archiver. It's a great tool, and it is much appreciated. AtsmeConsult 05:01, 8 January 2015 (UTC)Reply

"No archive counter was detected"

edit

Hi Equazcion, I can't get the archiver to work on Talk:Emma Sulkowicz. It gives me an error message saying no archive counter was detected, but there is one. Hoping you can help. Best, Sarah (SV) (talk) 04:50, 11 February 2015 (UTC)Reply

importScript('User:Equazcion/OneClickArchiver.js'); // Backlink: User:Equazcion/OneClickArchiver.js
with:
{{subst:Iusc|User:Technical 13/Scripts/OneClickArchiver.js|User:Technical 13/Scripts/OneClickArchiver}}
which has much better parameter detection and improved features such as more descriptive edit summaries and soon will respect maxarchivesize. — {{U|Technical 13}} (etc) 11:34, 11 February 2015 (UTC)Reply
Hi Technical 13, thanks for the tip. I'll give that a try. Equazcion's has always worked for me, but there was something odd about the archiving bot set-up on Talk:Emma Sulkowicz. By the time I tried the archiver, I think the bot issue had been fixed, but maybe there was still something different about it. Sarah (SV) (talk) 19:02, 11 February 2015 (UTC)Reply

Bug?

edit

I've reported a possible bug with this tool, at Wikipedia talk:Administrators' noticeboard/Archive 12#Archives problem. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:36, 24 April 2015 (UTC)Reply

And when someone archives a section where the discussion isn't over?

edit

Recently I have seen multiple instances where a contributor has archived subsections that address questions they personally don't think merit discussion, even when the discussion isn't over.

  1. If the page isn't unmanageably long, and is archived automatically, should contributors even be using OneClickArchiver?
  2. If you want to make an additional comment on a subsection someone chose to use OneClickArchiver to archive prematurely, can one paste the whole discussion back in, so your last comment makes sense?
    1. If someone restores a prematurely archived section, should they have manually trim it from the archive?
    2. Will the completed discussion be automatically archived, without redundant duplication in the archive, when the discussion is actually complete?

I don't think the instances of premature archiving I have noticed are conscious acts of POV-pushing, conscious acts of bad faith. They do, however, strike me as very unfortunate instances of unconscious POV-pushing. Geo Swan (talk) 22:26, 9 August 2020 (UTC)Reply