Conversation block - submitter's email address not visible?

Permalink
Hello Concrete5 members,

I have added a conversation block, but when someone posts something I need to see the submitter's email address.
It shouldn't be public, just for the admin.

Where can I find his/her email address?

nesoor
 
MrKDilkington replied on at Permalink Best Answer Reply 1 Attachment
MrKDilkington
Hi nesoor,

I believe you can override the Messages dashboard single page to include the author's email address.
Dashboard > Conversations > Messages

- find the attached messages_override.zip override file
- extract messages.php from the ZIP file
- copy message.php to application\single_pages\dashboard\conversations
application\single_pages\dashboard\conversations\messages.php

After copying the file, you should see a new column called "Author Email".

The changes made to the original messages.php file are wrapped in the HTML comments "CHANGES" and "END CHANGES".

- add the table column
<th><span><?php echo t('Author Email')?></span></th>

- get the author email
<td>
    <?php echo $author->getEmail(); ?>
</td>
nesoor replied on at Permalink Reply
nesoor
Hey MrKDilkington,

Thanks for all your answers on the forum, I really appreciate your work !

I used the code and I get an Author email field but the email doesn't show up.
Maybe version 8 will get this feature builtin ! :)
MrKDilkington replied on at Permalink Reply
MrKDilkington
@nesoor

I updated the override file and the previous message.

The code I included before was getting the email of registered users who commented. The updated code should get the email of anyone who comments, registered or unregistered.