__section__
default
__description__
Display user's info

* title = passed to titlebar
* nick = nickname
* useredit = hashref of info of the user being viewed
* points = available moderation points
* commentstruct = arrayref of comments
* nickmatch_flag = current user is same as viewed user
* mod_flag = is moderator
* karma_flag = boolean for display karma
* admin_block = admin stuff
* admin_flag = boolean for whether to display admin stuff


__title__

__page__
users
__lang__
en_US
__name__
userInfo
__template__
[% USE Slash %]
[% PROCESS titlebar width="95%" %]

[% IF form.formkey %]
        <!-- INPUT TYPE="HIDDEN" NAME="formkey" VALUE="[% form.formkey %]" -->
[% END %]

[% IF nickmatch_flag %]

<P>This is <B>your</B> User Info page.  There are thousands more, but
this one is yours.  You most likely are not so interested in yourself,
and probably would be more interested in the Preferences links you see
up top there, where you can customize [% constants.sitename %],
change your password, or just click pretty widgets to kill time.

[% IF mod_flag %]
<P>You're a moderator with [% points %] points[% IF points && lastgranted %] (expire after [% lastgranted %])[% END %]. Please read the
<A HREF="[% constants.rootdir %]/moderation.shtml">Moderator Guidelines</A>
before you do any moderation.<BR><P>
[% END %]
[% IF ! useredit.registered %]
<P>This account is currently expired. Please <A HREF="[% constants.rootdir %]/users.pl?op=validateuser">re-register</A> at your earliest opportunity.<BR><P>
[% END %]

<P><HR></P>

[% END %]

[% IF admin_flag %]
[% admin_block %]
[% END %]

<P>
[% IF useredit.homepage %]
<A HREF="[% useredit.homepage %]">[% useredit.homepage | strip_literal %]</A><BR>
[% END; IF useredit.fakeemail %]
<A HREF="mailto:[% useredit.fakeemail | fixparam %]">[% useredit.fakeemail | strip_literal %]</A><BR>
[% END; IF useredit.journal_last_entry_date.search('[1-9]') %]
<A HREF="[% constants.rootdir %]/~[% nick_plain | fixparam %]/journal/">
Last Journal Entry was [% Slash.timeCalc(useredit.journal_last_entry_date) %]</A>
[ <A HREF="[% constants.rootdir %]/journal.pl?op=list&amp;uid=[% useredit.uid %]">List</A> ]
<BR>
[% END %]
</P>

[% IF karma_flag && (admin_flag || nickmatch_flag)  %]
        <B>Karma</B> [% useredit.karma %] (mostly the sum of moderation done to users comments)<BR>
[% END %]

[% IF useredit.bio %]
 <B>User Bio</B><BR>[% Slash.parseDomainTags(useredit.bio, useredit.fakeemail) | strip_html %]<P>
[% END %]

[% IF useredit.pubkey %]
		<B>Public Key</B><BR>
		<A HREF="[% constants.rootdir %]/~[% nick_plain | fixparam %]/pubkey/">[% constants.absolutedir %]/~[% nick_plain | fixparam %]/pubkey/</A>
		<P>
[% END %]

[% IF stories %]
	<BR><B>[% nick %] has submitted [% storycount %] stories.[% IF storycount > constants.user_submitter_display_default %] Below are the most recent [% form.min %] stories.[% END %]</B><P>
	[% n = 0 %]
	[% FOREACH story = stories %]
		[% n = n + 1 %]
			<A HREF="[% constants.rootdir %]/article.pl?sid=[% story.sid %]">[% story.title %]</A> on [% Slash.timeCalc(story.time) %]<br>
	[% END %]
[% END %]

<BR><B>[% nick %] has posted [% commentcount %] comments.
[% IF commentcount > commentstruct.size %]Below find
[% IF min_comment == 0 %]the most recent [% commentstruct.size %] comments.
[% ELSE %][% commentstruct.size %] of them.
[% END %][% END %]</B><P>

[% n = min_comment %]
[% FOREACH comment = commentstruct %]
	[% n = n + 1 %]
	[% replies = comment.replies ? " Replies: $comment.replies" : "" %]
	[% IF comment.type == 'poll';
		label   = "Poll: $comment.disc_title ";
	ELSIF comment.type == 'journal';
		label   = "Journal Discussion: $comment.disc_title";
	ELSE;
		label    = comment.disc_title;
	END %]
<BR><B>[% n %]</B> <A HREF="[% constants.rootdir %]/comments.pl?sid=[% comment.sid %]&amp;cid=[% comment.cid %]">
   [% comment.subj %]</A> posted on [% comment.cdate %]
        (Score:[% comment.pts %][% replies %])
      <FONT SIZE="2">
           <BR>attached to <A HREF="[% comment.url %]">[% label %]</A>
      </FONT>
[% END %]

[% IF admin_flag && commentcount > n %] 
<P><A HREF="[% constants.rootdir %]/users.pl?op=userinfo&amp;nick=[% nick_plain | fixparam %]&amp;min_comment=[% n %]"
>More Comments...</A><P>
[% END %]


__seclev__
500
