1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Newest Members: List of usernames instead of Avatar: How to list more than 8 usernames?

Discussion in 'Template Modifications [Archive]' started by A.E., Jan 9, 2011.

  1. A.E.

    A.E. Member

    We have about 50 new members per day. The new members often do not have an avatar, and we want to take a look to the names, if they obey our rules.
    So i made this template modification.

    In the template "member_list" find the following code:
    <li><xen:avatar user="$user" size="s" text="{$user.username} ({xen:datetime $user.register_date})" class="Tooltip" title="{$user.username}, {xen:phrase joined}: {xen:datetime $user.register_date}" /></li>
    And change it to:
    <li><a href="{xen:link members, $user}" class="Tooltip" title="{$user.username}, {xen:phrase joined}: {xen:datetime $user.register_date}">{$user.username}</a>, </li>
    Now it just shows the username in the sidebar of the memberlist, and it links directly to the profilepage of the new member.

    That was my intention. But how to change the "limit"? It just shows the newest 8 usernames. I couldn't find a way to change it. Would be perfect to see the newest 30 or 40 usernames. Can anybody help me?

    Thanks in advance.

    Gruß, Albert. :p

    P.S. Suggestions are welcome. :D
    P.S. Sorry for my bad english, i'm a Schwabe. :p

    Attached Files:

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That is in the PHP code:


    		$latestUsers = $userModel->getLatestUsers($latestCriteria, array('limit' => 8));
    You could edit the file but that is not ideal. A proper add-on would be better. You can post an Add-on Request. Of if you want to code it yourself then there is the Development Questions forum.
  3. Vincent

    Vincent Well-Known Member

    I have actually seen no meaning for avatars with "new members". Because it's with 90% of the newly registered users just a big picture of an "?"
  4. FredC

    FredC Well-Known Member

    I 90% agree with this. ;)
    Vincent likes this.
  5. A.E.

    A.E. Member

    Thanks for your help, Jake Bunce. [​IMG]

    I see: There's a lot of settings in the php-files i can change, just to totaly damage the forum. :D
    I've changed it just for a test. And it works fine.

    Hope a member with more php-know how than i has the same idea and makes an AddOn... ;)

    Moderators: You can move this thread to the template modifications. Maybe others also want to replace the avatar.

Share This Page