BuddyDev

Search

[Resolved] Remove the subject line requirement in messages?

Tagged: ,


  • Participant
    Level: Initiated
    Posts: 19
    Alayna on #3602

    I am quite stuck on how to do this… Could there be a way to allow users to send messages to each other without a subject line? Or better yet, remove the subject line functionality all together? I’m attempting to implement a system more like twitter and instagram’s direct messages feature. I believe this would be done through hacking the core but I’m not sure how to go about it.

    Thank you in advance for any help once again, a great support system here. 🙂


  • Keymaster
    (BuddyDev Team)
    Posts: 13785
    Brajesh Singh on #3604

    Hi Alayna,
    Thank you for asking. BuddyPress needs the subject for the thread.
    It can be accomplished by doing the following steps:-

    1. Hide subject box on the send message page and auto generate subject before saving
    2. Hide the subject on the single thread page using css(or modifying the message loop).

    Please do let me know if you need specific code.

    Thank you
    Brajesh


  • Participant
    Level: Initiated
    Posts: 19
    Alayna on #3605

    Hi Brajesh, thanks for your help once again.

    Step 2 will be no problem for me but I am not sure how to do step 1. Specific code would be great, thank you. 🙂


  • Keymaster
    (BuddyDev Team)
    Posts: 13785
    Brajesh Singh on #3612

    Hi Alayna,
    You may use the following js(in document ready block) to add the subject on your own

    
    	jQuery('#send_message_form').submit( function() {
    		jQuery('#subject').val("Some message subject");
    	});
    

    Please do note that the above simple is a simple hack and it will not affect notifications etc. You will have to update emails for notification to avoid sending message title.

    Hope that helps.
    Regards
    Brajesh


  • Participant
    Level: Initiated
    Posts: 19
    Alayna on #3632

    All done! Works great, thanks so much Brajesh.


  • Keymaster
    (BuddyDev Team)
    Posts: 13785
    Brajesh Singh on #3634

    Glad to know that 🙂 You are most welcome.

The topic ‘ [Resolved] Remove the subject line requirement in messages?’ is closed to new replies.

This topic is: resolved
Subscribe