inherit
172351
0
Sept 5, 2019 10:56:35 GMT -8
DarkPikachu
Complexity == Fun
320
October 2011
tcll
|
Post by DarkPikachu on May 28, 2014 22:05:15 GMT -8
this now poses a problem for 2 of my plugins... "custom_fields":{} when will this be fixed?? I had been dealing with it for some time, but now that I've got another plugin using it... yea... I've dealt with it long enough... heh
|
|
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 May 30, 2014 8:23:18 GMT -8
I requested it a while back. Its already on the list.
|
|
inherit
172351
0
Sept 5, 2019 10:56:35 GMT -8
DarkPikachu
Complexity == Fun
320
October 2011
tcll
|
Post by DarkPikachu on Jun 8, 2014 12:40:01 GMT -8
ah alright perhapse an easy note of what's on the dev-list to keep people from continually requesting a feature.
|
|
inherit
172351
0
Sept 5, 2019 10:56:35 GMT -8
DarkPikachu
Complexity == Fun
320
October 2011
tcll
|
Post by DarkPikachu on May 15, 2015 9:57:54 GMT -8
got tired of waiting, so I wrote up a quick plugin: /* * Custom Profile Fields Backup * * Author: Tcll(5850) * Created: May 15, 2015 * Last Modified: May 15, 2015 */
function Tcll5850_CPFB_Backup(){window.localStorage.setItem('Tcll5850_CPFB_Data', JSON.stringify(proboards.data('user').custom_fields))};
function Tcll5850_CPFB_Restore(){proboards.data('user').custom_fields = JSON.parse(window.localStorage.getItem('Tcll5850_CPFB_Data'))};
$(document).ready(function() { var name = proboards.data('route').name; if (name.match(/(new|quote|edit)_(thread|post|mess)/)) {Tcll5850_CPFB_Restore()}; // supply when creating/editing a thread/post/convo //TODO: for moderation: when editing someone else's post, substitute yours for what's given in theirs. //if (name=="thread") {}; if (name.match(/(thread|conversation)/)) {Tcll5850_CPFB_Backup()}; // save/update when viewing threads if (name.match(/(user)/)) {Tcll5850_CPFB_Backup()} // save/update when viewing your profile (CPF data is not available when editing) }); ^ the bug is not with this plugin, it's with my CSS parser. feel free to copy and improve it, it just injects your saved user fields. though it doesn't quite work as expected... it's supposed to clear just that item in local storage... obviously what I've commented out in the restore code clears the entire thing... heh I'm only posting my code because I won't be able to release it any time soon despite the fact it's small. (time and my autism are never on my side) EDIT: made a modification to backup the data when creating a new thread/convo, but apparently the data is blank here as well... heh perhaps simply updating the data every time you make a post and NOT deleting it is a better idea... heh EDIT2: modified the code again, applying the 2nd approach and storing your CPF data for use anywhere. updating after editing your fields is the only problem as the only places you can update the data is either your main profile, a thread, or a convo. (you must visit these places first before you create a new thread or convo after editing your profile, otherwize you'll be using outdated data) applying an action to update the data after saving your profile is a bad idea when it comes to moderation, as the page name is the same when editing anyone's profile. "edit_user_personal" a workaround for this though (which I'll implement when I have the time) is to do a user name check with the name supplied on the profile page. if the names match, update localstorage. EDIT3: works on thread creation now
|
|
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 May 16, 2015 15:40:34 GMT -8
good workaround. should be able to fill the void nicely until (if?) the CPF fields are finally populated everywhere. I suspect that decision was made to cut down on loading time. not sure.
|
|