Home > Struktur > English > special tags > module tags > modul userlist > Userlist/Usergroup tags

Userlist/Usergroup tags
 

This module can be used with any of the two names userlist or usergroup, which doesn't change its functionality. The module makes it possible to create a list of users. It can either display all users from a specific group, or display all online users.


The following tags can be used in order to display a list of users with specified details:

 

  • <linkto>...</linkto>

     

    The tag creates a link to the user profile pop up. It can be used in combination with the tags username , firstname , lastname as surrounding  them.

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.


  • <username/>

     

    With the help of this tag you can set the username to be displayed.

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.

     

     


  • <firstname/>

     

    With the help of this tag you can set the first name of the user to be displayed.

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.


  •  

    

    <lastname/>

     

    With the help of this tag you can set the last name of the user to be displayed.

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.

     


  •  <email/>

     

    This tag displays the email of a user .

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.


  • <company/>

     

    With this tag the specified company in the user's settings can be displayed.

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.


  • <ul_platformid/>

     

    The above tag returns the id of a platform on the server.

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.

     


  • <ul_platformname/>

     

    The above tag returns name of a platform on the server.

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.


  • <can_ping>...</can_ping>

     

    The text inside the tag will be displayed only if the user has set that he wants to receive ping messages in his Settings.

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.


  • <pinglink>...</pinglink>

     

    The above tag creates a link to the ping pop-up, from where you can send a message to a user.

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.


  • <notificationsenabled/>

     

    If the user's notifications in Settings are enabled, then "YES" will be displayed, if not - "NO".

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.


  • <padminnotificationsenabled/>

     

    If the user has set that he wants to receive the Padmin notifications, then "YES" will be displayed, if not - "NO".

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.


  • <foreach userslist>....</foreach>

     

    The <foreach> loop is used to surround a block of html that should be repeated in order to get full list of data. Inside that block the special tags will be replaced with data from the user that is being showed.

     

    Used Parameters:

      

    • groupid="value" 

    The required value is the groupid defined in Sadmin/Padmin.

     

    • orderby="value"

    The value can be: 

    - usgrid: id of the user group

    - username

    - firstname

    - lastname

    - email

     

     Please, note: "orderby" can be used only in combination with "groupid"

     

    • usersonline="1"

    If this parameter is specified, only the users that are online will be diplayed.

     

    • wholeserver="1"

    If you set this parameter with value 1, then users from the whole server will be displayed.

     

     

    Examples:

     

     

    <foreach userslist usersonline="1" wholeserver="1" >....</foreach>

     

    <foreach userslist groupid="345678" orderby="lastname">....</foreach>

     

    info3 - 125057.2

    You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>followed by the tag <loadmodule userlist/> or <loadmodule usergroup/>.


 

Example,  that shows most of the functionalities in the usersonline module:


<html><advancedparser/>
<loadmodule userslist/>

<table border=1 cellpadding=2 cellspacing=0>
<tr>
  <td NOWRAP><b>Username</b></td>
  <td NOWRAP><b>first & lastname</b></td>
  <td NOWRAP><b>e-mail</b></td>
  <td NOWRAP><b>Company</b></td>
  <td NOWRAP><b>Logged on platform</b></td>
  <td NOWRAP><b>Ping</b></td>
  <td NOWRAP>Is notifications enabled?</td>
  <td NOWRAP>Is System notifications enabled?</td>
</tr>
<foreach userslist usersonline="1" wholeserver="1">
<tr>
  <td NOWRAP><linkto><b><username/></b></linkto></td>
  <td NOWRAP><b><firstname/> <lastname/></b></td>
  <td NOWRAP><a href="mailto:<email/>"><email/></a></td>
  <td NOWRAP><company/></td>
  <td NOWRAP><a href="/p/<ul_platformid/>/"><ul_platformname/></a></td>
  <td NOWRAP><can_ping><pinglink>ping</pinglink></can_ping></td>
  <td NOWRAP><notificationsenabled/></td>
  <td NOWRAP><padminnotificationsenabled/></td>
</tr>
</foreach>
</table>

</html>




Metainfo:
AutorIn: factline Webservices GmbH; Copyright: factline Webservices GmbH; Publiziert von: factline Webservices (factline5)
infoID: 1494757.5 (...Archiv); Publiziert am 19 Aug. 2010 14:18
 
Verknüpfungen:
Struktur  >  English  >  special tags  >  module tags  >  modul userlist 
 
Referers (2):
Module tags24 Nov. 2010factlink
Use of Userlist 22 Nov. 2010factlink