I have a custom usergroup which I create a user banner for with a default text.
I'd like to learn how to modify the message_user_info template and use conditionals so that the text will change depends on different variables.
This is the bit that I need to change
So something like if {$user.qntquiz_passed.22} then the user title would be "ABC"
if else {$user.qntquiz_passed.23} the title would be "XYZ" and so on.
Thank you
I'd like to learn how to modify the message_user_info template and use conditionals so that the text will change depends on different variables.
This is the bit that I need to change
Code:
<xen:hook name="message_user_info_text" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
<h3 class="userText">
<xen:username user="$user" itemprop="name" rich="true" />
<xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user, 1, 1}</xen:contentcheck></em></xen:if>
{xen:helper userBanner, $user, 'wrapped'}
<!-- slot: message_user_info_text -->
</h3>
</xen:hook>
if else {$user.qntquiz_passed.23} the title would be "XYZ" and so on.
Thank you