1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Memberlist - more functions

Discussion in 'Styling and Customization Questions' started by Morgain, Jan 7, 2012.

  1. Morgain

    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 here Memberlist.png
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> member_list_item

    Add the red 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}">
    						<a href="{xen:link conversations/add, '', 'to={$user.username}'}" class="button">{xen:phrase start_conversation}</a>
    					{xen:phrase joined}: {xen:date $user.register_date}
    			<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.png
  3. Morgain

    Morgain Well-Known Member

    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?

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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.
  5. Morgain

    Morgain Well-Known Member

    Sorry I wasn't clear Jake. It's the positioning was driving me berserk.

Share This Page