I activated the sub-module "Message Example" of the module "Message".

I added the token in the "Example - User register" message template :


When a message is created, it displays the url of the user's image.

How to display the user's image in a Message Template ?


You can use the following token: [message:author:user_picture] i.e. same as yours with the thumbnail subsection

UPDATE: In order to get the image styles to work I had to switch to "Full HTML" text filter, then while editing the "Source" I added this line:

<img src="[message:author:user_picture:thumbnail]" />

And it worked for me like this.

| improve this answer | |
  • I just tested and there is nothing posted, not even the link – user89255 Sep 6 '18 at 13:59
  • Strange because this works in my installation – Ismail Cherri Sep 6 '18 at 21:06
  • It works. The problem is that when there is a default image, it is not displayed. Now how to display with the image style thumbnail ? Because the images are displayed in 100x100 with the original dimension (they are heavy). – user89255 Sep 7 '18 at 3:11
  • @m1lbt I updates my answer, please check it – Ismail Cherri Sep 7 '18 at 7:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy