By Brian Turcsanyi on Monday, 21 May 2018
Posted in General Issues
Replies 1
Likes 0
Views 534
Votes 0
hi - i am using the ACYmailing registration field in the custom fields on the easysocial registration. Is there a way to turn the default from NO to YES. This would be opting in by default instead of requiring them to change it to optin. Photo attached.
Hey Brian,

This isn't possible currently but what you could do is to modify the theme file /media/com_easysocial/apps/fields/user/acymailing/themes/default/content.php and at line 17, locate the codes below:

[gist]
<input type="checkbox" name="<?php echo $inputName;?>" id="<?php echo $inputName;?>" value="1" <?php echo $value ? ' checked="checked"' :'';?> />
[/gist]

Replace it with,

[gist]
<?php
$value = $value === '' ? 1 : 0;
?>
<input type="checkbox" name="<?php echo $inputName;?>" id="<?php echo $inputName;?>" value="1" <?php echo $value ? ' checked="checked"' :'';?> />
[/gist]
·
Monday, 21 May 2018 22:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post