Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi hektorjg,

    You can hook into the rtb_bookings_table_column filter, which passes each column’s output. So just check that it’s the message column you’re hitting and then output the full message there instead of the link.

    This will dump the whole message into the one column. If you want to add a whole other row it would take quite a bit of work. You’d need to add some serious customization to the list table class that outputs the table. Currently, the rows are just injected when the message button is clicked.

    If you want to see how that’s done, look here. Maybe you can just write some custom javascript that does it for each row when the page loads.

    Thread Starter hektorjg

    (@hektorjg)

    Thanks! I found out how to do it really simple.
    I changed two things:
    1.- In the message row, display:inherit. Like you said, the message is taken but not shown. In this way I force it to display it.

    2.- Get rid of message icons. Replacing the highlighted code in the link before with the following code:

    $value = '';
    $value .= '<div class="rtb-message-data">' . $booking->message . '</div>';

    This will show the message without the link icon.

    As you mentioned, this will show the message in the column, but It won’t in a new row like now, because It’s more complicated.
    This is a quick fix for it.
    Thank you for your fast reply!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Allways show "Message"’ is closed to new replies.