1. edocsales
  2. Support
  3. Saturday, March 07 2015, 04:12 AM
I disabled default Joomla registration and only allow registration via logging in with Social Connect. I cannot work out how to default the value of a custom radio button field "show_on_members_list". The database field continues to show NULL after initial registration, which means the profile will only display on the members list once the member edits their profile.

Desired workflow:
- User logs in with Social Connect
- if user account does not exist, it is created with Default values (no visible registration page should be displayed)
- user profile should immediately show in the Members List
- user can edit profile and set radio button field "show_on_members_list" to "No".
- show_on_members_list should not be visible on profile
- show_on_members_list should only be accessible by profile owner (or backend admin) when editing profile

I have the field "show_on_members_list" as a Radio Button with:
- Default value = 1
- Options list =
1|Yes
2|No
- (played with combinations of Availability and Visibility settings with no luck)

I have menu of type Users List Table with:
- SQL Where = show_on_members_list = 1

Result after new user logging in with Social Connect:
- new users created with value show_on_members_list = NULL in database therefore not shown on Members List
- after editing profile, user can be displayed on profile (if choosing to)

Please advise how I can achieve the desired workflow. Thanks.
Accepted Answer
edocsales Accepted Answer
Pro
Thanks, now I understand why this wasn't defaulting. While your suggestion did not work for me, the following SQL WHERE is working:
show_on_members_list IS NULL OR show_on_members_list =1
  1. more than a month ago
  2. Support
  3. # Permalink
admin Accepted Answer
Admin
Hi,
sorry for late reply, it's a weekend for us.

default value is only for form, Social Connect registration skip this, so in Users List you can put in SQL where
show_on_members_list<>0
with this if null or 1 user is displayed in list

To show this field in edit profile only for owner you can set this field to not be seen on profile.
  1. more than a month ago
  2. Support
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.