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

Add a function to show a list of...

Discussion in 'Closed Suggestions' started by LordsKing, Mar 26, 2014.

  1. LordsKing

    LordsKing Active Member

    Hello

    I would a tag (like this: <xen:show>CONTENT</xen:show>) to show a list of banned users, users who have 100 trophy points and more!

    Example :
    Code:
    <xen:show>{$user.message_count} == 10</xen:show>
    It will show a list of members who have 10 messages !
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Templates have so semblance of data, so without being passed in an already fetched set of users in $users, the system will not know what to do.

    On top of that, the display output is unclear in your suggestion, but for something so broad, you would need to define the display anyways, which gets you basically back to a normal fetch, xen:foreach loop, and writing to display.

    I, personally, do not see the merit of the tag your suggesting for the reasons I just stated.
     
  3. LordsKing

    LordsKing Active Member

    Yes, but I don't konw how to use the xen:foreach :/
     

Share This Page