ISSUE SUMMARY: hello guys, i tried to publish the module "Dating seach" with the position side-bar 1 (socializa template) on my website and i cant select any categories (like gender...). How can i do please?
Thanks for your help,
Anais
STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER
Hi Anais,
please have a look at [joomla site root]/templates/socialize/css/custom.css line 75
#datingsearch_country, #datingsearch_gender {
display: none;
}
Hello Albert,
I did this because my network is only for women so i dont want to give them the impression that they can be looking for men :(
Do you know another trick to hide this category from the module?
Thanks,
Anais
Anais wrote: ISSUE SUMMARY: hello guys, i tried to publish the module "Dating seach" with the position side-bar 1 (socializa template) on my website and i cant select any categories (like gender...). How can i do please?
Thanks for your help,
Anais
Hello!
Sorry if i wasnt so clear on my ticket. My goal was to hide these categories, thats why i put this code in custom css. What i would like it is that they dont appear at all --> right now they appear but are not clickable? I saw on your roadmap that you are working on profile search module, Will it solve my issue please?
Thanks !!
Hi Anais,
we can do it in an other way:
copy default.php from [joomla site root]/modules/mod_datingsearch/tmpl/ to [joomla site root]/templates/socialize/html/mod_datingsearch/
edit it and remove this code (line 143 and 161)
<select id="datingsearch_gender" name="datingsearch_gender" class="joms-select">
<option value="" <?php if($gender=='')echo 'selected'?>><?php echo JText::_('MOD_DATINGSEARCH_GENDER'); ?></option>
<?php
foreach($field->value->gender as $key=>$data) { ?>
<option value="<?php echo $key; ?>" <?php if($gender==$data)echo 'selected'?>><?php echo JText::_($data); ?></option>
<?php } ?>
</select>
<select id="datingsearch_country" name="datingsearch_country" class="joms-select">
<option value="" <?php if($country=='')echo 'selected'?>><?php echo JText::_('MOD_DATINGSEARCH_COUNTRY'); ?></option>
<?php foreach($field->value->country as $data) { ?>
<option value="<?php echo JText::_($data); ?>" <?php if($country==$data)echo 'selected'?>><?php echo JText::_($data); ?></option>
<?php } ?>
</select>
Hi Anais,
please check it:
1. you put wrong file name at /httpdocs/templates/socialize/html/mod_datingsearch/, the file name must default.php not default.php.txt
2. you forget to remove the code at line 161
<select id="datingsearch_country" name="datingsearch_country" class="joms-select">
<option value="" <?php if($country=='')echo 'selected'?>><?php echo JText::_('MOD_DATINGSEARCH_COUNTRY'); ?></option>
<?php foreach($field->value->country as $data) { ?>
<option value="<?php echo JText::_($data); ?>" <?php if($country==$data)echo 'selected'?>><?php echo JText::_($data); ?></option>
<?php } ?>
</select>