summaryrefslogtreecommitdiff
path: root/modules/mod_who_is_there.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mod_who_is_there.tpl')
-rw-r--r--modules/mod_who_is_there.tpl22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/mod_who_is_there.tpl b/modules/mod_who_is_there.tpl
new file mode 100644
index 0000000..586737e
--- /dev/null
+++ b/modules/mod_who_is_there.tpl
@@ -0,0 +1,22 @@
+{* $Header: /cvsroot/bitweaver/_bit_users/modules/mod_who_is_there.tpl,v 1.1 2005/06/19 05:12:23 bitweaver Exp $ *}
+{bitmodule title="$moduleTitle" name="who_is_there"}
+ <div>
+ {$logged_users}
+ {if $logged_users>1}
+ {tr}online users{/tr}
+ {elseif $logged_users>0}
+ {tr}online user{/tr}
+ {/if}
+ </div>
+ {section name=ix loop=$online_users}
+ {if $user and $gBitSystemPrefs.feature_messages eq 'y' and $gBitUser->hasPermission( 'bit_p_messages' )}
+ <a href="{$gBitLoc.MESSU_PKG_URL}compose.php?to={$online_users[ix].user}" title="{tr}Send a message to{/tr} {$online_users[ix].user}">{biticon ipackage="users" iname="send_msg_small" iexplain="send message"}</a>
+ {/if}
+ {if $online_users[ix].user_information eq 'public'}
+ {math equation="x - y" x=$smarty.now y=$online_users[ix].timestamp assign=idle}
+ <a href="{$gBitLoc.USERS_PKG_URL}index.php?home={$online_users[ix].user}" title="{tr}More info about{/tr} {$online_users[ix].user} ({tr}idle{/tr} {$idle} {tr}seconds{/tr})">{$online_users[ix].user}</a><br />
+ {else}
+ {$online_users[ix].user}<br />
+ {/if}
+ {/section}
+{/bitmodule}