BuddyDev

Search

[Resolved] Buddypress User Contact Form code suggestion

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #31396

    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; ?>
    
  • Keymaster
    (BuddyDev Team)
    Posts: 24237
    Brajesh Singh on #31404

    Hi JJ,
    Thank you for the suggestion. I will add it as an option in the next release(early next week).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24237
    Brajesh Singh on #31454

    Hi 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
    Brajesh

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #31455

    Message should be available on all profiles, when visitors and members see the form.

    It helps the members, visitors and the user of the profile, what this form is (it’s not a Private Message).

  • Keymaster
    (BuddyDev Team)
    Posts: 24237
    Brajesh Singh on #31456

    Thank 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
    Brajesh

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #31457

    Well, 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).

  • Keymaster
    (BuddyDev Team)
    Posts: 24237
    Brajesh Singh on #31460

    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
    Brajesh

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #31466

    Totally sounds good.

    I just had the notice, because ueser’s never saw the form before – it just suddenly appeared one day Ahahah

  • Keymaster
    (BuddyDev Team)
    Posts: 24237
    Brajesh Singh on #31471

    Thank you.

    Have already added it. will release sometimes in the morning tomorrow.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #31480

    Cool! Thanks!!

    Thanks for all your help.

The topic ‘ [Resolved] Buddypress User Contact Form code suggestion’ is closed to new replies.

This topic is: resolved