#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 Jun 29, 2013 16:09:24 GMT -8
I don't want to confuse matters, and I could well be etting this totally wrong, but why not stick to just 1 superuser key?
Assign each transfer a unique character, and save that to the key as an array, then a simple check of that array would tell you if a transfer has already been made.
|
|
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 Jun 29, 2013 16:43:03 GMT -8
I don't want to confuse matters, and I could well be etting this totally wrong, but why not stick to just 1 superuser key? Assign each transfer a unique character, and save that to the key as an array, then a simple check of that array would tell you if a transfer has already been made. Wouldn't that add up quickly though, size wise? Also, for others who might sneak in the thread: dl.dropboxusercontent.com/u/28615422/money_ubbc_plugin.js
|
|
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 20:55:25 GMT -8
there is no id of the post when its first being written. you have to use the new_post and new_thread functions. when the post gets created, it automatically gets an id at the same time the key gets set. if you view the source, the key data will have a new entry with that new post id.
|
|
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 Jun 29, 2013 22:37:15 GMT -8
I've hit another road-block: upon deleting a post, there's no way to attach to a button because it's created dynamically, and there's no cascade of deletion to keys when deleted from the database which is peculiar.
EDIT: Scratch that, it does cascade to the key, but there's no way to hook onto that.. there would be a way to check it, but only if you were on a thread where one of the posts were deleted and you checked to see if it still existed, but even then the code wouldn't be able to know what to add/subtract.
boo.
|
|
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:23:22 GMT -8
yeah that I cant help you with.. Tim Camara would have to offer insight
|
|
#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 Jun 30, 2013 13:52:49 GMT -8
I don't want to confuse matters, and I could well be etting this totally wrong, but why not stick to just 1 superuser key? Assign each transfer a unique character, and save that to the key as an array, then a simple check of that array would tell you if a transfer has already been made. Wouldn't that add up quickly though, size wise? Also, for others who might sneak in the thread: dl.dropboxusercontent.com/u/28615422/money_ubbc_plugin.jsIt could, yes, but if you stick to single characters, you would have room for over 3000 transactions.. How are you intending to log the transactions? Couldn't you use that to keep track?
|
|
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 Jun 30, 2013 15:26:49 GMT -8
It could, yes, but if you stick to single characters, you would have room for over 3000 transactions.. How are you intending to log the transactions? Couldn't you use that to keep track? I'm going to have a priv. user key that has the logs; and how would 26 letters, 10 numbers, and a few other symbols add up to 3000 if they're being used once?
|
|
#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 Jun 30, 2013 17:00:29 GMT -8
Can't you just use that key to keep track and make sure that any transactions are only done once?
|
|
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 Jun 30, 2013 18:33:01 GMT -8
Can't you just use that key to keep track and make sure that any transactions are only done once? yeah, I've already got that stuff figured out; I updated the dropbox file with the new code. It's functioning for the most part, except after editing a post, it's not wanting to change the HTML of the post even though it'll work when you refresh, so it's just a minor glitch I guess.
|
|
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 1, 2013 7:48:57 GMT -8
I've added a task to our list of things to look into adding an onDelete type thing for plugin data. No ETA on that, though. It could be a while.
|
|
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 Jul 1, 2013 8:38:35 GMT -8
I've added a task to our list of things to look into adding an onDelete type thing for plugin data. No ETA on that, though. It could be a while. Okay, sweet.
|
|