By Alexandre Cayer on Saturday, 01 November 2014
Replies 5
Likes 0
Views 464
Votes 0
Hi SI,

Can you guys add an ADDRESS 1 and ADDRESS 2 placeholder text info to show:

ADDRESS1: ex: 123
ADDRESS2: ex: Baron avenue

I would like to prevent, by showing example, some input typo or mistakes.

2 text input to congif file and a quick fix to the theme view!

Thanks
Hello Alexandre,

The reason that we used a language file is because some users uses EasySocial on multiple languages and adding a "settings" to this just adds an additional step for them

What you can do is to perform language overrides so that when you update in the future, your changes will not be lost
·
Saturday, 01 November 2014 15:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alexandre,

Not too sure if I understand you correctly here but do you mean the placeholder? You can always add this in the language file actually.
·
Saturday, 01 November 2014 14:26
·
0 Likes
·
0 Votes
·
0 Comments
·
A config option to have a placeholder in both address 1 and address 2 to setup through the interface instead of hacking the lang file which get replace every time the custom config setting doesn't ... something like (adding placeholder_address1 and placeholder_address2 to config file)

<?php if ($params->get('show_address1')) { ?>
<li>
<input type="text" class="form-control input-sm validation keyup length-4"
placeholder="<?php
if (strlen($params->get('placeholder_address1') < 1)
echo JText::_('PLG_FIELDS_ADDRESS_ADDRESS1_PLACEHOLDER', true);
else
echo $params->get('placeholder_address1')
?>"
name="<?php echo $inputName;?>[address1]"
value="<?php echo FD::string()->escape($value->address1);?>"
data-field-address-address1
/>
</li>
<?php } ?>
<?php if ($params->get('show_address2')) { ?>
<li>
<input type="text" class="form-control input-sm validation keyup length-4"
placeholder="<?php
if (strlen($params->get('placeholder_address2') < 1)
echo JText::_('PLG_FIELDS_ADDRESS_ADDRESS2_PLACEHOLDER', true);
else
echo $params->get('placeholder_address2')
?>"name="<?php echo $inputName;?>[address2]"
value="<?php echo FD::string()->escape($value->address2);?>"
data-field-address-address2
/>
</li>
·
Saturday, 01 November 2014 14:49
·
0 Likes
·
0 Votes
·
0 Comments
·
lol oki i was suggesting :P

Even dho, by default this option without being fill left it to default hehehe just hate to lookout for lang token all the time :P
·
Saturday, 01 November 2014 15:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for understanding Alexandre
·
Saturday, 01 November 2014 15:19
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post