-
AuthorPosts
-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 8, 2018 at 6:58 am #1085488Hi 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
January 8, 2018 at 6:58 pm #1085616Hi,
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,
ArjenSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 9, 2018 at 1:10 am #1085653Hi Arjen,
You can hide the form via the menu item settings of that contact page.
Regards
January 9, 2018 at 6:03 pm #1085873Hi 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,
ArjenSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 10, 2018 at 8:27 am #1085992Hi 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
January 10, 2018 at 4:09 pm #1086107Dear Saguaros,
This works perfect..! Thank you
kind regards,
Arjen -
AuthorPosts
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.