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.

Custom Fields Issue

10 years 2 months ago
Licenses:
JomSocial Expired

Hi,

When we create some custom profile fields like GENDER and COUNTRY they create them fine but when a user selects the values at the front end (ie Male / United Kingdom) it actually stores their answers in the database as COM_COMMUNITY_MALE and COM_COMMUNITY_LANG_NAME_UNITEDKINGDOM.

Is this something you can help us with

Thanks
Carly

10 years 2 months ago
Licenses:

Hi, Carly Southern.

It is designed to work that way. Thanks to it gender is automatically translated on multilanguage sites.

But you could change that :) But it involves a core file hack :( It means that it will be overwrite during JomSocial upgrade... so you'll need to have a safe copy of you customized file.

Find this file: ROOT/components/com_community/libraries/fields/gender.php

and change in 38 line this:

$options = array("male" => "COM_COMMUNITY_MALE", "female" => "COM_COMMUNITY_FEMALE");

to this:
$options = array("male" => "Male", "female" => "Female");

From now on, in db will be stored text instead of language constant.


- 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
10 years 3 weeks ago
Licenses:

Hi, Carly.

We have not received any response back from you in over 7 days, and would like to know if you consider this issue to be resolved. If you have any further questions, simply reply to this post.


- 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