• Hi there, I have bee looking at this old topic, but the code breaks my site, are there any syntax errors in the code?

    The code will be deleted by next updated if I put it in file bp-profile-message-ux\bp-profile-message-ux.php, I am not able to test it because of the bug, but will the code work in bp-custom.php, or where should i put it, to avoid deletion on update?

    Regards
    Carsten

Viewing 1 replies (of 1 total)
  • Thread Starter Carsten Lund

    (@carsten-lund)

    Hi there I have followed this instruction to hide “Subject” when creating a new message, but it breaks my site. are there any syntax errors in these code snippets?

    Regards
    Carsten

    You cannot get rid of it.
    But you could change the Subject input type to ‘hidden’.

    For example, in this file:
    bp-profile-message-ux\bp-profile-message-ux.php

    You could change:
    $button_divs .= ‘<input type=”text” size=”41″ maxlength=”50″ name=”private_message_subject” id=”private_message_subject” /><br /><br />’;

    To:
    $button_divs .= ‘<input type=”hidden” name=”private_message_subject” id=”private_message_subject” value=”New Message” />

    ‘;

    And delete the field label:
    $button_divs .= ‘<label for=”private_message_subject”>’ . $subject_label . ‘</label> ‘;

Viewing 1 replies (of 1 total)
  • The topic ‘Delete subject, old topic’ is closed to new replies.