__section__
default
__description__
Display user's info

* title = passed to titlebar
* 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
	(no need for this anymore)
* karma_flag = boolean for display karma
* admin_block = admin stuff
* admin_flag = boolean for whether to display admin stuff
	(no real need for this, could just use user.is_admin)
* fieldkey = the field key used to decide what we're looking at
* reasons = hashref from $moddb->getReasons()
* lastjournal = last journal posted
* hr_hours_back = number of hours back to show a <hr> for
* cids_to_mods = hashref keyed by cid containing arrays of moderations done to that cid
* comment_time = number of days back we are limiting the comments shown to.  If 0 or undefined we're showing comments sequentially w/o time limits

__title__

__page__
users
__lang__
en_US
__name__
userInfo
__template__
[% orig_title = title %]
<div id="slashboxes">
[% PROCESS userboxes %]
</div>
[% title = orig_title %]
<div id="users-blocks">
[% IF nickmatch_flag %]

		[% IF ! useredit.registered %]
			<div id="message">
				<div class="content">
					<p>This account is currently expired. Please <a href="[% gSkin.rootdir %]/users.pl?op=validateuser">re-register</a> at your earliest opportunity.</p>
				</div>
			</div>
		[% END %]

[% END %]
[% PROCESS user_titlebar tab_selected='info' %]
	<div class="generalbody">
	[% 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.
		</p>
	[% END %]
	</div>
	[% IF admin_flag %]
	[% PROCESS titlebar title="Admin options" %]
		[% admin_block %]
	[% END %]
	<div class="generalbody">
	[% IF lastjournal %]
	[% PROCESS titlebar title="Last Journal Entry" %]
			[% Slash.createMenu("journal", style => "tabbed") %]
			<b>
				<a href="[% gSkin.rootdir %]/~[% useredit.nick_plain | strip_paramattr %]/journal/">
					[% lastjournal.description | strip_notags %]
				</a>
			</b>,
			[% Slash.timeCalc(useredit.journal_last_entry_date) %]
			([% lastjournal.commentcount || 0 %] comment[% IF lastjournal.commentcount != 1 %]s[% END %])
			[% IF lastjournal.article_shrunk %]
				<p>
					[% lastjournal.article_shrunk; END %]
				</p>
			[% ELSE %]
				<p>
					<i>
						(No journal entries.)
					</i>
				</p>
			[% END %]


	</div>
</div>
<div id="users-lists">
			[% PROCESS listComments admin_flag=admin_flag commentstruct=commentstruct commentcount=commentcount min_comment=min_comment reasons=reasons cids_to_mods=cids_to_mods type="user" useredit=useredit comment_time=comment_time %]
        		[% thisnickname = useredit.nickname | strip_literal %]
			[% IF admin_flag;
       				mod_options.title = "Moderations performed by $thisnickname";
				IF constants.m2;
					mod_options.show_m2s = form.show_m2s.defined ? form.show_m2s : user.m2_with_mod;
					mod_options.need_m2_form = 1;
					mod_options.need_m2_button = 1;
					mod_options.meta_mod_only = 1;
				END;

				m1_classname = "Slash::" _ constants.m1_pluginname;
				moddb = Slash.getObject(m1_classname);
				IF moddb; moddb.dispModCommentLog('uid', useredit.uid, mod_options); END;

				IF !constants.m1_admin_show_mods_with_comments;
        				mod_options.title = "Moderations performed on $thisnickname's comments";
					mod_options.hr_hours_back = hr_hours_back;

					IF moddb; moddb.dispModCommentLog('cuid', useredit.uid, mod_options); END;
				END;

				IF constants.m2;
				m2_title = "$thisnickname's Recent M2s";
				m2_listing = form.m2_listing.defined ? form.m2_listing : user.show_m2_listing;
				PROCESS listMetamods
					title = m2_title 
					m2_listing = m2_listing 
					metamods = metamods 
					the_user = useredit;
				END;
			END;

			IF submissions.size > 0;
				IF admin_flag or useredit.uid == user.uid;
					title = "$thisnickname's Recent Submissions";
				ELSE;
					title = "$thisnickname's Recently Accepted Submissions";
				END;
				PROCESS listSubmissions title=title admin_flag=admin_flag submissions=submissions;
			END;

			IF user.is_admin && tagshist && tagshist.size > 0;
				title = "$thisnickname's Recent Tags";
				PROCESS usertaghistory tagshist = tagshist title = title;
			END %]
</div>

__seclev__
500
__version__
$Id: userInfo;users;default,v 1.88 2006/10/26 17:36:52 jamiemccarthy Exp $
