Revision as of 17:36, 15 June 2015 editTechnical 13 (talk | contribs)37,142 edits OneClickArchiver adding Strange error message, at least it's strange to me...← Previous edit | Revision as of 17:36, 15 June 2015 edit undoTechnical 13 (talk | contribs)37,142 edits OneClickArchiver adding Hi could someone explain how to use the OneClickArchiver?Next edit → | ||
Line 81: | Line 81: | ||
:*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. 🌹<font style="text-shadow:#F8F8FF 0.2em 0.2em 0.4em,#F4BBFF -0.2em -0.3em 0.6em,#BFFF00 0.8em 0.8em 0.6em;color:#A2006D">]</font><font color="gold">☯</font>] 16:48, 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. 🌹<font style="text-shadow:#F8F8FF 0.2em 0.2em 0.4em,#F4BBFF -0.2em -0.3em 0.6em,#BFFF00 0.8em 0.8em 0.6em;color:#A2006D">]</font><font color="gold">☯</font>] 16:48, 10 May 2015 (UTC) | ||
{{Clear}} | |||
== 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. ] (]) 09:13, 11 May 2015 (UTC) | |||
UPDATE: Never mind, I've figured it out. ] (]) 09:31, 11 May 2015 (UTC) |
Revision as of 17:36, 15 June 2015
This is an archive of past discussions with User talk:Technical 13/Scripts/OneClickArchiver. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 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 " 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 betweenView history
and the search bar. Do you see1CA is on
or1CA is off
? If it is off, you need to click on1CA is off
or press Alt+⇧ Shift+o to turn it to1CA 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 under1CA 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. If1CA is on
and there is no|Archive
in theMore
dropdown menu with it then I'll need to know what your userAgent string is. Thanks. :) — {{U|Technical 13}} 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: ]
- in your common.js when you should have :
importScript( 'User:Technical 13/Scripts/OneClickArchiver.js' );// Backlink: ]
- 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}} 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
ResolvedHi Technical 13,
I was using OCA to archive a section in Misplaced Pages talk:WikiProject New York City Public Transportation/Unidentified locations. Instead of archiving to Misplaced Pages talk:WikiProject New York City Public Transportation/Unidentified locations/Archive 1, the first archive of this subpage, the section was archived to Misplaced Pages 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}} 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}} 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 (talk ⋅contribs ⋅dgaf) 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}}
03:01, 22 March 2015 (UTC)
- Awesome; thanks! ~ Tom.Reding (talk ⋅contribs ⋅dgaf) 03:21, 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: ] }
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? Atsme☯ 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}}
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. 🌹Atsme☯ 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)