Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Saguaros Moderator
    #1085488

    Hi Arjen,

    It’s default form of Joomla contact component, when you add recaptcha, doesn’t it work with default Joomla template? Kindly check this to make sure that it works with standard Joomla first.

    If it works, then there is problem with JA Alumni template.

    Regards

    aschultinga Friend
    #1085616

    Hi,
    I’ve added recaptcha now, and the recaptcha is working, but the form isn’t sending emails. The normal mail function (PHP mailer) is working although on the website (and other forms are working also).

    When I would want to get rid of the form, what is the best way to do this? which part of the code do I have to change/delete..? Just hiding the contactform in the Contact settings or the settings of the contact component, isn’t enough, the contactform is still there…

    Thank you,
    Arjen

    Saguaros Moderator
    #1085653

    Hi Arjen,

    You can hide the form via the menu item settings of that contact page.

    Regards

    aschultinga Friend
    #1085873

    Hi Saguaros,

    That’s what I expected, but strange things happen.. While i’ve put the menu item setting for the form (of both menu items.. because i’ve two menu items with contactperson) to ‘hidden’ , the contactform is still appearing.

    I thought that it might have to do with the default.php file in the templates/ja_alumni/html/com_contact/contact folder. It looks like there is an override for case plain in this document that will show always a form, regardless of the menu item setting. When I cancel this piece of code

    <!-- Show form contact -->
                    <div class="col-sm-8">
                        <div class="contact-left">
                            <div class="form-title">
                                <h3><?php  echo JText::_('TPL_CONTACT_ASK') ;?></h3>
                            </div>
                            <?php  echo $this->loadTemplate('form');  ?>
                        </div>
                    </div>
                    <!-- End Show form contact -->  

    the form disappeares. But I would like to know whether this is the only / the best solution?

    Kind regards,
    Arjen

    Saguaros Moderator
    #1085992

    Hi Arjen,

    It seems that it should have a condition here to show the form, pls add a if statement for above piece of code so it will look like:

    <?php if ($tparams->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)) : ?>
    <!-- Show form contact -->
    <div class="col-sm-8">
        <div class="contact-left">
            <div class="form-title">
                <h3><?php  echo JText::_('TPL_CONTACT_ASK') ;?></h3>
            </div>
            <?php  echo $this->loadTemplate('form');  ?>
        </div>
    </div>
    <!-- End Show form contact -->  
    <?php endif; ?>

    in the file: root/templates/ja_alumni/html/com_contact/contact/default.php

    Then when you set to Hide the contact form via menu item settings, it will work.

    Regards

    aschultinga Friend
    #1086107

    Dear Saguaros,

    This works perfect..! Thank you

    kind regards,
    Arjen

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 2 voices, and was last updated by  aschultinga 6 years, 10 months ago.

The topic ‘Contactform in JA Alumni’ is closed to new replies.