inherit
97216
0
Nov 23, 2024 12:51:52 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 29, 2013 22:14:00 GMT -8
Is it possible to do this? I'd like to have the ids specifically for keeping in keys so they can be accessed easily and set easily, for that matter. And then retrieving the username/name associated with that ID; is it possible? Am I missing something? Gonna tag a few people that could possibly have an answer.. VS Admin, Wormopolis, Todge, Chris. Thanks!
|
|
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 Jun 29, 2013 22:23:31 GMT -8
not that I have seen.
|
|
inherit
97216
0
Nov 23, 2024 12:51:52 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 29, 2013 22:43:01 GMT -8
I feel that it would have some significance to developers who want to store just ids instead of having to worry about all the conversion processes and whether or not the key will save it if you're setting it as the username instead of their id, etc.
|
|
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 Jun 30, 2013 0:24:37 GMT -8
I just set data with ids because its easy to retrieve it AND autoform searches use id numbers for storage
|
|
inherit
97216
0
Nov 23, 2024 12:51:52 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 30, 2013 9:54:15 GMT -8
I just set data with ids because its easy to retrieve it AND autoform searches use id numbers for storage Exactly, and if you're wanting to display those numbers, there's no intelligible way to tell who's id that is without scouring for it.
|
|
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 Jun 30, 2013 11:13:14 GMT -8
I think it would get abused if they wrote something that returned a profile based off an id.
|
|
inherit
97216
0
Nov 23, 2024 12:51:52 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 30, 2013 11:25:14 GMT -8
I think it would get abused if they wrote something that returned a profile based off an id. Like how? I feel like my plugin already spams the crap out of their system and this is what it's supposed to be like anyways; adding a few more requests wouldn't be bad. Or even just having that static data available with a private user key or something.
|
|
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 Jun 30, 2013 11:35:59 GMT -8
well for example, lets say someone wanted to get a mini-profile for every name in the infocenter. or lets say someone tried to populate some sort of dropdown or table by looping through every iteration and returning a profile to be inserted into a scrolling table. all it would take is a for loop, and a forum with 1000 members, and PBserver gets 1000 ajax requests every page load that has that table. and you KNOW someone would try it if they could. how many time has a "top posters" code been requested? I think it would be cool to get a current display name converted from id myself.. I just dont think PBdevs are going to go for it. VS Admin would have to give final word on it though
|
|
inherit
97216
0
Nov 23, 2024 12:51:52 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 30, 2013 11:39:03 GMT -8
well for example, lets say someone wanted to get a mini-profile for every name in the infocenter. or lets say someone tried to populate some sort of dropdown or table by looping through every iteration and returning a profile to be inserted into a scrolling table. all it would take is a for loop, and a forum with 1000 members, and PBserver gets 1000 ajax requests every page load that has that table. and you KNOW someone would try it if they could. how many time has a "top posters" code been requested? I think it would be cool to get a current display name converted from id myself.. I just dont think PBdevs are going to go for it. VS Admin would have to give final word on it though Then they could throttle it; only allow 10-20 requests a page-load.
|
|
inherit
97216
0
Nov 23, 2024 12:51:52 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jul 11, 2013 14:32:16 GMT -8
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Jul 11, 2013 14:50:24 GMT -8
I can't think of any situation in which this would be necessary. When storing data in a plugin key, you should be using ids. If at some point you want to output the username that goes along with that ID, you can always store the username when the key is created. Wormopolis is correct in that there are too many ways in which this could be abused, and setting an arbitrary limit just leads to haggling over how many is acceptable.
|
|
inherit
168679
0
Nov 18, 2012 17:03:07 GMT -8
Virgil Sovereign
Latet anguis in herba.
686
July 2011
syonidv
|
Post by Virgil Sovereign on Sept 22, 2013 17:02:06 GMT -8
You could more-or-less accomplish this with a link scavenger and localStorage. Put in a script to scan all user links (class a.user-link) at page load-up and store all ID/name pairs that don't match in a simple key/value map, e.g. store:
var name_reg = {}; if( id !== name ) { name_reg['_' + id] = name; }
recall:
name = name_reg['_' + id] || id;
Store the registry in localStorage using JSON.
The script wouldn't be perfect, but it would scavenge names as best it could, which would most likely pick up most of the active posters in a matter of a few page visits. Home pages and indexes especially are loaded with user links.
Any link not in the registry would simply use the ID as the name.
|
|
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 Sept 23, 2013 9:01:54 GMT -8
a script function was approved that will hopefully allow for multiple user ids to be sent to it, and have it return the micro-profile objects like the like system and tagging system does.
just has to be ironed out.
iPokemon used hypnotic powers on Tim to make it happen
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Sept 23, 2013 9:09:07 GMT -8
I have no recollection of this hypnotic incident.
|
|
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 Sept 23, 2013 10:11:56 GMT -8
I have no recollection of this hypnotic incident. Are you still smoking a pack a day?
|
|