Memberlist - more functions

Morgain

Well-known member
I want to develop my memberlist as the XF version is rather bare, and we've always found it a useful area.
(Yes I know some don't value it, but on smaller boards it's really helpful)

First I'd like to get a button on each user's row "Start Conversation"
Then I'd like to display the Join date.

Mockup hereMemberlist.webp
 
Admin CP -> Appearance -> Templates -> member_list_item

Add the red code:

Rich (BB code):
<xen:require css="xenforo_member_list_item.css" />

<li class="primaryContent memberListItem{xen:if $extended, ' extended'}"{xen:if $id, ' id="{$id}"'}>

	<xen:avatar user="$user" size="s" class="{xen:if $noOverlay, 'NoOverlay'}" />

	<xen:if is="{$extraTemplate}"><div class="extra">{xen:raw $extraTemplate}</div></xen:if>

	<div class="member">
	
		<xen:if is="{$user.user_id}">

			<div style="float: right;">
				<xen:if is="{$visitor.user_id} AND {$user.user_id} != {$visitor.user_id}">
					<div>
						<a href="{xen:link conversations/add, '', 'to={$user.username}'}" class="button">{xen:phrase start_conversation}</a>
					</div>
				</xen:if>
				<div>
					{xen:phrase joined}: {xen:date $user.register_date}
				</div>
			</div>

			<h3 class="username"><xen:username user="$user" rich="true" class="StatusTooltip{xen:if $noOverlay, ' NoOverlay'}" title="{xen:string censor, $user.status}" /></h3>
			
			<div class="userInfo">
				<div class="userBlurb dimmed">{xen:helper userBlurb, $user}</div>
				<dl class="userStats pairsInline">

The result:

Screen shot 2012-01-07 at 11.04.48 PM.webp
 
Jake thank you as ever - right now I think the only thing working is your code!
I so HATE to be this helpless - over two hours struggling with this bally member item layout. There are several different containers and sources of control in Style Properties, the separate css, and the page itself until I'm dizzy and sick with it.

This is what I'm trying to do.
But it keeps using so many different containers! I want everything inside one - like a Category bar.
Your button comes up white but all my others are yellow?

Memberlist2.webp
 
Well I am working with the default style, not your style. But the colors are all a matter of styling. If you point out the color you want to change then I can help.
 
Top Bottom