12-07-2018, 07:29 PM
(12-07-2018, 06:47 PM)Moomintroll Wrote: Hi Mudmin,
As an extension of making accounts public or private, I need to create a button that toggles a field in the user's account between 1 and 2.
So, for example, a red button on the account page that says 'Account Set to Private', but when clicked updates the field to the public setting (say '2') and displays a green button that says 'Account set to Public'...and vice versa
How would I go about that?
Would the user be setting their own account public/private or would you be doing it for them? The logic is different based on which one. I'm guessing this is on account.php, right?