Author Topic: Button "All" in armoury [code included]  (Read 1206 times)

0 Members and 1 Guest are viewing this topic.

Offline DaveUKR

  • Supreme Overlord
  • *******
  • Renown: 1456
  • Infamy: 242
  • cRPG Player
  • Small rain lays great dust
    • View Profile
Button "All" in armoury [code included]
« on: October 12, 2013, 05:45:48 pm »
+15
It's very uncomfortable and not handy to use the armoury when you have to manage with a lot of items. I myself have 14 MWs and Mercs have a lot of MWs in the armoury (no, I'm not bragging around  :lol:) so it's very time consuming to select all the items when you need to put/pull out all of them at once (i.e. I've stopped playing and want to put all my items to armoury - I have to click 14 times, same when I want them back on my char). Also when we want all the MWs back to the armoury - we need to click on all of the particular items. So what I suggest is just add this code:

Code: [Select]
<script language="JavaScript">
function toggle(source) {
  checkboxes = document.getElementsByName('itemslent[]');
  for(var i=0, n=checkboxes.length;i<n;i++) {
    checkboxes[i].checked = source.checked;
  }
}
</script>

<input type="checkbox" onClick="toggle(this)" />All<br/>

Use document.getElementsByName('items[]'); or document.getElementsByName('itemslent[]'); where it's used. Add both to the management of armoury and management of your own items. Already works fine, checked it on crpg website. You just need to put it inside the template.

visitors can't see pics , please register or login

visitors can't see pics , please register or login

Offline POOPHAMMER

  • King
  • **********
  • Renown: 1509
  • Infamy: 328
  • cRPG Player Sir Black Bishop
  • yes thats me irl
    • View Profile
  • Faction: Barabe
  • Game nicks: POOPHAMMER
Re: Button "All" in armoury [code included]
« Reply #1 on: October 12, 2013, 05:47:17 pm »
+1
i was just thinking this last night
Uther Pendragon: dont worry i wasnt planning on trusting you anyway

Offline Patoson

  • Marshall
  • ********
  • Renown: 784
  • Infamy: 138
  • cRPG Player Sir Black Knight
    • View Profile
Re: Button "All" in armoury [code included]
« Reply #2 on: April 05, 2014, 06:57:34 pm »
+5
Sorry for "necroing" this thread, but I thought it would be better than writing a new one, since it's kinda related.

This idea is great, and it would be cool if we also had a select-all button in the item transfer page.

Offline Switchtense

  • King
  • **********
  • Renown: 1137
  • Infamy: 137
  • cRPG Player Sir White Bishop
  • poking you where the sun dont shine!
    • View Profile
  • Faction: Unicorns, BIRD CLAN BEST CLAN!
  • Game nicks: All sorts of Switch's
  • IRC nick: Switchtense
Re: Button "All" in armoury [code included]
« Reply #3 on: July 04, 2015, 10:27:58 pm »
+4
Just did a full armoury reset of the Grey armoury and I did not find such a button, so I assume it is not yet implemented.

Selecting 300+ items is incredibly tedious and annoying. We need this shit :(
For all the non-believers, look no further than this thread for proof that while strat battles are won/lost in NA3/EU3, strat wars are won and lost on the forums.
visitors can't see pics , please register or login

Offline BlackxBird

  • Duke
  • *******
  • Renown: 546
  • Infamy: 228
  • cRPG Player
    • View Profile
  • Faction: Eques :3
  • Game nicks: Eques_Black_Bird, Black_Bird_I-X
Re: Button "All" in armoury [code included]
« Reply #4 on: July 04, 2015, 11:36:35 pm »
+1
I was buying every single +0 item in this game and added them to the armoury. You guys got no idea how long this took :D

Offline Finse

  • Game Admin (trial)
  • ****
  • Renown: 391
  • Infamy: 61
  • cRPG Player
    • View Profile
  • Faction: Mercenaries
  • Game nicks: Finse, Hated
Re: Button "All" in armoury [code included]
« Reply #5 on: July 05, 2015, 03:55:44 pm »
0
I was buying every single +0 item in this game and added them to the armoury. You guys got no idea how long this took :D

Done the same, all but the peasant shit thou. Its a bitch

Offline korppis

  • Earl
  • ******
  • Renown: 404
  • Infamy: 51
  • cRPG Player Sir White Knight A Gentleman and a Scholar
    • View Profile
  • Faction: Ninja
Re: Button "All" in armoury [code included]
« Reply #6 on: July 09, 2015, 11:38:06 am »
0
Just did a full armoury reset of the Grey armoury and I did not find such a button, so I assume it is not yet implemented.

Selecting 300+ items is incredibly tedious and annoying. We need this shit :(

You can just copy paste that code snippet into page from browser's developer tools and the checkbox will appear. Or better yet, make a greasemonkey/tampermonkey script so that it gets loaded automatically.

Offline Switchtense

  • King
  • **********
  • Renown: 1137
  • Infamy: 137
  • cRPG Player Sir White Bishop
  • poking you where the sun dont shine!
    • View Profile
  • Faction: Unicorns, BIRD CLAN BEST CLAN!
  • Game nicks: All sorts of Switch's
  • IRC nick: Switchtense
Re: Button "All" in armoury [code included]
« Reply #7 on: July 09, 2015, 12:32:17 pm »
0
You can just copy paste that code snippet into page from browser's developer tools and the checkbox will appear. Or better yet, make a greasemonkey/tampermonkey script so that it gets loaded automatically.

Yea I know, but I only looked for this thread after I have done the reset. Not gonna do another one anytime soon, so I figured it'd be great to be actually implemented properly for people who do not know how to do that.
For all the non-believers, look no further than this thread for proof that while strat battles are won/lost in NA3/EU3, strat wars are won and lost on the forums.
visitors can't see pics , please register or login

Offline Grumpy_Nic

  • King
  • **********
  • Renown: 1023
  • Infamy: 306
  • cRPG Player A Gentleman and a Scholar
    • View Profile
  • Faction: Burg Krems
  • Game nicks: Hermann_von_Krems
Re: Button "All" in armoury [code included]
« Reply #8 on: July 22, 2015, 08:48:07 pm »
0