intradox
Well-known member
Hi all,
 
I'm trying to pull out the username and usertitle which normally appear in message_user_info and place them in thread_view. The reason is that I'm reording some of the elements.
 
Here is what I'm trying to achieve:
		
		
	
	
		
	
 
The problem at the moment is that the topbar appears blank and chrome tools show:
		
	
 
How do I get the username/title to appear?
 
Thanks!
 
Here is the code for thread_view:
	
	
	
		
 
Here is the code for message_info:
	
	
	
		
				
			I'm trying to pull out the username and usertitle which normally appear in message_user_info and place them in thread_view. The reason is that I'm reording some of the elements.
Here is what I'm trying to achieve:
	The problem at the moment is that the topbar appears blank and chrome tools show:
	How do I get the username/title to appear?
Thanks!
Here is the code for thread_view:
		Code:
	
	<li id="{$messageId}" class="message {xen:if $message.isDeleted, 'deleted'} {xen:if '{$message.is_admin} OR {$message.is_moderator}', 'staff'} {xen:if $message.isIgnored, ignored}" data-author="{$message.username}">
 
    <div class="messageTopBar">
        <div class="messageTopBar_userInfo"">
            <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}</xen:contentcheck></em></xen:if>
            <!-- slot: message_user_info_text -->
        </h3>
    </xen:hook>
        </div>
    </div>
    <xen:include template="message_user_info">
        <xen:map from="$message" to="$user" />
    </xen:include>
...
	Here is the code for message_info:
		Code:
	
	<xen:require css="message_user_info.css" />
 
<div class="messageUserInfo" itemscope="itemscope" itemtype="http://data-vocabulary.org/Person"> 
<div class="messageUserBlock">
    <xen:hook name="message_user_info_avatar" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
        <div class="avatarHolder">
            <span class="helper"></span>
            <xen:avatar user="$user" size="m" />
            <!-- slot: message_user_info_avatar -->
        </div>
    </xen:hook>
 
<xen:if is="!{$isQuickReply}">
    <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}</xen:contentcheck></em></xen:if>
            <!-- slot: message_user_info_text -->
        </h3>
    </xen:hook>
...