1. mightyskeet
  2. Support
  3. Thursday, June 11 2015, 11:34 AM
Hello. I have EasyProfile and AkeebaSubs at the same site. Is there a way to display certain fields in the profile based on the value in the sql table AkeebaSubs? For example, if the user has a subscription, these fields are displayed in their profile. Thanx.
Accepted Answer
admin Accepted Answer
Admin
ok, you can do something like this:
- Set email to not show on profile for all member
- Create a field with these parameters
Type: HTML Delimiter
Title: Email
Show on Profile: Yes
Show on Edit Profile: No
Show on Registration: No
Available for: Paid Members
In description of field put this code: {user email displayed}

HTML delimiter allow you to put some static text in profile/edit profile/registration, also this field trigger Joomla Content Plugin.
In Easy Profile Basic is included our Content Plugin, it will replace this code {user email displayed} into value of email field (docs at https://www.easy-profile.com/docs/26-plugin-content.html)

The idea is this, if user is Paid member then he will be available Email (HTML delimiter) field instead standard Email*

* this field must be available for all members
  1. more than a month ago
  2. Support
  3. # Permalink
admin Accepted Answer
Admin
Hi,
the best way to do this is to use ACL and Usergroups.

You can set for each field "Available for" parameter, this specify who can have this field in own profile.

So, you can do something like this:
- Create Usergroup called: Paid Member
- Create ACL with previous usergroup called Paid Member ACL
- Set parameter "Available for" of your field on "Paid Member ACL"
- Set AkeebaSubs to add user into Usergroup "Paid Mamber" when subs is active and remove when subs expire
  1. more than a month ago
  2. Support
  3. # 1
mightyskeet Accepted Answer
Thank you, I think that's what I need. But field "Available for" is not active and I can't change it...
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
But field "Available for" is not active and I can't change it...
Is not active for core fields, core fields are required by Joomla and Easy Profile. Please explain me your scenario.
  1. more than a month ago
  2. Support
  3. # 3
mightyskeet Accepted Answer
I want to show the field "email" in the user profile, if he bought a subscription and he is in a group "Paid members"
  1. more than a month ago
  2. Support
  3. # 4
mightyskeet Accepted Answer
It helped! Thank you!
  1. more than a month ago
  2. Support
  3. # 5
  • 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.