inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 19, 2016 8:50:25 GMT -8
*drum roll please* badumbadumbadumbadum
|
|
#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 Apr 19, 2016 14:41:46 GMT -8
Todge Just installed 0.0.4, going in to error test now! Gonna test the same errors as before to see what's going on with them now. If I am a staff member and I go in to edit someone's stats, I can't. Only the poster can edit their own stats.I am logged into head admin account. I went into another account's post that has stats currently in the mini-profile for that post. In the edit screen, there's no option for stats, so I cannot edit another member's stats as staff. (my group, administrator, is allowed in the plugin currently) I had a premade post with no stats attached to it. I went in to edit it and added stats. Upon saving, no stats showed. When I made a new post with stats attached in the same thread, then they worked. So it seems like you can't add stats by editing if the post did not originally have them. I went into an old post that did not have any stats attached to it (using the account that made the post) and the edit page also did not have any stat area. If I make a post with certain stats and then go in to edit that post with new stats, it keeps the old stats instead
If I fill out my stats and make a post, then go to edit that post and go to edit the stat entry that I'd chosen initially (not make or switch entries, but rather edit the one I had initially chosen) it does not take the editI actually stopped checking here, because just going to create a new post, the stat area didn't show. So I know that's a halt-everything error that makes bug-checking the other parts pointless currently. To double-check it wasn't the cause, I.... - brought the plugin to the top of the manage plugin list - double-checked the settings have the correct permissions - made sure I'm in the correct account - made sure I have the latest version installed (0.0.4) - made sure I didn't have any duplicates of the plugin - for the hell of it, made sure I had the plugin enabled all a-okay on those checks, so something happened with the latest update to cause the missing stats area in the edit page/posting page. =/ *GulpWhat? The stats have disappeared on the posting page?? I didn't change anything on the posting page!! What have you done with them?!?! Guess I'll take another look then....
|
|
inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on Apr 19, 2016 16:32:52 GMT -8
:'(
|
|
#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 Apr 24, 2016 8:25:22 GMT -8
I have got the stats back, but have found a fundamental problem.
When you create a thread, to save data to a thread key or a post key, you need to use a specific function supplied to us by the good guys that are PB, essentially because until you submit set post, the thread and key do not exist, BUT, you can only save the data to the thread key OR the post key, meaning that the way I have encoded it is pretty much useless. To save space and to make it simpler, I have treated the opening post of a thread the same way as any other replying post... I can't do that and achieve what you are after, so, if it's OK with you I'd like to scrap what we have and start from scratch.
If you are OK with this I will do one part of the code at a time, you can then check said function, and when we get it working, move onto the next. That SHOULD make coding easier, if a little long winded, and hopefully we should not end up with any issues that we can't track down.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 24, 2016 22:38:37 GMT -8
I have got the stats back, but have found a fundamental problem. When you create a thread, to save data to a thread key or a post key, you need to use a specific function supplied to us by the good guys that are PB, essentially because until you submit set post, the thread and key do not exist, BUT, you can only save the data to the thread key OR the post key, meaning that the way I have encoded it is pretty much useless. To save space and to make it simpler, I have treated the opening post of a thread the same way as any other replying post... I can't do that and achieve what you are after, so, if it's OK with you I'd like to scrap what we have and start from scratch. If you are OK with this I will do one part of the code at a time, you can then check said function, and when we get it working, move onto the next. That SHOULD make coding easier, if a little long winded, and hopefully we should not end up with any issues that we can't track down. You can't set on for both thread and post?
|
|
#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 Apr 25, 2016 10:19:26 GMT -8
Nope, it seems it ignores the first one in favor of the last.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 25, 2016 11:30:48 GMT -8
Nope, it seems it ignores the first one in favor of the last. Impossible. Multiple plugins can use set on. I wouldnt expect it to favor one. Especially since if you use set on for a key in existence then .get() will get the new value even if I wasn't actually set. That leads me to believe it should already be cued. I mean I use events on posts with creature hunter. Do you have a test set_on I could play around with? Perhaps you need to add the second set_on on the first keys complete() handler so two aren't fighting at the same time
|
|
#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 Apr 25, 2016 14:18:00 GMT -8
I guess I could have made a silly mistake. I'll try again and get back to you.
|
|
#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 Apr 25, 2016 16:09:08 GMT -8
Nope, it seems it ignores the first one in favor of the last. Impossible. Multiple plugins can use set on. I wouldnt expect it to favor one. Especially since if you use set on for a key in existence then .get() will get the new value even if I wasn't actually set. That leads me to believe it should already be cued. I mean I use events on posts with creature hunter. Do you have a test set_on I could play around with? Perhaps you need to add the second set_on on the first keys complete() handler so two aren't fighting at the same time Ok.. It DOES work, I just need to specify the post ID when on the thread edit page. Why I never tought of that the first time round I have no idea. ₪» ⅀ ƪ Ƒ «₪... Ignore my previous post, I'll try again to get the current plugin to work.
|
|
inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on Apr 27, 2016 0:36:14 GMT -8
If you end up having to go back to scratch and do piece by piece, that's completely okay with me, btw. But I'm glad the post and thread key conflict was figured out! Probably saves you a lot of time--hopefully lol
|
|
#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 May 2, 2016 14:57:36 GMT -8
|
|
inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on May 4, 2016 11:25:29 GMT -8
Absolutely! Sorry for being AWOL for a little bit, had to take a small break. I'll get to testing this asap.
|
|
inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on May 10, 2016 20:17:23 GMT -8
Todge -rolls up sleeves- time to test! Ohkay. Gonna just.. re-address the issues of before, since that seems to be a good way to test the different angles. If I am a staff member and I go in to edit someone's stats, I can't. Only the poster can edit their own stats. I am in the head admin account. I clicked on a post made by my test account that had stats already assigned to it. When editing their post, the stats did show up for editing! Woohoo! I was able to switch the fields. I saved the post and the stats in the mini-profile changed! IT WORKED! Successssss. Potential issue -- I'm pretty sure the options given in the edit area were from my head admin account, not the history options attached to that account. As in, the "history entries" that you get to pick from, instead of showing my test account's history of entries, it showed my head admin's account. I will have to check this. (I'm writing this as a reminder for myself to check it, since it requires logging in and out of accounts lol) Update: I switched accounts and yes, if I edit someone else's post with a different account, it shows the editor's history, not the poster's. I'm not sure this is even possible to change, though, cuz I don't know how the information is saved and such. I don't think it's a particularly big deal if this can't be rectified, at least I'm able to edit their stats at all! I had a premade post with no stats attached to it. I went in to edit it and added stats. Upon saving, no stats showed. When I made a new post with stats attached in the same thread, then they worked. So it seems like you can't add stats by editing if the post did not originally have them. Uh-oh, no go on this. I went to an old post of mine that had no premade stats (using head admin account) and when I went into the edit page, there were no stat options at all. Before, there were stat options but it didn't actually save my entries, now there's just no stat area at all. In the same thread, I went to make a new post, and everything works as normal there. Potential problem/request -- this is my first post in this thread assigning stats, so it should have them all as "None" to start, but it actually has them automatically selected as what my last post was, even though the last post is not in this thread. Is there a way for it to have my first post in the thread be default "None" and then any additional posts in that same thread remember whatever the last stat was for that thread? So if my first post is "None," second is also "None" (by default, obviously it can be changed manually, though). If on my 4th post, I suddenly change the up-until-then "None" to "Test Option 1," then my 5th post would have that as the default selected. However, switching threads wouldn't carry this over, it'd continue being thread-specific. If that didn't make sense, bop me on the head, and if that's way too hard or impossible, then ignore me.
If I make a post with certain stats and then go in to edit that post with new stats, it keeps the old stats insteadAwesome! Another success. I made a new post with certain stats then edited new stats into that post and it accepted and showed the change. Yay!
If I fill out my stats and make a post, then go to edit that post and go to edit the stat entry that I'd chosen initially (not make or switch entries, but rather edit the one I had initially chosen) it does not take the editYES! Another problem solved! After editing the option, I did have to re-select the option, it didn't automatically update upon editing the option, but it still took it and shows correctly, so I'm calling that gooood eeeenoouuuuugh!
I'm so glad to be able to report half the problems resolved. You seriously are a lifesaver and miracle worker with your ridiculous amount of effort put into this thing, let alone for how many years we've been working on it. Very nice to be able to give you positive news and feel less like a moldy shoe about it all. xD
|
|
#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 May 11, 2016 9:24:39 GMT -8
Half way there then...
Of the two main problems you mention, the first 'should' be fixable, but I'm not so sure about the second one. A members history is saved in the user key, not the thread key. I'll have to take a closer look.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on May 11, 2016 13:17:22 GMT -8
Todge -rolls up sleeves- time to test! Ohkay. Gonna just.. re-address the issues of before, since that seems to be a good way to test the different angles. If I am a staff member and I go in to edit someone's stats, I can't. Only the poster can edit their own stats. I am in the head admin account. I clicked on a post made by my test account that had stats already assigned to it. When editing their post, the stats did show up for editing! Woohoo! I was able to switch the fields. I saved the post and the stats in the mini-profile changed! IT WORKED! Successssss. Potential issue -- I'm pretty sure the options given in the edit area were from my head admin account, not the history options attached to that account. As in, the "history entries" that you get to pick from, instead of showing my test account's history of entries, it showed my head admin's account. I will have to check this. (I'm writing this as a reminder for myself to check it, since it requires logging in and out of accounts lol) Update: I switched accounts and yes, if I edit someone else's post with a different account, it shows the editor's history, not the poster's. I'm not sure this is even possible to change, though, cuz I don't know how the information is saved and such. I don't think it's a particularly big deal if this can't be rectified, at least I'm able to edit their stats at all! I had a premade post with no stats attached to it. I went in to edit it and added stats. Upon saving, no stats showed. When I made a new post with stats attached in the same thread, then they worked. So it seems like you can't add stats by editing if the post did not originally have them. Uh-oh, no go on this. I went to an old post of mine that had no premade stats (using head admin account) and when I went into the edit page, there were no stat options at all. Before, there were stat options but it didn't actually save my entries, now there's just no stat area at all. In the same thread, I went to make a new post, and everything works as normal there. Potential problem/request -- this is my first post in this thread assigning stats, so it should have them all as "None" to start, but it actually has them automatically selected as what my last post was, even though the last post is not in this thread. Is there a way for it to have my first post in the thread be default "None" and then any additional posts in that same thread remember whatever the last stat was for that thread? So if my first post is "None," second is also "None" (by default, obviously it can be changed manually, though). If on my 4th post, I suddenly change the up-until-then "None" to "Test Option 1," then my 5th post would have that as the default selected. However, switching threads wouldn't carry this over, it'd continue being thread-specific. If that didn't make sense, bop me on the head, and if that's way too hard or impossible, then ignore me.
If I make a post with certain stats and then go in to edit that post with new stats, it keeps the old stats insteadAwesome! Another success. I made a new post with certain stats then edited new stats into that post and it accepted and showed the change. Yay!
If I fill out my stats and make a post, then go to edit that post and go to edit the stat entry that I'd chosen initially (not make or switch entries, but rather edit the one I had initially chosen) it does not take the editYES! Another problem solved! After editing the option, I did have to re-select the option, it didn't automatically update upon editing the option, but it still took it and shows correctly, so I'm calling that gooood eeeenoouuuuugh!
I'm so glad to be able to report half the problems resolved. You seriously are a lifesaver and miracle worker with your ridiculous amount of effort put into this thing, let alone for how many years we've been working on it. Very nice to be able to give you positive news and feel less like a moldy shoe about it all. xD I need a plugin to put Elf's comments in a spoiler tag automatically. :DDDD
|
|