Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Advanced Search to show Multiple user types but not all (multiselect)

8 years 5 months ago
Licenses:
JomSocial Active

Hello all, I searched the forums but didn't found exactly what i'm looking for. First : we use Jomsocial to administrate a quite big directory with firms, member firms, networks, people to contact in member firms, in different continents, countries, etc...

ISSUE SUMMARY:
On a Page "Members List", with have a header selector based on JomSocial Advanced Search. I need to show Firms AND Networks but NOT representatives nor Members. I use Advanced Search with profiletype hidden selector, to only allow people to choose other criterias as continent, country, ...


Then : Firms, Member Firms, Networks and Representatives are Profile Types.
Display : To Call my Page, i use an Advanced Search URL given parameters adresse like this :
/directory/advancesearch?operator=and
&keylist=0%2C1
&from=directory
&email=0
&field0=continent
&condition0=equal
&fieldType0=
&value0=Europe
&field1=country
&condition1=equal
&fieldType1=
&value1=Belgium
&field2=services_expertise
&condition2=equal
&fieldType2=
&value2=
&field3=sectors_expertise
&condition3=equal
&fieldType3=
&value3=
&limit=20
&profiletype=4
&option=com_community
&view=search
&task=advancesearch
&Itemid=295
ProfileType Selector doesn't allow multiselection, so i am confused on how to filter it the way i need.
I Saw this subject in Stack Overflow : stackoverflow.com/questions/24059773/cor...-name-in-get-request
but... thing is, this is what happens when i play manually with my parameters :
note (profiletype 3 is "Networks" and profiletype 4 is "Member firms", the ones i want)
"&profiletype=3&profiletype=4" only returns same as "&profiletype=4" (the last who talks takes all?)
"&profiletype=3,4" only returns same as "&profiletype=3" (the first who talks takes all?)

"&profiletype[]=2&profiletype[]=4" as suggested on stack overflow returns error 1054
"Error: 1054
Unknown column 'Array' in 'where clause' SQL=SELECT `field_id` FROM `#__community_profiles_fields` WHERE `parent`=Array"

What i Need is an OR/XOR action :
profiletype value should be 2 or 4, but not both.

Any ideas ?

8 years 5 months ago
Licenses:

HI, Mathieu.

Thank you for contacting us.
What you request could be achieved by customization of core script. But this would be a core hack.

Core hacks are not recommended nor supported as they may not working with future JomSocial releases and/or cause issues that won't be not supported. Users with core files hack often refuse to upgrade their installation to keep those hacks and they are stuck with outdated and unsupported versions. Also, core hack will be overwritten during upgrade.

So there are three options:

- you'll consider to hire a developer who could help you implement necessary changes
You may find them here: www.upwork.com/groups/jomsocial

- you post a feature request here: www.jomsocial.com/uservoice and gain votes of other users.

- or you may try this extension if it could help you:
extensions.joomla.org/extension/xius-for-jomsocial


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW