__section__
default
__description__
__title__

__page__
ajax
__lang__
en_US
__name__
prefs_d2
__template__

<form id ="modal_prefs" method="post">

<input type="hidden" name="formname" value="d2_display">
<input type="hidden" name="uid" value="[% user.uid %]">
<input type="hidden" name="refreshable" value="">

<table width="100%">
	<tr>
	<td valign="middle">
		[% d2_check = '';
		IF user.discussion2 == 'slashdot';
			d2_check = constants.markup_checked_attribute;
		END %]
		<label><input type="checkbox" name="discussion2"[% d2_check %] onclick="javascript:void(document.forms['modal_prefs'].refreshable.value=document.URL);">&nbsp;Enable Dynamic Discussions</label>

		&nbsp;<p>

		[% IF user.discussion2 && user.discussion2 == "slashdot" %]
                	<blockquote>
			<div>
			How Many Comments
			[% comment_q_name = (user.is_subscriber || user.is_admin) ? 'd2_comment_q_all' : 'd2_comment_q';
			   comment_q = Slash.db.getDescriptions(comment_q_name);
			   Slash.createSelect('d2_comment_q', comment_q, user.d2_comment_q, 1) %]<br>

			Comment Retrieval Order
			[% comment_order = Slash.db.getDescriptions('d2_comment_order');
			   comment_order_def = user.d2_comment_order || 0; # score
			   Slash.createSelect('d2_comment_order', comment_order, comment_order_def, 1) %]
			</div>
			</blockquote>
                [% END %]

		[% s_check = '';
		IF user.nosigs;
			s_check = constants.markup_checked_attribute;
		END %]

		<label><input type="checkbox" name="nosigs"[% s_check %]>&nbsp;Disable Sigs</label>
                [% PROCESS formNote note='Strip sig quotes from comments' %]

                <p>

                [% n_check = '';
                IF user.noscores;
                        n_check = constants.markup_checked_attribute;
                END %]
                <label><input type="checkbox" name="noscores"[% n_check %]>&nbsp;Do Not Display Scores</label>
                [% PROCESS formNote note="Hides score: They still <b>apply</b> you just don't see them." %]

                &nbsp;<p>

                [% UNLESS user.domaintags.defined; user.domaintags = 2; END %]
                [% domaintags.${user.domaintags} = constants.markup_checked_attribute -%]

                <b>Display Link Domains?</b> (shows the actual domain of any link in brackets)<br>
                <blockquote><div>
                <input type="radio" name="domaintags" [% domaintags.0 %] value=0> Never show link domains<br>
                <input type="radio" name="domaintags" [% domaintags.1 %] value=1> Show the links domain only in recommended situations<br>
                <input type="radio" name="domaintags" [% domaintags.2 %] value=2> Always show link domains
                </div></blockquote>

                <p>

                [% IF user.is_admin && constants.m2 %]
                        [% s_m2c_check = '';
                        IF user.m2_with_comm_mod;
                                s_m2c_check = constants.markup_checked_attribute;
                        END %]
                <label><input type="checkbox" name="m2_with_mod_on_comm" [% s_m2c_check %]>&nbsp;Show Metamoderation in Comment Moderation Listing</label>
                [% END %]
	</td>
	</tr>
</table>
<p>
<input type="button" value="Save" onclick="saveModalPrefs()">
</form>
__seclev__
500
__version__
$Id: prefs_d2;ajax;default,v 1.7 2007/11/05 19:37:55 entweichen Exp $
