1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add extra stuff to Message Elements

Discussion in 'Styling and Customization Questions' started by x7iBiT, Aug 24, 2011.

  1. x7iBiT

    x7iBiT Member

    How I add some extra stuff (like Facebook or MSN) to the Message Elements? I want to see it below avatar on each post.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You will need an add-on to do that.

    The only supported elements are available in Style Properties -> Message Elements
  3. x7iBiT

    x7iBiT Member

    Can I do manually in message_user_info template?

    In this template I can see the variable $user.identities, thats appears to be an array with this info (Facebook, twitter, MSN, etc), am I right?

    I also can see this code:

    <xen:foreach loop="{$user.identities}key="$servicevalue="$account">
    dl class="pairsInline">
    Why don't work? I removed the <xen:comment> above and the </xen:comment> below...
  4. Brogan

    Brogan XenForo Moderator Staff Member

    I haven't tested that myself but it's possible that data isn't exposed correctly to work in the message_user_info template.
  5. x7iBiT

    x7iBiT Member

    I tested it and $user.identities appears to be a string (a serialized string, it seems) when print it:
    The problem is that the code I put in the post above processes this variable as an array. Perhaps it might work if previously unserialize $user.identities, but I don't know where make it, beacause templates don't accept PHP code...

    PD: Sorry for my "apache" english ;)
  6. Cezz

    Cezz Well-Known Member

    The code is currently commented out in the template, I think it is planned future feature but like you said the identities is currently serialised and you would either need to have an add-on that unsterilises the data or wait until the feature is added.
  7. x7iBiT

    x7iBiT Member

Share This Page