__section__
default
__description__
Template which contains most if not all of the error messages
generated by the "comments" script.

* type = the name of the data element to retrieve

Each data element may have any number of other variables.
__title__

__page__
misc
__lang__
en_US
__name__
formkeyErrors
__template__
[% IF ! no_error_comment %]
<!-- Error type: [% type %] -->
[% END %]

[% SWITCH value %]

[% CASE "usedform" %]
[% PROCESS titlebar width="100%" title="Form Error" %]
[% IF interval %]
This form has been used already [% interval %] ago.
You can not use a form and hit the back button to use it again.
[% ELSE %]
There was an error in your submission; please get a new form
and try again.
[% END %]

[% CASE "invalid" %]
[% PROCESS titlebar width="100%" title="Invalid form key" %]
<br><p><b>Invalid form key: [% formkey %]</b></p>

[% CASE "invalidhc" %]
[% PROCESS titlebar width="100%" title="Wrong image text" %]
<br><p><b>You failed to confirm you are a human.</b>
(Assuming you actually <em>are</em> a human, your text appears below
so you can copy and paste it for another try. Sorry about the
inconvenience.)</p>
 
[% CASE "invalidhcretry" %]
[% PROCESS titlebar width="100%" title="Wrong image text, try again" %]
<br><p><b>You failed to confirm you are a human. Please double-check
the image and make sure you typed in what it says.</b></p>
 
[% CASE "users_maxreads" %]
[% PROCESS titlebar width="100%" title="Maximum Users Viewings Exceeded" %]
<br><p><b>You've reached the maximum number of times you can access users.pl: [% limit %] accesses over [% interval %].
</b></p>

