Captcha's position

GK User
Sat Oct 31, 2015 3:25 pm
I have enabled recaptcha in my local site but it is positioned in between subject and message.
FYI. I have made no customizations
User avatar
Fresh Boarder

GK User
Sat Oct 31, 2015 3:32 pm
Hi,
if you want I can show you how to move under (but url requested).
But in my option it's not so bad location anyway , only captcha header label can be hidden :whistle:
User avatar
Platinum Boarder

GK User
Sat Oct 31, 2015 3:36 pm
I'll report that issue to our devteam.
User avatar
Moderator

GK User
Sat Oct 31, 2015 3:40 pm
You can simply fix that by editing this file:
/templates/gk_photo/html/com_contact/contact/default_form.php
and moving this block of code:
Code: Select all
               <?php //Dynamically load any additional fields from plugins. ?>
               <?php foreach ($this->form->getFieldsets() as $fieldset): ?>
               <?php if ($fieldset->name != 'contact'):?>
               <?php $fields = $this->form->getFieldset($fieldset->name);?>
               <?php foreach($fields as $field): ?>
               <?php if ($field->hidden): ?>
               <?php echo $field->input;?>
               <?php else:?>
               <p> <?php echo $field->label; ?>
                    <?php if (!$field->required && $field->type != "Spacer"): ?>
                    <span class="optional"><?php echo JText::_('COM_CONTACT_OPTIONAL');?></span>
                    <?php endif; ?>
                    <?php echo $field->input;?></p>
               <?php endif;?>
               <?php endforeach;?>
               <?php endif ?>
               <?php endforeach;?>

one or two lines down.
User avatar
Moderator

GK User
Sun Nov 01, 2015 1:46 pm
Thanks Cyberek.
User avatar
Fresh Boarder

GK User
Sun Nov 01, 2015 2:39 pm
No problem.
If you have any additional questions regarding this topic, please let me know.
User avatar
Moderator

GK User
Thu Dec 31, 2015 10:08 am
This change was also added to our template and will be delivered with next release.
User avatar
Moderator


cron