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.

Add a custom profile field in dating_search module

9 years 6 months ago
Licenses:
JomSocial Expired Socialize Expired

Hello,
it looks like to www.jomsocial.com/forum/modules-plugins-.../21193-dating-search .
Unfortunately didn't get the details on the how to do it.
We just want to add a custom profile field, before the gender field, in our case "Profil Certifié" radio button type (yes/no)
Would you mind to help us on it ?
We've already use template overriding for this module, in order to not display the country field.

Regards,
L

9 years 6 months ago
Licenses:

Hi There,

I not describe the details on that post because the changes at core module it self and little bit complex.
could you please provide me FTP access detail, by editing your first post at this topic. put it at site info form.

I will do it for you. and will explain it to you about the changes.

Regards,
Albert

9 years 6 months ago
Licenses:
JomSocial Expired Socialize Expired

OK, we've updated the ticket info
Cheers,
L

9 years 6 months ago
Licenses:

Hi,

here the changes:
1. /templates/socialize/html/mod_datingsearch/default.php i put this new code

var profilvalid 	= joms.jQuery("#datingsearch_profilvalid").val();
.....
if(profilvalid)
{
	joms.jQuery("#datingsearch_hidden").append('<input type="hidden" name="field5" value="<?php echo $field->code->profilvalid; ?>"><input type="hidden" name="condition5" value="equal"><input type="hidden" name="value5" value="'+profilvalid+'"><input type="hidden" name="fieldType5" value="select">');

	if(keylist!="")
	{
		keylist += ","
	}
	keylist += "5";
}
....
<p><?php echo JText::_('MOD_DATINGSEARCH_PROFILVALID'); ?></p>
<select id="datingsearch_profilvalid" name="datingsearch_profilvalid" >
    <option value="" <?php if($profilvalid=='')echo 'selected'?>></option>
    <option value="Oui" <?php if($profilvalid=='Oui')echo 'selected'?>>Oui</option>
    <option value="Non" <?php if($profilvalid=='Non')echo 'selected'?>>Non</option>
</select>
2. /modules/mod_datingsearch/mod_datingsearch.php I put this new code
$field->code->profilvalid  = 'FIELD_PROFILVALID';
....
$profilvalid = JRequest::getVar('datingsearch_profilvalid', '', 'GET');
3. and make language override at joomla language manager:
MOD_DATINGSEARCH_PROFILVALID="Profil Certifié"

Regards,
Albert

9 years 6 months ago
Licenses:
JomSocial Expired Socialize Expired

Hi,
thank you very much for you time and your support. Of course it works !
Cheers,
L

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