[%# Why can't these all just be genericized?  this is supposed to
  # be easy to use. I shouldn't have to create a new entry for
  # every single form that uses formkeys.  
  # Uh, because you might want a different message for each form. 
  # Got a problem with that? Huh? Huh? ;) %]

[% CASE "comments_maxposts" %]
[% PROCESS titlebar width="100%" title="Maximum Comments Exceeded" %]
<br><p><b>You've reached your maximum number of comments you can post: [% limit %] comments over [% interval %].
</b></p>

[% CASE "discussions_maxposts" %]
[% PROCESS titlebar width="100%" title="Maximum Discussions Exceeded" %]
<br><p><b>You've reached your maximum number of discussions you can submit: [% limit %] discussions over [% interval %].
</b></p>

[% CASE "submissions_maxposts" %]
[% PROCESS titlebar width="100%" title="Maximum Submissions Exceeded" %]
<br><p><b>You've reached your maximum number of submissions you can post: [% limit %] submissions over [% interval %].
The authors can only read so many submissions in a day.
</b></p>

[% CASE "users_maxposts" %]
[% PROCESS titlebar width="100%" title="Maximum User Changes Exceeded" %]
<br><p><b>You've reached your maximum number of user changes you can perform: [% limit %] user modifications over [% interval %].
</b></p>

[% CASE "login_maxposts" %]
[% PROCESS titlebar width="100%" title="Maximum Login Forms Exceeded" %]
<br><p><b>You've reached your maximum number of login forms you can submit: [% limit %] forms over [% interval %].
</b></p>

[% CASE "comments_response" %]
[% PROCESS titlebar width="100%" title="Slow Down Cowboy!" %]
<p>[% constants.sitename %] requires you to wait longer between 
hitting 'reply' and submitting a comment.</p>
<p>It's been [% interval %] since you hit 'reply'.</p>

[% CASE "comments_unused" %]
[% PROCESS titlebar width="100%" title="Post or Not?" %]
You have hit reply without submitting [% limit %] times, which 
the system doesn't permit. Either submit the form, or don't.

[% CASE "users_unused" %]
[% PROCESS titlebar width="100%" title="Post or Not?" %]
You have pulled up a user modification form without submitting [% limit %] times, which 
the system doesn't permit. Either submit the form, or don't.

[% CASE "submissions_unused" %]
[% PROCESS titlebar width="100%" title="Post or Not?" %]
You have brought up the submission form without submitting [% limit %] times, which 
the system doesn't permit. Either submit your submission, or don't.

[% CASE "discussions_unused" %]
[% PROCESS titlebar width="100%" title="Post or Not?" %]
You have brought up the discussions form without submitting [% limit %] times, which 
the system doesn't permit. Either submit your discussion, or don't.

[% CASE "comments_speed" %]
[% PROCESS titlebar width="100%" title="Slow Down Cowboy!" %]
<p>[% constants.sitename %] requires you to wait  between
each [% IF attempt %] attempt to reply to [% ELSE %] successful posting of [% END %]
 a comment to allow everyone a fair chance at posting a comment.</p>
	[% IF interval %]
<p>It's been [% interval %] since you last [% IF attempt %] tried to reply to 
[% ELSE %] successfully posted [% END %] a comment</p>
	[% END %]

[% CASE "submissions_speed" %]
[% PROCESS titlebar width="100%" title="Slow Down Cowboy!" %]
<p>[% constants.sitename %] requires you to wait [% limit %] between
each [% IF attempt %] attempt to post [% ELSE %] successful posting of [% END %]
a submission to allow everyone a fair chance, and the authors a fair chance at
reviewing your submission.</p>
	[% IF interval %]
<p>It's been [% interval %] since you last [% IF attempt %] loaded the form to post 
[% ELSE %] successfully posted [% END %] a submission</p>
	[% END %]

[% CASE "discussions_speed" %]
[% PROCESS titlebar width="100%" title="Slow Down Cowboy!" %]
<p>[% constants.sitename %] requires you to wait [% limit %] between
each [% IF attempt %] attempt to create [% ELSE %] successful creation of [% END %]
 a discussion .</p>
	[% IF interval %]
<p>It's been [% interval %] since you last [% IF attempt %] tried to create 
[% ELSE %] successfully created [% END %] a discussion</p>
	[% END %]

[% CASE "users_speed" %]
[% PROCESS titlebar width="100%" title="Slow Down Cowboy!" %]
<p>[% constants.sitename %] requires you to wait [% limit %] between
each change of user settings.</p>
	[% IF interval %]
<p>It's been [% interval %] since you [% IF attempt %] last loaded a form to change [% ELSE %]
last changed [% END %] a user setting</p>
	[% END %]

[% CASE "login_speed" %]
[% PROCESS titlebar width="100%" title="Slow Down Cowboy!" %]
<p>[% constants.sitename %] requires you to wait [% limit %] between
each login form submission.</p>
	[% IF interval %]
<p>It's been [% interval %] since you [% IF attempt %] last loaded [% ELSE %]
last submitted [% END %] a login form.</p>
	[% END %]

[% CASE "formabuse_invalid" %]
invalid formkey [% formname %] [% formkey %] 

[% CASE "formabuse_usedform" %]
form [% formname %] [% formkey %] already submitted 

[% CASE "journal_speed" %]
You need to wait [% limit %] between posts.

[% CASE "journal_unused" %]
You have accessed the journal entry form [% limit %] times, which the system
doesn't permit. Please submit the form.

[% CASE "journal_maxposts" %]
You can only post [% limit %] posts per [% interval %].

[% CASE "cantinsert" %]
We are apparently having a temporary problem with our database (or maybe
our random formkey generator). Please try again later.

[% CASE "cantinserthc" %]
We are apparently having a problem with our human-confirmation code.

[% CASE %]
An unexpected error has occurred.<br><b>[% value %]</b><br>
[% END %]

[% IF value != "invalidhcretry" %]
<p>Chances are, you're behind a firewall or proxy, or clicked the
Back button to accidentally reuse a form.  Please try again.
If the problem persists, and all other options have been tried, contact the
<a href="mailto:[% constants.adminmail | strip_attribute %]">site administrator</a>.
[% END %]

__seclev__
1000
__version__
$Id$
