inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Dec 31, 2012 20:22:12 GMT -8
Most plugins don't need keys though. Yes.. But will they know that by using a key they will impact proboards customers? Will you tell them this? Its not really Chris's place to demand other developers follow certain guidelines. He shouldnt have to take on responsibility like that. If he saw a better way to do something, he could suggest it to the author, but really its entirely up to the author how they write the code. Any code that has a necessity to store information where more then one user needs access to it, will have to use plugin keys. you always have the option of just not installing the plugin.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jan 5, 2013 18:31:55 GMT -8
More than one plug-in can share a key too, so long as the coder keeps tabs on how much data is being stored, so you can have more than 10 plug-ins using less than 10 keys.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jan 21, 2013 19:14:14 GMT -8
Right, and so plugin developers need to be smart. 1) Use the yootil library which lets you store settings in localStorage. This is in compliance with the EU cookie law AND removes the need for a key. 2) Reuse keys across plugins by the same developer. That is, if data needs to be stored across multiple plugins, I will make my codes share a key. But the size (4kb) has nothing to do with needing more keys. So that's why I said it's best to just ignore it. localStorage is just that, though -- local. If you go on a different computer, things won't be saved unless you somehow have the library save it on PB and then re-store it in localStorage.
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Jan 21, 2013 21:41:41 GMT -8
Right, and so plugin developers need to be smart. 1) Use the yootil library which lets you store settings in localStorage. This is in compliance with the EU cookie law AND removes the need for a key. 2) Reuse keys across plugins by the same developer. That is, if data needs to be stored across multiple plugins, I will make my codes share a key. But the size (4kb) has nothing to do with needing more keys. So that's why I said it's best to just ignore it. localStorage is just that, though -- local. If you go on a different computer, things won't be saved unless you somehow have the library save it on PB and then re-store it in localStorage. Most of the time you don't need them to be reliably stored and aren't important.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jan 21, 2013 23:19:07 GMT -8
localStorage is just that, though -- local. If you go on a different computer, things won't be saved unless you somehow have the library save it on PB and then re-store it in localStorage. Most of the time you don't need them to be reliably stored and aren't important. Ah, okay. I had the example of like an awards system stuck in my brain.
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Jan 22, 2013 7:45:30 GMT -8
Most of the time you don't need them to be reliably stored and aren't important. Ah, okay. I had the example of like an awards system stuck in my brain. Yeah, that should use a key. Agreed.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jan 22, 2013 10:11:42 GMT -8
Right, and so plugin developers need to be smart. 1) Use the yootil library which lets you store settings in localStorage. This is in compliance with the EU cookie law AND removes the need for a key. The Yootil Library does not let you use LocalStorage, that is basic JavaScript and is available to any coder, whether they use the Yootil Library or not. Don't get me wrong, Yootil is a great plugin, but is not needed for Local or SessionStorage.
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jan 22, 2013 19:02:11 GMT -8
Right, and so plugin developers need to be smart. 1) Use the yootil library which lets you store settings in localStorage. This is in compliance with the EU cookie law AND removes the need for a key. 2) Reuse keys across plugins by the same developer. That is, if data needs to be stored across multiple plugins, I will make my codes share a key. But the size (4kb) has nothing to do with needing more keys. So that's why I said it's best to just ignore it. Do you think you could do a demo of #2 Chris? I am a bit shady on how you would keep from overlapping data and stuff Right, and so plugin developers need to be smart. 1) Use the yootil library which lets you store settings in localStorage. This is in compliance with the EU cookie law AND removes the need for a key. The Yootil Library does not let you use LocalStorage, that is basic JavaScript and is available to any coder, whether they use the Yootil Library or not. Don't get me wrong, Yootil is a great plugin, but is not needed for Local or SessionStorage. If I remember correctly Yootil does make it much simpler to use Local Storage
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jan 23, 2013 10:03:53 GMT -8
What's simpler than
localStorage.object = 'data';
and
var xxx = localStorage.object;
?
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jan 23, 2013 13:01:03 GMT -8
True...
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jan 25, 2013 5:35:49 GMT -8
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,022
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jan 25, 2013 15:33:14 GMT -8
Don't fall into the trap of thinking because it is called the "EU Cookie Law" that means switching to localStorage is a way around it since it covers ALL forms of client storage (cookie,flash LSO,html5, etc.) and concentrates more on the necessity and sensitivity of the information rather than the method of storage. Cookies Regulations and the New EU Cookie Law
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jan 25, 2013 19:04:31 GMT -8
The difference between localStorage and sessionStorage is just that, you use local instead of session. I'm not suggesting that using Yootil is a waste of time, I was originally pointing to the fact that you do not NEED it to use HTML5 storage, it got morphed into that with my reply to Thesealion, but considering IE7 usage is now below 4% it will soon not be necassary to even check for that.
|
|