genelaratonda
Forum Replies Created
-
The black bar is back at the top, but when I click on Dashboard, the dashboard does not come up.
Champ,
If you read my problem it’s not with the paid extension.
Thank you.
SOLVED: I deactivated both snippets above.
I found this in a search engine: https://docs.ultimatemember.com/article/1577-profile-tab-with-cf7-form-inside
The first thing I noticed in the image was a Ultimate Member “Profiles Tab” option that I didn’t have. I find out it’s a paid add on to UM. I already am paying the $250 for the extensions pack and using the maps function (“User Locations”), so I turned this on.
Then I pasted the shortcode of the Forms 7 plugin’s page into a new Profile Tab created in that new Profiles Tab option I didn’t have before. Waaaaaay easier… and it worked.
Champ, thank you soooo much anyways for trying to help. You are amazing at what you do. Please keep UM the best it can be. I think I’m sitting on all the components to create my own social media site specific to the cause I’m seeking justice for. Thank you again anyways.
If you do see this again, and wanna throw me a couple simple modifications I’d appreciate it.
1.) I wanna change the About Profile Tab’s icon from a person to the available Star Wars Rebel Alliance icon (that is available! lol love it.) I can do it for the creation of any other tab, but that one. Can you help?
2.) Is there a way to save space in the toolbar and make the login and logout buttons as one button that toggles depending on whether you’re logged in or logged out?If I need to open another thread just say so. If you can’t do it, let me know. Grace and peace to you.
Gene
gene @ laratonda.comHow do I pull the user members name of the profile and put it into the To: section of the form mail?
<br><br>The spinner just spins when I submit the form.
<br>
If I deactivate the snippet that is supposed to pull the email address from the forms 7 plugin, I can send email, but it only goes to me, the administrator.- This reply was modified 3 years, 2 months ago by genelaratonda.
- This reply was modified 3 years, 2 months ago by genelaratonda.
Here is the form for my profile.
I have the snippet above enabled. I have WP SMTP plugin installed. SMTP is working. When I try to submit the form the spinner just keeps spinning and the message is never sent. Any ideas what’s making it stall?
All email goes to me the admin, regardless of whose contact form I submit to.
I’ve set user_email as the private email address (only visible to admins and the member) and secondary_user_email as the public email address.
This code snippet is not pulling the user_email. If i deactivate it, the email goes to me, the admin. If i activate it, the form never submits, the icon just spins and spins.
add_filter( 'wpcf7_mail_components', 'um_020821_change_email_to_profile_owner_email' ); function um_020821_change_email_to_profile_owner_email( $args, $contact_form, $class){ if ( class_exists( '\WPCF7_Submission' ) ) { $submission = \WPCF7_Submission::get_instance(); $page = $submission->get_meta( 'container_post_id' ); if ( intval( UM()->options()->get( 'core_user' ) ) == intval( $page ) ) { if ( ! empty( $_REQUEST['_wpcf7_um_profile_id'] ) ) { $user = get_user_by( 'ID', absint( $_REQUEST['_wpcf7_um_profile_id'] ) ); if ( ! is_wp_error( $user ) && isset( $user->user_email ) && is_email( $user->user_email ) ) { $args['recipient'] = $user->user_email; } } } } return $args; } add_filter( 'wpcf7_form_hidden_fields', 'um_020821_add_profile_id_on_cf7' ); function um_020821_add_profile_id_on_cf7( $fields ){ if ( um_is_core_page( 'user' ) ) { $fields['_wpcf7_um_profile_id'] = um_profile_id(); } return $fields; }
- This reply was modified 3 years, 2 months ago by genelaratonda.
- This reply was modified 3 years, 2 months ago by genelaratonda.
- This reply was modified 3 years, 2 months ago by genelaratonda.
- This reply was modified 3 years, 2 months ago by genelaratonda.
Excellent! Thank you for all your help.
The only thing I have left to do is find the option to not list the email address for those that don’t want their email addresses publicly visible. Would be great to have a “Contact me” hyperlink to the members profile page contact tab for those who chose not to have their email address listed.
So I added both code snippets you shared above to the Code Snippets plugin and added the correct shortcode where you specified. The tab says it sent the email, but I don’t get anything in my mailbox.
1.) Once the contact form is created… DONE
2. )you need to copy the Contact form shortcode to the custom profile tab… WHERE DO I PUT THE SHORTCODE? IN THE functions.php file ?
3.)And then use the following code snippet to use the currently viewing Profile’s email address as a receiver of the Contact form… WHERE DO I PUT THIS CODE? IN THE functions.php file?Can I share my screen and have you show me where you’re saying to do this?
Thank you Champ.