By James on Sunday, 05 June 2016
Posted in Technical Issues
Replies 3
Likes 0
Views 757
Votes 0
Please add a specific class name to the AcyMailing Field App: JOOMLAROOT > media > com_easysocial > apps > fields > user > acymailing > themes > default > register.php

On Line 14 please add a class name after for form-group class.

Example:
<?php
/**
* @package EasySocial
* @copyright Copyright (C) 2010 - 2014 Stack Ideas Sdn Bhd. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* EasySocial is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined( '_JEXEC' ) or die( 'Unauthorized Access' );
?>
<div class="form-group acymailing<?php echo $error ? ' has-error' : '';?>" data-field-mailchimp>
<div class="col-sm-3"></div>
<div class="col-xs-12 col-sm-8 data" data-content>
<label class="checkbox" for="<?php echo $inputName;?>">
<input type="checkbox" name="<?php echo $inputName;?>" id="<?php echo $inputName;?>" value="1" /> <?php echo JText::_($params->get( 'title', JText::_('PLG_FIELDS_MAILCHIMP_SUBSCRIBE_TO_NEWSLETTER')) ); ?>
</label>
</div>

<?php if ($error) { ?>
<?php echo $this->includeTemplate('site/fields/error'); ?>
<?php } ?>

<?php if ($params->get('display_description')) { ?>
<?php echo $this->includeTemplate('site/fields/description'); ?>
<?php } ?>
</div>


With no additional class I can not see a way to adjust the CSS of this field on the frontend.

Thanks,
James
Hm, looks like there is a bug here as it should be using data-field-acymailing instead of data-field-mailchimp but you can actually use the data attributes as a selector. Here's an example,



Anyway, I will add a wrapper class to it
·
Sunday, 05 June 2016 15:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark, as you pointed out its using the wrong data-field otherwise I would have used this but was in fear it would have been changed in an upcoming release. Heck, I should have report it as a bug. Sorry.

Thank you as always,
James
·
Tuesday, 07 June 2016 20:37
·
0 Likes
·
0 Votes
·
0 Comments
·
No worry James, thanks for reported
·
Wednesday, 08 June 2016 12:25
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post