This topic has 13 replies, 4 voices, and was last updated 10 years by Abe.

  • Author
  • #1486
     Cenk
    Participant

    Hi,

    I’m trying to find a way to make private messaging easier by disabling the (must fill) subject area? Is it adjustable in the PHP section? If so, can you explain me how?

    Thank you for your support.
    Cenk

    #1584
     SQadmin
    Keymaster

    Hi,
    You can edit the file members/single/messages/compose.php and the subject line is this one:

    COPY CODE
    
    <input type="text" name="subject" id="subject" value="<?php bp_messages_subject_value(); ?>" />
    

    You could add a space after or if you don’t want to show the subject then make it a hidden input with a default value like PM:

    COPY CODE
    
    <input type="hidden" name="subject" id="subject" value="PM" />
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #1585
     Cenk
    Participant

    Thanks! You’re awesome. 🙂

    #1586
     Cenk
    Participant

    It works. But now the message isn’t selectable in the inbox area. How to make it selectable like the subject. Thanks.

    #1593
     Cenk
    Participant

    Or changing the PM to the sender’s name. Is that possible?

    #1609
     SQadmin
    Keymaster

    I don’t think there is a simple solution for that.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #1611
     SQadmin
    Keymaster

    I fact you can edit members/single/messages/messages-loop.php line 43 and replace with this one to show the sender name:
    http://pastebin.com/7SzzmnhQ

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #1862
     Cenk
    Participant

    I did that. But now if I click on the name, the code directs me to the profile page.
    Can you help me to code a new solution? We can adjust the one you send me.

    <input type=”hidden” name=”subject” id=”subject” value=”PM” />
    to
    <input type=”Text” name=”subject” id=”subject” value=”Re:” />

    I want to have the “Re:” displayed on the inbox message page if the user don’t fill the subject area (leaving it empty)..Giving the user an option.

    Example: (sending a message without a subject)
    Subject: I (empty) I
    Message: somethingsomething

    (showing on the inbox page)
    Re:
    somethingsomething

    And

    Example: (sending a message with a subject)
    Subject: I Beach I
    Message: somethingsomething

    (showing on the inbox page)
    Beach:
    somethingsomething

    Thanks

    #1869
     SQadmin
    Keymaster

    This one displays Re: when no subject is entered
    http://pastebin.com/zSSRNgL1

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #1874
     Cenk
    Participant

    Almost worked. If the subject is entered it will not show up in the inbox. The Re: is working.

    I did this:
    adding a space after < ?php bp_messages_subject_value(); ?>
    <input type=”text” name=”subject” id=”subject” value=”<?php bp_messages_subject_value(); ?/> ” />

    And adjust the standard code with the one you gave me in the members/single/messages/messages-loop.php.. line 43

    <p>” title=”<?php _e( “View Message”, “buddypress” ); ?>”><?php if (bp_get_message_thread_subject() == ‘ ‘) {echo ‘Re:’;} else { bp_message_thread_subject; } ?></p>

    Thanks

    #1884
     SQadmin
    Keymaster

    Oh, sorry
    it should be bp_message_thread_subject(); instead of bp_message_thread_subject;
    http://pastebin.com/BvNU7QMx

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #1911
     Cenk
    Participant

    Thanks! It works!

    #10895
     jdrick55
    Participant

    Is it possible to get the step by step to get this done? Sorry i don’t quite understand the back and forth above

    #10956
     Abe
    Keymaster

    Hi, Follow this reply https://archived.seventhqueen.com/forums/topic/sending-private-message-without-a-subject#reply-1584 and then:
    edit members/single/messages/messages-loop.php line 43 and replace with this one to show Re: as the subject
    http://pastebin.com/BvNU7QMx

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?