Jump to content

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

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


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)

Only on users' talk page

Leaving this here in case this is useful for anyone else.

I didn't want risk hitting an archive button on a page where I shouldn't. The below should restrict loading the script to the users' own talk page.

if (mw.config.get( 'wgCanonicalNamespace' ) === 'User_talk' && mw.config.get( 'wgUserName' ) === mw.config.get('wgRelevantUserName')) {
	importScript( 'User:Technical_13/Scripts/OneClickArchiver.js' );// Backlink: [[User:Technical_13/Scripts/OneClickArchiver]]
}

Let me know if there is a better way!

Cheers. — Strongjam (talk) 17:43, 30 March 2015 (UTC)

Strange error message, at least it's strange to me...

I just updated to the newest script, and when I hit archive, the following error message popped up (Safari v8.06):

OneClickArchiver errors!
The following errors detected:
  Unable to find |headerlevel=
     Default value: 2
  Unable to find |archiveheader=
     Default value: "{{Aan}}"

It archived the section I wanted to archive with seemingly no issues other than the error message.  ???? Is there something I need to do to fix it? AtsmeConsult 16:23, 10 May 2015 (UTC)

  • What OS (Mac OSX, Win7, X11(linux/android), etc)? Those messages are just to inform you the since information is missing from the archival template, the script assumed those values as needed. Usually they don't show up unless asked for. — {{U|Technical 13}} (etc) 16:42, 10 May 2015 (UTC)
  • My fault - I went back into common.js to make sure I added the script correctly and found where I left part of the old script in tact - deleted it and all works fine. Sorry to have bothered you. (PS: Mac OS X Yosemite) As you probably know by now, code is not my forté. Thanks for all you do. WP would be downgraded a notch without you. 🌹AtsmeConsult 16:48, 10 May 2015 (UTC)

Hi could someone explain how to use the OneClickArchiver?

Hi, could someone explain how to use the OneClickArchiver? I followed the scant instructions given and nothing really happened. How do I use this? Thanks. Softlavender (talk) 09:13, 11 May 2015 (UTC)

UPDATE: Never mind, I've figured it out. Softlavender (talk) 09:31, 11 May 2015 (UTC)

Changing default sequence to match numbered archives

Resolved

Ok - the archive counter on my user TP is currently set to #10. The archive counter on a different TP I'm archiving is currently set to #2. When I clicked on the archive button beside the sections it didn't archive to 2, it created an archive for 10 which is my TP counter How do I get the archiver to sync up to the correct archive number on a given page instead of following my TP sequence? Atsme📞📧 21:09, 27 May 2015 (UTC)

@Technical 13: ^^ does the issue I described above sound anything like the issue John Carter had over at AN? Atsme📞📧 02:04, 29 May 2015 (UTC)
  • Sorry Atsme, I had been away and then as soon as I got back I had other stuff to deal with. This post is kind of stale, and I'm not sure what you are pointing to on ANI. Could you elaborate or link me to the archived discussion please? I apologize in advance for being kind of scatterbrained right now. — {{U|Technical 13}} (etc) 16:11, 15 June 2015 (UTC)
Ok - from memory - (uh oh) - I have archiver going well on my user TP. No issues. I created and co-authored an essay, but someone else created the TP for the essay before I got a chance to do it. On Safari, the (archive) button never goes away - it is always on regardless of default settings. The archive number on my user TP is on #10. The archive settings on the essay TP is #2. When I clicked the archive button to archive the discussion on the essay TP, instead of archiving it to #2, it archived it to #10. How do I make archiver work with archive number sequencing relative to the page I'm archiving instead of defaulting to my TP sequence? Atsme📞📧 17:21, 15 June 2015 (UTC)
  • Atsme, can you give me a link to the talk page so I can see the header used? The script always uses whatever is on the page it is on, it should never be using the one that is on your talk page, so I'm very confused and I'm guessing a link to see it will make it clear. :) — {{U|Technical 13}} (etc) 17:26, 15 June 2015 (UTC)
Okay, found it based on your editing history, and replied there. Happy archiving! — {{U|Technical 13}} (etc) 17:35, 15 June 2015 (UTC)

Multi-click archiver?

