Support

  1. Chuck_Hellige_104784440474687469038
  2. Features Request
  3. Friday, October 10 2014, 09:19 PM
I have created a custom field of type "Select" and I am using the following parameters to pull the list from the users table:

TABLE: users
COLUMN FOR VALUE: id
COLUMN FOR TEXT: name
SQL WHERE parameter: block=0 AND username NOT LIKE 'test%'

This is working great however when viewing the field in the User Profile you see the "name" as expected but I would like it to be a hyperlink to the profile page of the user name that is being displayed. Is there a way to do this and if not I would like to submit it as a future feature request.

Thanks!
admin Accepted Answer
Admin
Hi,

Yes, try with this:
- Remove this field from profile view
- Create a "HTML Delimeter" field (hidden on edit and registration profile, but visible on profile)
- Put this code in description of delimeter field
<a href="index.php?option=com_jsn&view=profile&id={user select_field_alias displayed raw}">{user select_field_alias displayed}</a>
- insert into condition of your select field something like this: if equal to custom value (leave empty custom value parameter) hide delimeter field
Now if select if empty the delimeter field is hidden

{user select_field_alias displayed raw} is replaced by value of select field (id)
{user select_field_alias displayed} is replaced by text of select field (name)
this sintax become from our "Content Plugin", see docs at https://www.easy-profile.com/docs/26-plugin-content.html
  1. more than a month ago
  2. Features Request
  3. # 1
Chuck_Hellige Accepted Answer
Thank you so much - this was very helpful!

I do have one other related question.

Is it possible to create a similar Delimiter field that displays the avatar of the linked account. I tried the following but it did not work:
{user avatar {user select_field_alias raw}}

Thanks again
  1. more than a month ago
  2. Features Request
  3. # 2
admin Accepted Answer
Admin
Hi,
sorry for late reply, we were thinking about how to make :D

Before a Tip ;)
to exclude current user to select list you can use id<>{user id raw} in SQL WHERE

How to make your need
{user avatar {user select_field_alias raw}} recursive parsing of content plugin is not possible, but you can create a User List module to get the user with id equal to select_field_alias value.
- Create a Easy Profile User List Module
- Set into "Custom SQL WHERE" parameter this
a.id={user user_link displayed raw}

- Set to view this module on all pages
- Set to view this module into position "userlinkposition"
- Set to hide title
Now you can create a HTML delimeter to render this module with Joomla Built in LoadPosition Content plugin
- Create a HTML delimeter field and put this into description
{loadposition userlinkposition}
  1. more than a month ago
  2. Features Request
  3. # 3
Chuck_Hellige Accepted Answer
That works. Thank you again!
  1. more than a month ago
  2. Features Request
  3. # 4
  • 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.