hi all,

i tried to use the [current-user:picture] token in menu title (superfish and normal menu) and just get text instead of a image. I also tried a custom image field with the same result. What did i wrong? Can you help me?

CommentFileSizeAuthor
current user picture token error.png4.23 KBFulgrim

Comments

alfarider’s picture

i have same error any solution for this ?

jweirather’s picture

Issue summary: View changes

This is happening because, for security reasons, the menu system uses a function to strip/convert HTML from menu entries. The result is encoded HTML appearing where you are expecting to see your image.

There is a work around using the Menu_HTML module, which purports to allow the use of HTML in the menu, though I've personally had mixed results with it when used for the [user:picture] token.

Note that there is a difference between the [user:picture] token, and the [current-user:picture] token.

This thread appears to be a duplicate of https://www.drupal.org/node/1902466.

jweirather’s picture

Status: Active » Closed (duplicate)