• Resolved JJNW

    (@jjnw)


    I didn’t like the email or webpage for the “Apply” links for job postings.

    So, instead I changed up job-application-email.php with this:

    <p>
    <?php if ( is_user_logged_in() && !bp_is_my_profile() && function_exists( 'bp_send_private_message_link' ) ) : ?>
    				<div class="generic-button" id="send-private-message">
    					<a href="<?php bp_send_private_message_link() ?>" title="<?php _e( 'Send a private message to this user.', 'buddypress' ) ?>"><?php _e( 'Send Private Message', 'buddypress' ) ?></a>
    				</div>
    			<?php endif; ?>
    <?php
    if ( !is_user_logged_in() ) {
    	echo 'Must be logged in to respond to post.';
    }
    ?>
    
    </p>

    And it works well… EXCEPT

    The link only takes user to their “Private Message compose” page (https://localhost/website/members/username_john/messages/compose/?r&_wpnonce=2633633d1a), and does not include the username_larry who posted in their Send To field.

    Anyone know what I am missing?

    Thanks!

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    From the looks of the function name, bp_send_private_message_link will get the logged in user’s link? You should consult BP docs and forum to see if there is a way to compose *to* another user. It may just need an extra query string parameter. I’m not a BP user, so I cannot tell you off hand ??

    Thread Starter JJNW

    (@jjnw)

    I found a way around my issue, that is another issue I had ??

    <a href="https://www.ads-software.com/support/topic/show-user-avatar?replies=6#post-6646431"></a>

    Thank you for your help all the same ??

    Great to hear you got it sorted out ??

    Can you share where did you place the codes?
    and what are the codes?

    Thanks !

    Thread Starter JJNW

    (@jjnw)

    Depends on what post you are talking about…the above code I placed is mentioned in post.

    The other codes from the link above I placed in job-application-email.php and job-application-url.php

    Can I add the codes directly to content single job listing?

    Ahh ok, I also wanted to have Private Message in content single job listing and will directly go to compose message of buddypress with the username attached.

    <a href="/members/<?php echo bp_core_get_username( get_the_author_meta( 'ID' ) ); ?>/">
    
    <a href="<?php bp_send_private_message_link() ?>

    How to integrate these codes?

    on the upper codes is where the author’s profile, but i wanted to go directly to compose a message with author’s username already

    Thread Starter JJNW

    (@jjnw)

    Just experiment and keep thinking about what you want to accomplish. Keep researching too. That’s the only way you’ll get your results. Good luck.

    PS I don’t use this plugin anymore

    Can anyone help? Im not a website savvy. ??

    Any1 to the rescue here? This is really an extremely useful thing to have and would be of great use. Is there no way in bbpress to generate a compose message where the user you send message to is automatically applied?

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    @laplagam: Please create your own thread per the Forum Welcome policy:

    https://codex.www.ads-software.com/Forum_Welcome#Where_To_Post

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Apply Buddypress Private Message to include Sent To poster's username’ is closed to new replies.