Can I use Contact Form DB plugin in my wordpress site for saving and displaying data without sending emails - database

I want to create a wordpress custom plugin for saving three fields of data and also an image of the same from wp-admin area for every item. It should be able to display all these items in a page.
When I searched for a plugin I found Contact Form DB plugin which can be used as contact form 7 plugin extension for saving data send through it..
http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/
Can I use Contact Form DB plugin in my wordpress site for saving and displaying data without sending emails? It also sends email but I only want to store and display data.
Another problem:- I'm already using a contact form from contact form 7 plugin for sending email enquiries.. Will the changes for saving data in contact form 7 affect its working?
Please help me with any reference or solution as I'm new to wordpress and currently don't know about plugin development.
Any help will be greatly appreciated..
Thanks in advance.

You can use wpcf7_before_send_mail action hook to prevent form being sent to email..
(I have tested this with "Contact Form DB" plugin - it saves data before email is filtered)
To filter only specific Form IDs - use something like this:
function wpcf7_skip_email_sending($wpcf7_data)
{
if ( in_array($wpcf7_data->id(), array(2,3,7)) ) {
$wpcf7_data->skip_mail = true;
}
}
add_action("wpcf7_before_send_mail", "wpcf7_skip_email_sending");
(For older CF7 version you might have to change $wpcf7_data->id() to $wpcf7_data->id)

If you setup the Contact form 7 and put in a junk or noreply email address to send the message to on Contact form 7 it will still log the message being sent in the contact form DB
So in the shortcode template send message to junk#yourdomain.com and whenever a user submits it will try to send to that email and will still log the email as being sent. Personally I would actually create that email address so that your smtp doesn't get flooded with bounce back from smtp server.

To avoid sending emails, without even touching the files, the fastest way is to add in the additional settings tab
demo_mode: on
or
skip_mail: on
With Contact Form DB both works fine. The difference is that demo_mode won't work with Flamingo.

Related

Track user acquisition on exit - Google Analytics

Is it possible to get a current users acquisition channel ( Facebook, Glassdoor, etc... ) and append it to a string during an onSubmit?
We have a careers page on our site with a search form that when filled out and submitted takes the user to a 3rd party software we use for our job listings. What we would like to do is track the users that submitted that form so we can see what channel lead to them looking for a job.
Ex:
User visits our Facebook page and clicks link to our site. Once on our site they fill out the job search form and is sent to our jobs listing site. We use JS to create the onSumbit url and fill it with the fields they answered and would like add another "acquisition" parameter to it with said acquisition.
You can store the referrer in a cookie if this is different from the domain of your website. In this way you can know where the user came from and use that value in the string you send to submit.

Send email with reset password link based on project

I have two projects where both of them use same firebase project. My problem is I want forgot password in both of the projects and both of them should point to different url in the respective project. Any help will be appreciated.
What I have achieved?
I have done forgot password for the first project and I get a email with link, for the second project I want email with different link (I am getting same link).
Any help will be appreciated.
There is only one password reset template per Firebase project, so you can't use the built-in template password reset flow to send different emails to different users in a single project. This usually isn't a problem, as the apps in a Firebase project are meant to be part of a single logical application.
If your use-case must use a single Firebase project, have a look at implementing a custom email handler, which is the page that the email links to.
If that is not enough, you can take control of the complete password reset flow yourself. This gives you full control of the emails that are sent, but does mean that you also have to arrange how to send that email and all actions from it yourself. For the actual password change, you'd then typically use the Admin SDK to update the user profile in a trusted environment.

Google form Integration with saleforce

i have created a Google form . I integrated the form with Salesforce console application by using rest api and Java scrip code backend.
when I fill data and submit the form,the record has to be created in the Salesforce.
My problem/requirement is I attach an image file in form and submit it should populate in the Salesforce record related list note & attachments. how to do it please say be any solution I request u all
Thanks in advance
I think First you want to take a list of attachment in the apex class.Taking the condition that attachment size not equal to zero and looping through that, by taking each individual object like for Eg:
attachment a=new attachment();\
a.ParentId = objectName.id;
listattachmentname.add(a);

Send an email when records are added to Firebase database

I would like to send an email to the signed user with the data that was added by the user to the Firebase database. I am using AngularJS UI. Is there are Firebase module which will trigger email with the data being added to the signed user.
Thanks, Rajesh
You should look into Cloud Functions for Firebase. This will let you write database triggers that run on Google servers that can act whenever data in your database changes. There is plenty of sample code the illustrates some of the many things you can do, including one specific example that shows how to send email in response to a change in the database.

How to implement Facebook Post Type objects in GAE?

I a new programmer and trying to implement a facebook type "feed" in my application. Like Whenever a user do some changes in his profile his linked profiles will get to know that in the form of news feed.
But I am stuck on that as I thought whenever any user saves any data (like "News", "Blog", "Event" or any "Comment") just send the id of the respective classes to the linked profiles and they will see it. Since the id is not generated before the object is saved , the problem is how can I send them. I thought of following workarounds but each have some problem.
Whenever a user posts a news .... a Post object will be made and added to User's Post Collection.
But How do the other users will knew about it.....
1) Send them the id .... but when the id is not created how can you send them the id.
2) Send them the post message and when ever they will click them ... the latest post to them from the particular user will be shown.. but if more than 3 messages then which will be shown?? Shown by the post creation Date no post greater than that date is shownn....but he needs to be shown newer posts..
3) Save the post in all followers feed. the data will be much larger then
4) all the followers on login will check all the persons they are following and save their feed after the time stamp? How to implement this as the Post is saved in User's Profile so I would have to check all the following person and then just check the feed and show them on his feed box; I think I would have to use batch Processes. Processing will take much longer.
I am using objectify-appengine to do operations on GAE.
Any help is appreciated
Are you wanting to update the page with posts in real time like on Facebook and Twitter? To achieve this on Google App Engine you can use the Channel API, which works in conjunction with Javascript to listen for new data and update the DOM.
This talk at Google I/O 2009 by Brett Slatkin describes exactly the pattern you should use for this.

Resources