UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

Crash course on adding custom field to mod search

Alexandre Cayer · ·
1:29 PM Friday, 21 November 2014
None
Hi Guys,

I have looked into the view.html of users, its method search and the template of the mod search. I'm aware that the mod push 4 array: conditions, criteria, datakeys & operators.

Operators is pretty straightforward... however could you provide the full list. (A)
Conditions seems to push the field value to analyse against.

I'm less sure about how criteria and datakeys are working... especially since I'm not aware how the method, and it's option ($model->getUsersByFilter('0', $options, $searchOptions);) are really working. (B)

I will want to had a select field (or select2 whatsoever) to check against a custom field in one's profile. Like Profession with a lot of profession.

Not sure about the CLEAN UP loop (C) ... which seems a clean up method for complex condition... and the searchOption if-statement (D)

A little crash course would be welcome, in general, and on A, B, C & D above, which I'm sure could become a future page of your I-HOPE-SOON-TO-BE documentation :D

Thanks Guys,

EDIT... : and why the criterias is XXXXXX/xxxxxxx

[criterias] => Array
(
[0] => JOOMLA_FULLNAME|joomla_fullname
[1] => GENDER|gender
)
The replies under this section are restricted to logged in users or users with an active subscription with us