-
AuthorPosts
-
July 27, 2017 at 8:36 pm #830816
Hi guys,
First I don’t expect you to come up with a solution for me here if it is beyond the scope of this support forum. Here is the challenge:I am trying to add an enfold contact form to the bottom of each profile page. However, as I have a template for user page, it is not possible to add contact form with separate forwarding email for each user. Is there any way that I can add a code or shortcode to Enfold contact form, so when a visitor is visiting a user profile it automatically populates email of that user into Enfold contact form?
You can see a user profile below:Thanks for help in advance.
July 31, 2017 at 12:06 pm #832076Hey afarahani,
Here are some form plugins overview for you:
https://www.shoutmeloud.com/best-form-builder-plugins-wordpress.html
Still, seems like for all of them, you will need to get the behavior customized, which you can hire a freelancer to do.
If you need further assistance please let us know.
Best regards,
VictoriaJuly 31, 2017 at 7:18 pm #832360Hi Victoria,
Thanks for the info. However, I’d like to know if I can add a piece of php to retrieve email address from e.g. user profile URL and feed it into enfold contact from at the bottom of the page. Do you have a solution for this or do you think if I can feed an email to an enfold contact form?thanks.
August 4, 2017 at 7:45 pm #834478Hi,
Unfortunately, this would be beyond the scope of our support however we would like to provide you some pointers :)
We do have “avf_form_sendto” filter that you can use to modify recepient’s email. Here is an example
add_filter('avf_form_sendto', 'avf_form_to_mod', 10, 3); function avf_form_to_mod($to, $new_post, $form_params) { $to = " (Email address hidden if logged out) "; return $to; }
You can adjust the code to replace “to” with your members email
Best regards,
YigitAugust 5, 2017 at 12:20 am #834532Hi @yigit
Thanks for the pointer. I understand this is beyond the scope of this forum, but I have seen many helps like that on this forum from you guys. Would you kindly take more steps here and help me come up with solution?thanks.
August 5, 2017 at 1:21 am #834543Hi,
To be totally honest with you, i have used Ultimate Member plugin in the past however at the moment i cannot remember if email field was available on it or not. If it is, you can simply add a condition to code i posted above to check if it is a member profile, if so, check once again if email is set, if it is, you can use it.
Alternatively, you can use this plugin to add custom fields to your member pages – https://wordpress.org/plugins/advanced-custom-fields/ and then using conditions, you can get current users email address (through custom fields) and set “to” value to that email address.
We are trying to help as much as we can when we can however forums are very busy at the moment therefore we can only provide pointers for now. If anything is not clear, please let us know and we will try to help as much as we can.
Best regards,
YigitAugust 5, 2017 at 10:27 am #834679Thanks @Yigit.
email field is available on UM. Actually I think it uses the same email address for each user as they submit for registering on wordpress website. I am wondering how I can get the current user email address. And then Ho can I combine it with enfold contact form. Too complicated for me :)August 5, 2017 at 11:26 am #834703Hi!
This code is what you need from Enfold’s end – https://kriesi.at/support/topic/adding-enfold-contact-form-to-ultimate-member-user-profile/#post-834478 then you would add additional lines to get that information. Please contact plugin authors and provide this code to them as well. Since i am not very familiar with the plugin, plugin authors should be able to help you out better :)
Cheers!
YigitAugust 8, 2017 at 4:33 pm #835904August 8, 2017 at 6:26 pm #835980@yigit
Another issue here. The contact form that I inserted on the user page of the Ultimate Member, is not working by itself. I mean even without having above discussion applied, the simple contact form doesn’t post anything to the admin email in the form!Do you know why it is not working by itself?
thanks.
- This reply was modified 7 years, 4 months ago by afarahani.
August 9, 2017 at 10:57 pm #836676@yigit
Hi,
I have been in contact with Ultimate Member plugin author. It seems Enfold contact form has conflict with UM user profile page as the contact form doesn’t work on that page. I am wondering if you guys can solve this issue or it is also beyond the scope of support here?Thanks,
AmirAugust 12, 2017 at 3:57 pm #837930Hi Amir,
You’re building quite a complex functionality, that requires a lot of custom code, you should have hired an freelancer to do it for you, since all of these issues are beyond the scope of our support.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.