Hello. I thought I would recommend code suggestion for you.
Basically, when someone is on the users profile page, I wanted everyone to see this, with user name of the profile you are visiting and who they were going to contact: in bpucf-form.php
<?php // if ( bp_is_my_profile() ) : ?> <div id="message" class="bp-template-notice error" > <p><?php _e( "Non-members who are visiting this website can email, ", 'buddypress-user-contact-form') . bp_displayed_user_username() . _e(". User can disable e-mail form in their Settings.", 'buddypress-user-contact-form' ); ?></p> </div> <?php // endif; ?>
Hi JJ,
Thank you for the suggestion. I will add it as an option in the next release(early next week).Regards
BrajeshHi JJ,
can you please clarify this message.Do you want to show the message to visitors of profile.
for example, a user visiting John’s profile will see
You are contacting John.
Is that the case? or do you want to show the message to profile owner about who can contact them.
Please help me understand. I am planning the release tomorrow and will appreciate you feedback.
Regards
BrajeshThank you.
But we should not show the same message to the profile owner and visitor( any user logged in or out).It will not feel natural to show me a message like
This is Brajesh's contact form or something similar
Regards
BrajeshWell, allow me to explain… .
User who have the form, seeing it for their first time, will be confused, that form vs Buddypress Private Messages. That’s why it feels okay to show the user the notice (a notice per se), on their own profile form.
For visitors and members (though, technically members shouldn’t see the form), it quickly explains it’s a direct email and not a Private Message.
PS I should note: members shouldn’t see this if users has Buddypress Private Messages on….should only really be reserved for visitors to website and user (so user can see that the form is or isn’t actively on).
Hi JJ,
Thank you.1. I think the best middle ground for us to provide an option for enabling notice and let site admins control the content of that notice.
2. You can control who sees that form from the admin settings(visibility option).
Regards
BrajeshThank you.
Have already added it. will release sometimes in the morning tomorrow.
Regards
Brajesh
The topic ‘ [Resolved] Buddypress User Contact Form code suggestion’ is closed to new replies.