Support

  1. Maxainen
  2. Support
  3. Monday, March 02 2015, 02:25 PM
Is it possible to add more conditions easily? If so, how? :)

The problem is that I need to catarorize my 300 members into 30 different groups
admin Accepted Answer
Admin
Hi,

you need to edit our code, this is simple.

- into file /administrator/components/com_jsn/models/forms/field.xml you can find XML code to load parameter, you need to add more conditions, example to add new condition add this to line 1038
<field name="spacer_conditions9" label="COM_JSN_CONDITION_LABEL" type="spacer" />
<field
name="condition_operator10"
label="COM_JSN_CONDITION_OPERATOR"
description ="COM_JSN_CONDITION_OPERATOR_DESC"
type="list"
>
<option value="0">COM_JSN_CONDITION_DISABLED</option>
<option value="1">COM_JSN_CONDITION_EQUAL</option>
<option value="2">COM_JSN_CONDITION_GREATER</option>
<option value="3">COM_JSN_CONDITION_LESS</option>
<option value="4">COM_JSN_CONDITION_CONTAINS</option>
<option value="5">COM_JSN_CONDITION_NOTEQUAL</option>
<option value="6">COM_JSN_CONDITION_NOTCONTAINS</option>
</field>
<field
name="condition_field10"
label="COM_JSN_CONDITION_TO"
description ="COM_JSN_CONDITION_TO_DESC"
type="parent"
table="jsn_fields"
level="2"

field_id="alias"

>
<option value="_custom">COM_JSN_CUSTOM_VALUE</option>
</field>
<field
name="condition_custom10"
label="COM_JSN_CONDITION_CUSTOMVALUE"
description ="COM_JSN_CONDITION_CUSTOMVALUE_DESC"
type="text"
/>
<field
name="condition_hide10"
label="COM_JSN_CONDITION_HIDE"
description ="COM_JSN_CONDITION_HIDE_DESC"
type="parent"
table="jsn_fields"
level="2"

field_id="alias"
multiple="true"
/>

<field
name="condition_action10"
type="radio" class="btn-group"
label="COM_JSN_CONDITION_ACTION"
description="COM_JSN_CONDITION_ACTION_DESC"
default="hide"
>
<option value="hide">JHIDE</option>
<option value="show">JSHOW</option>
</field>

<field
name="condition_usergroups10"
type="usergroup"
multiple="true"
label="COM_JSN_CONDITION_USERGROUPS"
description="COM_JSN_CONDITION_USERGROUPS_DESC"
default="0"
>
</field>



Now to activate these condition add new condition also in file
- /administrator/components/com_jsn/views/field/tmpl/edit.php at line 52
- /components/com_jsn/helpers/helper.php at line 216
- /plugins/system/jsn_system/jsn_system.php at line 288
- /plugins/jsn/usergroups/usergroups.php at line 37
$condition_suffix=array('','1','2','3','4','5','6','7','8','9','10');
  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.