Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Hi there,
I am building this website for a client, and I have been asked to provide users an option to set themselves available/busy while online.
So I have created a custom field (ab_status) on the Edit profile page, which essentially is a radio choice with 3 options (available/busy/offline).
I need to somehow integrate this with the Online/Offline feature. Basically when the user is online, I need the radio to have “available” as the checked option, and when they go offline then “offline” will be checked.
I used to work in PHP years back, but I am really rusty these days.
I want to place this code in the ‘badge-functions.php’ in the userpro_get_badge function in the switch case ‘online’ and ‘offline’.
Anyone has idea how you can check/uncheck radio boxes options for custom fields using PHP?
You must be logged in to reply to this topic.