Just a suggestion but if possible maybe the ability to click several sections at once? Rather than individual edits for each thread, which can fill up watchlists. –xenotalk 23:07, 18 May 2015 (UTC)

  • xeno, it's already on the todo list. I'm actually quite busy with school and RL right now, but hopefully I will have a little more time to work on that later. I don't know if you noticed, but the new feature I added so that it can respect maxarchive size and update the counter actually runs as two separate edits. Once I have time to rework it and merge those into a single edit, then I'll be in a much better place to allow archiving multiple sections in one shot. I also need to figure out how that will work in regards to max size restrictions, should it try to put as many sections in the current archive as possible and then start the new one or go the easier root of just putting everything in the current archive and increasing the index? Should it check if the current archival will push it over the limit and if so increment before archiving? Currently it puts it in the current and then increments, but I'm worried that doing that for multiple sections may result in pages that are way too big for a single archive. Anyways, it is on the todo list, but I have a lot to think about as to what and how and no time at the moment. Thanks for reminding me about it though and letting me know it is still a desired feature. :) — {{U|Technical 13}} (etc) 23:54, 18 May 2015 (UTC)

Error

Hi @Technical 13:. I installed your script at Meta and tried to archive m:RFH, but it seems that it does not respect MiszaBot's config template, as it did archived the thread at m:Meta:Requests for help from a sysop or bureaucrat/Archive 1 (now deleted). Maybe I did something wrong? Best regards. MarcoAurelio (talk) 17:59, 8 June 2015 (UTC)

  • MarcoAurelio, that was because you tried to use it on a page that uses dated archives instead of indexed archives and 1CA isn't set up to be able to handle dated archives yet. It may be something I add in the future, if I continue editing at all. — {{U|Technical 13}} (etc) 16:09, 15 June 2015 (UTC)
  • Thank you. I didn't realise it wasn't set up to deal with dated archives yet. Hope that you continue editting, your work is appreciated. Best regards. MarcoAurelio (talk) 22:14, 15 June 2015 (UTC)

Hello Technical 13! Is there a way to get OneClickArchiver to work for individual entries on WP:RFPP? It even seems to work for the individual entries at Wikipedia:Administrators' noticeboard/Requests for closure. But, for some reason, no dice at RFPP... Thanks in advance. --IJBall (contribstalk) 20:31, 18 June 2015 (UTC)

  • You'd have to use {{Archive basics}} and set |headerlevel=3 (not very well documented it seems). I'll also note the RFPP is on a rolling archive, and I don't know what effect manually archiving sections would have on the way the special archiving bot for that page will react to it; please check with that bot operator before using it there. If that operator says it's a bad idea, you may want to add the page to Category:Pages that should not be manually archived. — {{U|Technical 13}} (etc) 02:53, 19 June 2015 (UTC)
  • Thanks for the response. Bots seem to be working again, so this is a less pressing issue again. I may follow up on this later with the bot operator if this question continues to remain of interest... --IJBall (contribstalk) 19:25, 19 June 2015 (UTC)

Not true.

"Clicking the archive link on pages without a MiszaBot configuration or (with both required parameters) will not successfully perform an archive." Well, I tried it at Wikipedia_talk:Bare_URLs, and it did something, but it's messed up. But I'm not changing the documentation because this isn't a good thing. Taking a break for now. Don't know what to try next.--Elvey(tc) 23:20, 15 January 2016 (UTC)

Move it to meta?

Hi @Technical 13:. Meh to the ban! Would you consider moving this baby to Meta (or MW) so it is a better global script? There are so many places that can do with the value of this script (and your valuable scripting) and with it being updated rather than tucked away here at enWP. — billinghurst sDrewth 01:57, 27 April 2016 (UTC)

OneClickArchiver occasionally mangles a link if the result is to long to fit in at edit summary

As seen here:[1] --Guy Macon (talk) 21:04, 18 July 2016 (UTC)

Won't load at WP:ANI

1CA never loads when I go to ANI. It always says it's unable to find |headerlevel=. Is there something wrong with the code in my User:Linguist111/common.js? Linguist If you reply to me here, please add {{ping|Linguist111}} to the start of your message 16:53, 13 January 2017 (UTC)

It hasn't been working for me anywhere for several months now. I see that I am not alone. -- Kautilya3 (talk) 20:11, 13 January 2017 (UTC)

It archived the wrong discussion.

I've used this numerous times in the past without issue, but today, I tried to archive a small discussion on ANI, but instead, I archived a large (and ongoing) discussion right below it. I thought maybe that I did a misclick, but the edit summary shows the heading of the discussion that I tried to archive, rather than what it actually did. Jauerbackdude?/dude. 19:17, 25 April 2017 (UTC)

