I have a website that is using the default Contact form along with other data from the Contacts component and I need to add a file upload function to it.
I know there are many form components out there, I have used many of them but this site is using the default contact form from the Contacts component and also some other contact data here and there. So I don't want to have to build a whole new Contact page and form just to add file uploading. The file I want to update is templates/TEMPLATENAME/html/com_contact/contact/default_form.php
I am not a programmer unfortunately and even though I found a possible solution here: http://www.rupostel.com/joomla/hacks/how-to-add-uploads-to-your-joomla-contact-form, I was not able to follow it completely. I downloaded and activated the plug-in but nothing showed up.
Can anyone assist?
Thanks in advance.
Paul
Related
I have contact form 7, form in my Wordpress site.
I want when form is submitted (and mail has sent) to pass via post method, the data to onother PHP file. In my last PHP file I have code to send form's data to a CRM system.
I have searched over the internet for a solution. Some people say its easy some other not. But at the end there isn't any example on how to do that.
Also I did not found anything in CF7 documentation.
What I found is hook and actions.
The only logical solution I found is that in this link .
But I don't understand where to put the code and how to call it.
The best way is to create a custom Plugin. Then you can add the code listed in your link to your Plugin code.
A guide to Plugin development can be found here. A good Plugin template to get you started can be downloaded from here.
I am trying to help a friend who's original developer bailed on this site. The theme is Webicompanyz and I see its using the Contact Form 7 plugin. In one of the pages is the following code snippet:
[include_contact]
This is including a form, but i cant tell where from. All the form includes from the Contact Form 7 plugin are different and I dont see this form listed anywhere. How can I tell where this code snippet is pulling from?
What you are seeing on this page is called a 'short code'. When WordPress reached one of these blocks it knows to fetch the missing content.
Short codes are widely used in plugins and widgets as an easy way to create dynamic content.
For your particular case
I would suggest viewing documentation for Contact Form 7
On one of the sites i need to do some changes on for a client i am having trouble finding something.
On the standard Joomla 3 registration system a custom field was added to the form, but that form does not email to the admin when someone registers, please can someone point me in the correct direction on where i can make that field be sent in the email.
I have looks on quite a few pages on the net but have not come right with any of the answers that i found. I have also tried going to most of the php files to see if i cant find something but i am not having much luck.
Unfortunately that email is hard coded; it is really a legacy from Joomla 1.0. What you would probably want to do is turn off the core notification system and instead use a plugin that would be triggered with the onUserAfterSave event and use similar code to what is in the core. You will find that in the activate($token) method in the frontend registration model for com_users.
The plugins/user/joomla plugin gives an example of how to build an email, bit in your case you would want to build it when the user is created in the site application (isSite() == true). You can also look at the contactcreator plugin in the same folder; it also uses the onUserAfterSave event.
I'm developing a site using joomla template. I want to create a registration form & I design it with html in a Joomla Article. For data passing to db I have created a PHP file. But I have a problem in submitting data. I gave form action="php file name" & I save the PHP file in index path. But system is not working. Please tell me where I need to save that PHP file & how to link my joomla article & PHP file ???
Create a custom file upload component and upload your php files. Create a menu item for your component and assign a PHP file to menu you want to show your registration form on and finally at front-end include PHP file in your view.
Create a folder inside plugins in main directory.
Name it whatever you like, lets say, "customplugin". Put your form handling file in that.
Give the absolute path of this file in the form action URL.
This should work. Also, kindly check if the form tags are coming correctly in the article.
As others are saying, you are actually not using the Joomla CMS properly, but anything and everything is possible...
Mistakes are always forgivable, if one has the courage to admit them.
-- Bruce Lee
I inherited a website project and found out it was working on the modx CMS.
I need to add a captcha to the contact form but I'm not used to modx.
If i'm correct, all the HTML parts are located inside the database, so I went searching and found a contact page in the 'modx_site_templates' table. Inside this record there is content:
{{header_detail}}{{navigation}}{{main_form}}{{footers}}
Now the next step: I cannot seem to find where this main_form is located and how can I put a captcha on it?
Thanks in advance!