Jump to content

Issue with rendering template variable


GriefCode

Recommended Posts

Hey,

im trying to hook the topic template and there the postContainer, however, i have issues reading my custom fields.
I already made it for the profile and hovercard, so the fields are available.

My code:

postContainer:

{template="memberBNetBit" group="plugins" location="global" app="core" params="$comment"}

memberBNetBit:

<ips:template parameters="$comment" />
{{if $comment->author()->bnet_status == 2}}
    <li class="ipsResponsive_hidePhone"><h3>
      <span class='ipsBadge' style="color: rgba(0,0,0,0.9)">
        <img src='{resource="plugins/bneticon.png" app="core" location="global"}' height="16" alt="bnet_icon" />
        {$comment="author()->bnet_name"}
      </span>
    </li>
{{endif}}

But im getting firstly the following issue:

syntax error, unexpected ')'

Anyone know the reason for that?

Regards 

 

 

----

Issue has been resolved, topic can be closed.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...