We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Message Subject Field Remove | Forum

falancas
falancas Apr 29 '15


Hi, how to remove message subject field? Thank you.
dave Leader
dave Apr 29 '15
it will come back after every update you know this....   but i will look to see which files you need to edit if you still want to remove it?
falancas
falancas Apr 30 '15
Yes, I want.
dave Leader
dave Apr 30 '15
ow_plugins/mailbox/views/components/new_message.html


and comment out this part 


       <div class="ow_chat_subject_block">

            {input name='subject' class="newMessageWindowSubjectInputControl"} 

       </div>




and then youll have to go over to the controller and make the field not require 


ow_plugins/mailbox/classes/new_message_form.php


comment out these three lines


     $requiredValidator = new RequiredValidator();

      $requiredValidator->setErrorMessage( $language->text('mailbox', 'subject_is_required') );  

      $subject->addValidator($requiredValidator);




then clear your cache and you should be ok... let me know please if it works thanks :)

The Forum post is edited by dave Apr 30 '15
falancas
falancas Apr 30 '15
Good support. Thank you!

For mobile ?


The Forum post is edited by falancas May 1 '15
Emil
Emil May 2 '15
Hello this works, thanks but there is an unfortunate problem... now all messages are received with subject line "undefined". Can this be fixed or the whole line removed altogether?

Emil
Emil May 2 '15
I found out one of the codes to be removed:

ow_plugins/mailbox/views/components/conversation.html

remove:


<div class="ow_mailbox_subject_block" id="conversationSubjectBlock">
                <span class="ow_mailbox_subject_text" id="conversationSubject"></span>
            </div>


Result:



But I can't seem to find how to remove "subject: undefined" on the left hand side


falancas
falancas May 2 '15
Hi @Emil,

/ow_plugins/mailbox/views/components/conversation_list.html

remove code

<span class="ow_mailbox_convers_preview" id="conversationItemPreviewText"><%= previewText %></span>
Emil
Emil May 2 '15
Thank you falancas, this worked flawlessly :)
falancas
falancas May 2 '15
You're welcome :)
Shadiat
Shadiat Nov 27 '16
Thanks for this people. Was helpful.


However still one more 'undefined' in the console drop-down to get rid off. How do I go about it?

Attachments:
  undefined.JPG (14Kb)