inherit
169267
0
Nov 23, 2024 12:51:41 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Sept 11, 2022 9:20:56 GMT -8
ChrisMaybe I miss understood what I want is the plugin configuration UI only. I as the admin want to make the selection only. Sorry chris I need that method but I not sure which one that is. can you show me that one please? Thank you chris (By using the ui I only get the id number of the member chosen how do I get the members name? That was what I meant by using the ui forum search for members.)
|
|
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,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Sept 11, 2022 11:24:08 GMT -8
Chris Maybe I miss understood what I want is the plugin configuration UI only. I as the admin want to make the selection only. Sorry chris I need that method but I not sure which one that is. can you show me that one please? Thank you chris (By using the ui I only get the id number of the member chosen how do I get the members name? That was what I meant by using the ui forum search for members.) Mike , since you are the one writing the code it is completely up to you whether it appears on the homepage or not, whether it appears to only you the admin or to the entire membership of the forum. Your code is what is creating the user selection dialog box, it can decide when and where to create it. Both user selectors allow you to choose members and return the members that were chosen. The dialog box returns an array of user objects as I said earlier Data received in callback function[ { "id": 1, "name": "Patrick Clinger", "username": "admin", "group": "ProBoards Admin" }, { "id": 2, "name": "Martyn Dale", "username": "martyn", "group": "ProBoards Admin" }, { "id": 1480, "name": "Craig", "username": "cmdynasty", "group": "Support Helper" }, { "id": 169267, "name": "Mike", "username": "riccetts", "group": "v6 Alpha Tester" } ] If you instead choose to use the one in the plugin's UI configuration then that will save just the user id numbers
|
|
inherit
169267
0
Nov 23, 2024 12:51:41 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Sept 11, 2022 11:47:05 GMT -8
ChrisThank you for the reply Alright I get the id number only so if I can't get the members name using the ui. So after choosing the member in the dialog box how do I save that rather than that dialog box poping up everytime I login to my forum? What if I want to keep that name for one month instead of changing it everytime I log on?
|
|
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,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Sept 11, 2022 12:15:32 GMT -8
Chris Thank you for the reply Alright I get the id number only so if I can't get the members name using the ui. So after choosing the member in the dialog box how do I save that rather than that dialog box poping up everytime I login to my forum? What if I want to keep that name for one month instead of changing it everytime I log on? Mike , that is where plugin keys come in; keys allow you to persist a choice across multiple reboots, devices, and even users. Once you've chosen a user, save it to a key then on startup let your code check that key for the current user of the month, calculate if the user's status is still valid, and present a dialog to choose a new user if time has expired or some other invalidating reason prevents that user from still being king of the month. You also have to consider persistence if when that next page loads you want the choice that was made to be available and can be displayed until a new choice is made. That's where a plugin keys comes in when your intent is to have everyone vote on the next MOTM then tabulate the results at the end of the month.
|
|
inherit
169267
0
Nov 23, 2024 12:51:41 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Nov 4, 2024 13:16:23 GMT -8
It's been a while since I've worked on this plugin. now using the ui to choose a member of the month only gives me a number how can I get the name of the member instead of a number? can I get some help please? Chris has shown me a way to allow a user to choose but I don't want that. I as the admin would be the only one to choose that. Thank you
|
|