My guess is that this can happen when someone's created or deleted another thread somewhere else on the same page sometime between when you retrieved the page and when you clicked <archive>. I think it's happened to me once or twice (out of thousands of uses). EEng 19:58, 25 April 2017 (UTC)
I'm thinking this is another example: [2] EEng 03:54, 28 December 2017 (UTC)

Surprising error

I'm not sure if I did something wrong (I don't user OneClickArchiver much) or if this is a bug, but when I tried to archive some sections at Talk:List of bean-to-bar chocolate manufacturers it moved the comments to a user talk page, such as User talk:List of bean-to-bar chocolate manufacturers/Archive 1. Just thought someone might want to look into it. Deli nk (talk) 22:40, 21 July 2017 (UTC)

1-Click is the greatest thing since sliced bread, but it sure has some weirdo bugs. EEng 03:16, 22 July 2017 (UTC)

Suggested code change

There is a section that is messing up the edit summaries due to the length of the edit summary generated. I suggest that this:

new mw.Api().postWithToken( 'edit', {
    action: 'edit',
    section: sectionNumber,
    pageid: pageid,
    text: '',
    summary: '[[User:Technical 13/1CA|OneClickArchiver]] archived [[Special:Diff/' + archived.edit.newrevid + '|' + sectionName + ']] to [[' + archiveName + '#' + sectionName + '|' + archiveName + ']]'

...be changed to this:

new mw.Api().postWithToken( 'edit', {
    action: 'edit',
    section: sectionNumber,
    pageid: pageid,
    text: '',
    summary: '[[User:Technical 13/1CA|OneClickArchiver]] archived [[Special:Diff/' + archived.edit.newrevid + '|' + sectionName + ']]'

This will shorten it so that all the links work. Additionally, the link at the Special:Diff shows you where it was archived, so the second part is essentially duplication. — nihlus kryik  (talk) 17:56, 2 September 2017 (UTC)

Formalizing request since there has been no objection in the last three weeks. Thanks. — nihlus kryik  (talk) 00:35, 23 September 2017 (UTC)

@Nihlus Kryik: please confirm the line number in the code? — Martin (MSGJ · talk) 06:24, 25 September 2017 (UTC)
@MSGJ: Begins at 342 and ends on 347. — nihlus kryik  (talk) 06:28, 25 September 2017 (UTC)
Done Thanks that is very helpful. I hope I've deployed your fix correctly — Martin (MSGJ · talk) 06:32, 25 September 2017 (UTC)
@MSGJ: Just tested it out. Appears to work fine. Thanks! — nihlus kryik  (talk) 06:37, 25 September 2017 (UTC)

Can the above be reversed? With the increased edit summary length, I don't believe this is an issue any longer. Nihlus 10:28, 15 October 2018 (UTC)

DoneCYBERPOWER (Around) 12:13, 15 October 2018 (UTC)

Create an archive counter?

Sometimes I try see the following message when I try to archive sections: "No archive counter was detected on this page, so archiving was aborted. See User:Equazcion/OneClickArchiver for details." Is there a way to automatically create an archive counter? I'm not even sure I know how to do this manually... ---Another Believer (Talk) 15:11, 14 September 2017 (UTC)

@Another Believer: It uses Miszabot's configuration when determining how to archive something. (See User:MiszaBot/config.) A page has to be configured before you can use the tool. You can also use {{Archive basics}}. — nihlus kryik  (talk) 16:20, 14 September 2017 (UTC)
I'll take a look, thanks! ---Another Believer (Talk) 21:52, 14 September 2017 (UTC)
@Nihlus Kryik: I am still trying to understand. Perhaps if I see how the code is added once, I can replicate in the future. Are you willing to demonstrate how this works at Talk:List of songs recorded by Sia Furler? ---Another Believer (Talk) 22:12, 14 September 2017 (UTC)
@Another Believer: Added. — nihlus kryik  (talk) 03:37, 15 September 2017 (UTC)
@Nihlus Kryik: Much appreciated. I will review and bookmark for future reference. ---Another Believer (Talk) 03:40, 15 September 2017 (UTC)

Is OneClickArchiver no longer working? I haven't been able to use it for a few days, so I updated User:Another Believer/common.js (hopefully correctly), but still don't see the ability to click on links to archive talk page discussions. ---Another Believer (Talk) 22:18, 11 October 2017 (UTC)

@Nihlus: I'm sorry to bother again, but might you be able to check real quick if OneClickArchiver is "installed" correctly at User:Another Believer/common.js? I'm still not seeing the "archive" links on any talk pages. ---Another Believer (Talk) 01:48, 10 November 2017 (UTC)
@Another Believer: It seems fine. Remember, the archive link will only show on pages that have archiving set up, like I did above. Nihlus 02:26, 10 November 2017 (UTC)
@Nihlus: Yes, I am looking on pages I should be able to archive. Thanks for checking. ---Another Believer (Talk) 02:44, 10 November 2017 (UTC)
@Another Believer: What pages are you looking at that don't have them? Nihlus 02:46, 10 November 2017 (UTC)
@Nihlus:Well, for example, I just added a counter to Talk:Legality of cannabis by country. But I don't see links for archiving sections. ---Another Believer (Talk) 02:48, 10 November 2017 (UTC)
@Another Believer: I see them. There might be something wrong with your portlet code, so I would try moving the importScript to the top of the page in your common.js file. Nihlus 02:56, 10 November 2017 (UTC)
@Nihlus: Thanks for the suggestion. I just tried, but still don't see the archive links. I'll keep tinkering with the common.js page. ---Another Believer (Talk) 03:06, 10 November 2017 (UTC)

I am still unable to use this tool. If someone thinks they'd be able to help me, please ping me or post a note to my user talk page. Thanks! ---Another Believer (Talk) 02:03, 17 February 2018 (UTC)

Awesome

I just came across someone else using this tool, and dude it is great! Thanks!— TAnthonyTalk 15:58, 17 October 2017 (UTC)

I'm about to give it a go as well. C. W. Gilmore (talk) 02:45, 11 November 2017 (UTC)

Archiving to wrong subpage

Hi, I tried archiving everything at Talk:Fergie (singer) today however instead of it going to Talk:Fergie (singer)/Archive 3 it was going to Talk:Fergie (singer)/Archive 1,
Is there any reason for this ?,
Thanks, –Davey2010 Merry Xmas / Happy New Year 16:54, 31 December 2017 (UTC)


I just archived a section of the Protests against Donald Trump talk page, and the section was sent to Archive 1 instead of Archive 4. I should also note, I still only see the ability to archive talk page sections once in a blue moon, for unknown reasons. ---Another Believer (Talk) 15:30, 26 July 2018 (UTC)

Counter increments every time?

I tried to use this script, but every time I click "Archive", it increments the archive counter by 1 and creates a new archive page to hold the item I'm archiving. e.g. There was one archive page for Talk:The Black Eyed Peas, which had only a single item. When I clicked "Archive", it created a new Archive_2 page for that single item (diff). Am I doing something wrong? I followed the configuration instructions--I added

{{subst:Iusc|User:Technical_13/Scripts/OneClickArchiver.js|User:Technical_13/Scripts/OneClickArchiver}}

...which expanded to:

importScript( 'User:Technical_13/Scripts/OneClickArchiver.js' ); // Backlink: [[User:Technical_13/Scripts/OneClickArchiver]]

(I manually moved the item back to Archive_1, and deleted the spruiously-created Archive_2 page.) Thanks! — Narsil (talk) 00:15, 14 June 2018 (UTC)

Yeah, what's going on ? - FlightTime (open channel) 23:13, 20 June 2018 (UTC)
Update: I've been using it recently and no issues so far. - FlightTime (open channel) 15:57, 26 July 2018 (UTC)

Archived to an unexpected place

See [3]. EEng 21:14, 19 July 2018 (UTC)

Does 1CA only work if your archives use the number format?

I still can't figure out how to get 1CA to archive to User talk:Mythdon/Archive B.—Mythdon (talkcontribs) 09:53, 24 October 2018 (UTC)

Apparently. Is there a reason you want to make it harder to access your archives by using the alphabet. Just use the numbers. Everything is built around numbers.—CYBERPOWER (Trick or Treat) 13:16, 24 October 2018 (UTC)
I suppose you're right.—Mythdon (talkcontribs) 04:28, 25 October 2018 (UTC)

Anyone else having trouble with 1CA?

I've cleared my cache, but the "Archive" button still won't show up, even for pages like WP:ANI.—Mythdon (talkcontribs) 07:01, 25 October 2018 (UTC)

Same. Most of the time, archive links do not display for me, but now and then they do. I've asked so many people about this, but still don't know what I'm doing wrong. The tool is so useful, I wish it worked for me regularly. ---Another Believer (Talk) 13:12, 25 October 2018 (UTC)
Thank you for the reassurance. I wasted so much time inflating my edit count trying to figure it out.—Mythdon (talkcontribs) 13:13, 25 October 2018 (UTC)
Works for me.—CYBERPOWER (Trick or Treat) 23:26, 25 October 2018 (UTC)
Links are showing up for me now. Don't know what was going on yesterday.—Mythdon (talkcontribs) 23:33, 25 October 2018 (UTC)

OneClickArchiver still active

I just saw OneClickArchiver archive pages over at Talk:Gravity (2013 film).

Please disable this functionality - the user is blocked but it appears that anyone can still invoke the bot to make edits.

This is highly problematic - who made the actual edit (over at the linked talk page) if this user is blocked??

(Plus, of course, that talk page is maintained by the regular autoarchival bot and the changes were completely unneccessary - just let the bot handle the page!) CapnZapp (talk) 08:59, 17 January 2019 (UTC)

@CapnZapp: OneClickArchiver is a user script, meaning that it only makes edits at the direction of a user. In the case you mentioned, that specific archiving was done by FlightTime (talk · contribs). --DannyS712 (talk) 18:35, 17 January 2019 (UTC)
@CapnZapp: I'm not blocked, it's a user script not a bot account and I made the edits, just for the record. Not sure what your concern is. I replied to your post on my talk page also. - FlightTime (open channel) 18:20, 18 January 2019 (UTC)

My basic error?

Anyone got any idea what I am doing wrong in this edit? I used 1CA to clear out a decade's worth of grotty caste stuff from the article talk page, it seems to have created the Archive (#1, because none previously existed) but I must be doing something wrong because I can't get the archive link to display on the talk page. - Sitush (talk) 05:52, 28 January 2019 (UTC)

@Sitush: I don't think the template is meant to display the archives, only to configure them for the script. I'd suggest taking a look at {{Archives}}. Also, this user is blocked, so this may not be the best place to ask --DannyS712 (talk) 06:00, 28 January 2019 (UTC)
Yeah, I realised Tech13 was ArbCom blocked, thanks, but assumed that the script was still being maintained by someone. Sorry about that. I'm hopeless with setting up archives but will take that advice and read up. - Sitush (talk) 06:08, 28 January 2019 (UTC)
I've done this by copying an arrangement from my own talk page. Will see what happens in the long term. - Sitush (talk) 06:18, 28 January 2019 (UTC)
@Sitush: Yeah, I guess we'll see. Feel free to reach out if you have any more questions. I would ask that this page be redirected to the current maintainer's page, but they said that I cannot help with issues about archiving your own talk page. If you have read the documentation carefully and are still having problems, a prompt and friendly answer can usually be found by asking at the teahouse.. --DannyS712 (talk) 06:20, 28 January 2019 (UTC)

Couple questions

Hi,

First, thank you for maintaining this nice semi-automated archiving script. For low-volume talk pages not needing fully automated archiving, it's great.

However, a couple questions:

  1. On my User talk:Dmehus/Archives/2004/March page, the link back to my user talk page is redlinked. So, I tried adding an "Archives" prefix, but that didn't seem to do it. Nevertheless, how do I get OneClickArchiver to correctly set the main user talk without having to add a prefix parameter each time?
  2. When I archived that page originally, it archived it to User talk:Dmehus/Archive 1 despite me having the correct Miszabot coding on the page. How can I avoid this in the future?

Many thanks,
--Doug Mehus T·C 23:36, 11 November 2019 (UTC)

{clear}

What explains the presence of the {clear} -- from the prior thread! -- at the top of this one-click diff? [4] EEng 21:29, 13 November 2019 (UTC)

User talk:Dmehus issue with OneClickArchiver

Can someone take a look at my user talkpage and see what I need to do to get OneClickArchiver to honour the MiszaBot settings and archive to applicable subpage of year/month when I manually archive something? That is, if the most recent timestamp for a given section is for November 2019, I'd like OneClickArchiver to move it to the applicable /Archives/2019/November subpage. Can't figure out what I'm doing wrong.

Thanks,
--Doug Mehus T·C 19:39, 28 January 2020 (UTC)

Archiving to wrong pages...

This archived to the wrong page; seemingly because it had previously been moved. I'll take the time to manually fix it; but is there anybody still maintaining this bot who could look into this? Thanks, RandomCanadian (talk | contribs) 21:53, 17 May 2020 (UTC)

OCA for year-based archives.

I would like my talk page to be archived by year. However, I can't get it to work. I have tried both of these:

{{MiszaBot/config
| algo          = old(365d)
| archive       = User talk:Diriector Doc/Archives/%(year)d
| archiveheader = {{tan}}
}}

and

{{Archive basics
| archive = User talk:Diriector Doc/Archives/%(year)d
| archiveheader = {{tan}}
}}

But neither of them worked how I wanted. OCA still archived threads to User talk:Diriector Doc/Archive 1, which has now been deleted because it is not what I wanted.

How do I get this to work? Is it even possible? --Diriector_DocTalk
Contribs
━━━┥
17:06, 25 May 2020 (UTC)

Repeatedly incrementing archive page

When I manually archived a few threads on Wikipedia_talk:WikiProject_Biography without timestamps, it created a new archive page for each of them. Any reason why this happened? power~enwiki (π, ν) 16:15, 14 August 2020 (UTC)

Errors

When I recently tried using OCA, it created a few different errors that I had to fix manually [5][6]. Since the operator seems to be blocked, I don't have much hope these will be fixed, and will probably try to find a different script to use. {{u|Sdkb}}talk 22:13, 15 November 2020 (UTC)

Oops, nevermind, I realized I was actually using a different script. Moving there... {{u|Sdkb}}talk 22:25, 15 November 2020 (UTC)

"Wikipedia:OneClickArchiver" listed at Redirects for discussion

A discussion is taking place to address the redirect Wikipedia:OneClickArchiver. The discussion will occur at Wikipedia:Redirects for discussion/Log/2021 January 28#Wikipedia:OneClickArchiver until a consensus is reached, and anyone, including you, is welcome to contribute to the discussion. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 14:44, 28 January 2021 (UTC)

Question

I have noticed that when I use this tool on my talk page it sends all of the discussions to archive 1. How do I send them to archive 2? Scorpions13256 (talk) 01:12, 3 May 2021 (UTC)

@Scorpions13256: I believe you'll need to add Template:Archive basics to set the page to archive to. --Funandtrvl (talk) 19:47, 28 June 2021 (UTC)
Already taken care of. Thanks. Scorpions13256 (talk) 19:48, 28 June 2021 (UTC)

Not working

On my .js page, I installed importScript('User:Technical 13/Scripts/OneClickArchiver.js'); // Backlink: User:Technical 13/Scripts/OneClickArchiver.js, cleared cache, then went to a talk page, chose a topic to archive, pressed 'edit', highlighted the section, and expected to see a tool appear in the left margin where I have other tools. Nothing new was there, and no archiving functions appeared available. Repair thoughts? Thanks. Zefr (talk) 01:11, 5 September 2023 (UTC)

This script has a fork that is more up-to-date and less buggy. Try User:Evad37/OneClickArchiver.jsNovem Linguae (talk) 01:35, 5 September 2023 (UTC)
Thanks. Uninstalled the Tech13 archiver and installed Evad37, cleared cache, and tried to archive a talk page topic. Still no new archive tool showing. I'm using Chrome OS 103.0.5060.132 (Official Build) (64-bit). Perhaps that's the issue? Zefr (talk) 02:10, 5 September 2023 (UTC)
I went to a newer PC with Chrome OS Version 114.0.5735.239. No new archive tool showing. Zefr (talk) 02:17, 5 September 2023 (UTC)
I think I found the problem by copy pasting your common.js into mine and looking at the WP:CONSOLEERRORs. Try changing importscript('form[action*="action=purge"]').submit(); to importScript('form[action*="action=purge"]').submit();. Note that the "s" in importScript needs to be capitalized. Hope this helps. –Novem Linguae (talk) 02:48, 5 September 2023 (UTC)
Thanks again. All procedures followed and cache cleared, but still no archive tool. Appreciate your assistance, but I'll let this rest for now. Zefr (talk) 04:25, 5 September 2023 (UTC)
I don't see the fix I mentioned above in the diff history of your common.js file. I'm like 99% sure that's the fix. Want me to just make the change for ya? –Novem Linguae (talk) 04:51, 5 September 2023 (UTC)
In my .js list, I have importScript('User:Evad37/OneClickArchiver.js'); // Backlink: User:Evad37/OneClickArchiver.js which is directly from the install and is the same format as others in use. If you see an error, please fix it. Thanks again. Zefr (talk) 13:56, 5 September 2023 (UTC)
This diff is the fix I thought would fix things. Turns out that particular line was still buggy. I went ahead and commented out the line. Try it now :) –Novem Linguae (talk) 18:31, 5 September 2023 (UTC)
The archiving function is visible and working, as are a couple of other scripts I had requested. Thanks, Novem Linguae! I had installed the purge script and don't know why that one affected the others. Is there a short answer? Zefr (talk) 18:56, 5 September 2023 (UTC)
It affected the others because it had a syntax error. A syntax error in the common.js file will break the entire common.js file. The syntax for the purge script doesn't make sense. importScript() will only accept a wikipage title, not JQuery/CSS. Where'd you get the code from? Perhaps it was copied incorrectly? –Novem Linguae (talk) 19:01, 5 September 2023 (UTC)
Easy to understand once simply explained ;>) I believe the script came as a suggestion from the Village Pump when I asked why my history counter had stopped working, [User Wikipedian For|year=2005|month=04|day=17], possibly needing an auto-purge to refresh each day as it had done reliably for years. Is there a way a syntax error in a .js file affects a user page command? Zefr (talk) 19:09, 5 September 2023 (UTC)
This discussion? Wikipedia:Village pump (technical)/Archive 205#Auto-updating activity counter. I agree with the editor that responded in that discussion that your page was probably never auto purging. An edit to a page may trigger a purge though. If you were editing the page a lot perhaps that was purging it in the background. WP:PURGE probably has the purge logic/algorithm in there somewhere if you want to research it more. –Novem Linguae (talk) 23:45, 5 September 2023 (UTC)
The script you inactivated is on the WP.PURGE page, and reminds me that I took it from there, and installed it with no error showing on my .js page.
Having a daily-updated history was never an important problem to solve, but rather one I felt I should try to understand out of coding interest. I have not edited my user page very often, but am confident in saying that the history calendar on my page and others I had seen over the years was updating regularly, if not daily (was correct each time I checked, sometimes daily out of curiosity).
Why/how could it not update daily? What is its timer or trigger to activate if the page isn't edited?
After I edited my page in April this year, the calendar became stuck and did not do daily updates again even over many days. Manual purging or a null edit is successful.
It leaves me wondering if a change in layout on my user page had introduced a bug and interrupted what had been a long-term accurate function, which is why I asked at the Pump.
Again, this is more a matter of curiosity than importance, but I do appreciate your patience and insight. Zefr (talk) 00:57, 6 September 2023 (UTC)

I think this is the diff where you first added the script. It has two syntax errors (the lowercase s, and the fact that it's trying to import JQuery/CSS syntax rather than a wikipage). I think it likely this script never worked, and it probably broke at a minimum everything in the common.js file that came after it, and possibly the entire common.js file. The reason it did not work is that you copy pasted only a portion of the 4 lines of JavaScript code, and you also changed the $ to importscript. If you were to copy paste all 4 lines, it would likely do what it says, which is to auto click the "Purge" button for you when visiting any purge page such as https://en.wikipedia.org/w/index.php?title=User:Zefr&action=purge. However this doesn't seem to be what you want. If I'm understanding you correctly, you want something more like a bot that visits your page daily and purges it for you. –Novem Linguae (talk) 01:25, 6 September 2023 (UTC)

That was a mess I made of the purge script - thanks for explaining. I copied the history calendar from another editor years ago, and see it used currently by many editors. So, the daily purging bot would best apply universally if it could detect the counter on any user page and run by the UTC clock. I know this would be a low-priority coding effort, so haven't asked for it at the Pump. Zefr (talk) 03:44, 6 September 2023 (UTC)
A bot to auto purge pages exists. I forget if it's still broken or if it was repaired. Some relevant pages are User:ProcBot/PurgeList (edit it to see the invisible data) and Wikipedia:Bots/Requests for approval/ProcBot 5. –Novem Linguae (talk) 03:50, 6 September 2023 (UTC)