1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
__section__
default
__description__
Template which renders the comment editor.
* error_message = error message if there is an error
* format_select = post type popup list
* preview = preview of comment, if applicable
* reply = hashref of comment replying to
__title__
__page__
comments
__lang__
en_US
__name__
edit_comment
__template__
[% USE Slash %]
[% IF form.pid %]
[% PROCESS titlebar width="95%" title=reply.subject %]
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="95%" ALIGN="CENTER">
[% Slash.dispComment(reply) %]
</TABLE><P>
[% END %]
[% IF preview %]
[% PROCESS titlebar width="95%" title="Preview Comment" %]
[% preview %]
<P>
[% END %]
[% PROCESS titlebar width="95%" title="Post Comment" %]
<!-- error message -->
[% IF error_message %][% error_message %][% END %]
<!-- end error message -->
<FORM ACTION="[% constants.rootdir %]/comments.pl" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="sid" VALUE="[% form.sid || sid %]">
<INPUT TYPE="HIDDEN" NAME="pid" VALUE="[% form.pid %]">
<INPUT TYPE="HIDDEN" NAME="mode" VALUE="[% user.mode %]">
<INPUT TYPE="HIDDEN" NAME="startat" VALUE="[% user.startat %]">
<INPUT TYPE="HIDDEN" NAME="threshold" VALUE="[% user.threshold %]">
<INPUT TYPE="HIDDEN" NAME="commentsort" VALUE="[% user.commentsort %]">
[% IF form.formkey %]
<INPUT TYPE="HIDDEN" NAME="formkey" VALUE="[% form.formkey %]">
[% END %]
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1">
[% userlink = '' %]
[% IF user.is_anon %]
[% userlink = "<A HREF=\"${constants.rootdir}/users.pl\">Create Account</A>" %]
<TR><TD> </TD><TD>
You are not logged in. You can login now using the
convenient form below, or
<A HREF="[% constants.rootdir %]/users.pl">Create an Account</A>.
Posts without proper registration are posted as
<B>[% user.nickname %]</B>
</TD></TR>
<INPUT TYPE="HIDDEN" NAME="rlogin" VALUE="1">
<TR><TD ALIGN="RIGHT">Nick</TD><TD>
<INPUT TYPE="TEXT" NAME="unickname" VALUE="[% form.nickname %]">
</TD></TR><TR><TD ALIGN="RIGHT">Passwd</TD><TD>
<INPUT TYPE="PASSWORD" NAME="upasswd">
</TD></TR>
[% ELSE;
userlink = "<A HREF=\"${constants.rootdir}/users.pl?op=userclose\">Log Out</A>";
END %]
<TR><TD WIDTH="130" ALIGN="RIGHT">Name: </TD><TD WIDTH="500">
<A HREF="[% constants.rootdir %]/users.pl">[% user.nickname %]</A> [ [% userlink %] ]</TD></TR>
[% IF user.fakeemail %]
<TR><TD ALIGN="RIGHT">Email: </TD>
<TD>[% user.fakeemail | strip_literal %]</TD></TR>
[% END %]
[% IF user.homepage %]
<TR><TD ALIGN="RIGHT">URL</TD>
<TD><A HREF="[% user.homepage %]">[% user.homepage | strip_literal %]</A></TD></TR>
[% END %]
<TR><TD ALIGN="RIGHT">Subject: </TD>
<TD><INPUT TYPE="text" NAME="postersubj" VALUE="[% form.postersubj | strip_attribute %]" SIZE=50 MAXLENGTH=50></TD>
</TR>
<TR>
<TD ALIGN="RIGHT" VALIGN="TOP">Comment</TD>
<TD><TEXTAREA WRAP="VIRTUAL" NAME="postercomment" ROWS="10"
COLS="50">[% form.postercomment | strip_literal %]</TEXTAREA>
<BR>(Use the Preview Button! Check those URLs!
Don't forget the http://!)
</TD></TR>
<TR><TD> </TD><TD>
[% IF !user.is_anon && user.karma > constants.goodkarma %]
<INPUT TYPE="checkbox" NAME="nobonus"[% form.nobonus ? " CHECKED" : "" %]> No Score +1 Bonus
[% do_br = 1; END;
IF constants.allow_anonymous && user.karma > -1 && !user.is_anon %]
<INPUT TYPE="checkbox" NAME="postanon"[% form.postanon ? " CHECKED" : "" %]> Post Anonymously
[% do_br = 1; END;
IF do_br %]<BR>[% END %]
<INPUT TYPE="SUBMIT" NAME="op" VALUE="Submit">
<INPUT TYPE="SUBMIT" NAME="op" VALUE="Preview">
[% format_select %]
</TD></TR><TR>
<TD VALIGN="TOP" ALIGN="RIGHT">Allowed HTML: </TD><TD><FONT SIZE="1">
<[% constants.approvedtags.join("> <") %]>
</FONT>
</TD></TR>
</TABLE>
</FORM>
<B>Important Stuff:</B>
<LI>Please try to keep posts on topic.
<LI>Try to reply to other people comments instead of starting new threads.
<LI>Read other people's messages before posting your own to avoid simply duplicating
what has already been said.
<LI>Use a clear subject that describes what your message is about.
<LI>Offtopic, Inflammatory, Inappropriate, Illegal, or Offensive comments might be
moderated. (You can read everything, even moderated posts, by adjusting your
threshold on the User Preferences Page)
<P><FONT SIZE="2">Problems regarding accounts or comment posting should be sent to
<A HREF="mailto:[% constants.adminmail %]">[% constants.siteadmin_name %]</A>.</FONT>
__seclev__
1000
|