Support

  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.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.