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

invalid condition expression

Discussion in 'XenForo Development Discussions' started by mmoore5553, Mar 13, 2012.

  1. mmoore5553

    mmoore5553 Well-Known Member

    I am adding this to my header but this is not working as it errors out. It says The following templates contained errors and were not saved: navigation_visitor_tab: 1) Line 11: Invalid condition expression.

    This is coming from flexile. I am modifying it to work with my theme. I just want avatar up near the name at top. I am sure it is @showAvatarinUserbar. I am unable to track it down.

    <a href="{xen:link account}" class="navLink accountPopup" rel="Menu"><xen:if is="@showAvatarInUserBar"><img src="{xen:helper avatar, $visitor, s}" class="miniMe" alt="" /></xen:if><strong>{$visitor.username}</strong></a>
  2. mmoore5553

    mmoore5553 Well-Known Member

    I think maybe it might be the property that needs to be added

    <property property_name="showAvatarInUserBar" property_type="scalar" definition="1" group_name="flexileProperties" title="Show Mini Avatar in User Bar" description="If selected, this will show a small version of the logged-in user's avatar next to their name in the user bar at the top of the screen." css_components="" scalar_type="boolean" scalar_parameters="" display_order="1" sub_group="User Card"><![CDATA[1]]></property>

    I am not sure how to add that to default theme.
  3. mmoore5553

    mmoore5553 Well-Known Member

    Okay i have figured it out as i had to add the settings in the style properties. You can close this or delete if you want.
    nttruong likes this.

Share This Page