I don’t fully grasp this. Some things I can tell you:
1. There isn’t a way to customize the admin details page
2. If you are talking about adding additional information into form entries, see Changing Form Data Before it is Saved
3. I think is_author relates to the person who created the page that includes the form, not the user submitting the form. I don’t see a relationship between the two. Author would always be the same person.
Sorry for the bad explanation.
My users are registered in WordPress before submitting data via CF7. With the messaging system I am using (which uses WordPress user data) I can dynamically enter Usernames in the To field, except when using it in conjunction with CFDB. I understand that CFDB will always put the same person as the Author (it is always admin), therefore I get the messages, the user (Author) doesn’t. In WP if a user submits data they are recognised as having a post and are therefore an Author.
As submit_time is a unique identifier I wondered if there was any way to match submit_time with the WP Author role/username?
I’m not sure how changing form data before it is saved could work, unless it could pass the submit_time data to the WP database?
I still don’t understand.
1. If you are using some messaging system, I don’t see how CFDB interacts with that to not allow you to dynamically enter fields in the messaging system input.
2. CFDB captures the logged in user; has nothing to do with post authors.
I suspect that CFDB is not going to support integrating into your messaging system.
Hi Michael,
I’m wondering if Form to Post would help with this? In order for the Messaging system to work it has to identify the current logged in user and the author of the post. Using CF7 and CFDB means that the person who submitted the form is not recognised as an author because the submitted data is not a post. I really don’t want to lose all the work I’ve done with CFDB, it’s fantastic.
The only other solution I can come up with is to populate a CF7 form (as an e-mail) with data from CFDB – is this possible using submit_time as the identifier?
Is there anyway to link WP User table to CFDB table?
Thanks
Hi Michael,
I’ve had a re-think about this…
Would it be possible to use Add Link to Entry in CF7 Email for what I am trying to achieve? I don’t understand how to use it, but it might be what I need.
I need a link from the details page to an email form. This must get the recipients data from CFDB (using submit_time) and only display the recipients username held in CFDB (email should not be visible and the sender is the logged in user).
Here’s a link to the website website (you will have to click on ‘View Details’ to see the ‘Contact’ button). This will show you what I am trying to do.
Could you have a look at this for me if I send you my log-in?
Many thanks
Hi,
I still don’t understand exactly what you are trying to do. But I understand that when a user submits a form, he has to be identified as an author of…something?…then somehow you have some messaging thing and that is supposed to read that value…from what?…to populate a field.
In form-to-post, if a user is logged in when he submits a form, then a post is created with him as the author. I don’t know if that helps.
I’m not familiar with “Add Link to Entry in CF7 Email”.
Clearly CFDB doesn’t support anything with authors. It sounds like you are trying to integrate plugins here. I can only speak for what CFDB can do. CFDB will capture the user id of the user who submitted a form if he was logged in when submitting. If you have a specific question about how to write a short code or PHP to get that value, or how it is stored in the DB, I can answer that. But I can’t speak to integrating it with some other plugin that I don’t know anything about.
Hi Michael, thanks for spending time on this for me.
I think I will need your help to get the user ID and/or email address out of the DB. Basically I want to link to a CF7 email form and fill the To: field dynamically with the email address of the person who submitted the entry and the From: field with the currently logged in user. I know I can hide the To: field if I use the CF7 dynamic text extension, I just don’t know how to get that data out of CFDB.
The “Add link to entry in CF7 email” is on the CFDB website – page_id=1220, which is why I thought about using a CF7 form instead of a messaging plugin.
I think I understand. Ignoring CFDB and focusing on CF7, you can use CF7’s wpcf7_posted_data hook to register a function. There you can add or change form fields before they get saved to the DB by CFDB. For example, set a “From” field to the value of the logged in user. That would not involve CFDB. This will require you do some coding and understand how wpcf7_posted_data works.
You also want to fill in the “To” field…I don’t understand how you expect to automatically fill in this value to something different than the logged in user. How would the system know what to put. Query the DB but for which email? I don’t get it.