I'm attempting to upgrade to the latest version of the forum software, so I'm porting over some of our customizations, but for some reason I can't get the theme to load a custom template file.
In forums>front>topics>postContainer, on line 92, I've added an else condition to load a template bit:
{{if !$comment->isAnonymous()}}
<li data-role='group'>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li>
{{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }}
<li data-role='group-icon'><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
{{else}} <!-- this is the else -->
{template="memberBadge" app="core" group="global" params="$comment->author()"} <!-- this is the template -->
{{endif}}
{{endif}}
That template, memberBadge, resides under core>global>global. For whatever the reason, I can't get it to load, even if it's just static html in the template or text.
If I put text like "test" under the else condition instead, I see it displayed under the member group name, but if I put nothing but that "test" text in the template, it doesn't display.
This worked just fine in the old version, so I'm not sure what I'm missing.