Index: lams_tool_forum/conf/language/lams/ApplicationResources.properties =================================================================== diff -u -r09350a0b107144c9d0576a87fcdebf32dd07abe4 -r6af6a143d4f023e8011080783cb827368ead638e --- lams_tool_forum/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 09350a0b107144c9d0576a87fcdebf32dd07abe4) +++ lams_tool_forum/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 6af6a143d4f023e8011080783cb827368ead638e) @@ -136,6 +136,8 @@ label.authoring.advance.no.minimum =No minimum label.authoring.advance.no.maximum =No maximum error.min.less.max =The maximum number of posts must be greater than or equal to the minimum number of posts. +error.min.post.char.less=The maximum number of characters per posting must be greater than minimum number of characters per posting. +error.min.rate.less.max=The maximum number of ratings must be greater than minimum ratings. error.limit.char.less.zero =Limitation of input characters must be greater zero. error.less.mini.post =You must contribute at least {0} posts in each topic before finish. error.must.have.topic =Please add at least 1 topic when "allow learners to create new topics" option is off. @@ -227,6 +229,8 @@ label.rateLimits.forum.reminder.min =You must rate at least {0} postings. label.rateLimits.forum.reminder.max =You can only rate up to {0} postings. js.error.validate.number =There is an error with the minimum and/or maximum set for ratings. Please check and try again. +js.error.validate.posting.number =There is an error with the minimum and/or maximum set for postings. Please check and try again. +js.error.validate.reply.number = There is an error with the minimum and/or maximum number of posts per learner per thread. label.rateLimits.topic.reminder =You have rated {0} postings already. info.minimum.number.characters =The minimum number of characters for your response is {0}. warn.minimum.number.characters =You need to enter {0} characters more to proceed. Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/AuthoringAction.java =================================================================== diff -u -r3399163940c61c9132223c758d274486e57ff9b7 -r6af6a143d4f023e8011080783cb827368ead638e --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/AuthoringAction.java (.../AuthoringAction.java) (revision 3399163940c61c9132223c758d274486e57ff9b7) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/AuthoringAction.java (.../AuthoringAction.java) (revision 6af6a143d4f023e8011080783cb827368ead638e) @@ -859,14 +859,39 @@ ActionMessage error = new ActionMessage("error.limit.char.less.zero"); errors.add(ActionMessages.GLOBAL_MESSAGE, error); } + }if (!form.getForum().isAllowRichEditor()) { + if (form.getForum().getMaxCharacters() != 0 + && form.getForum().getMaxCharacters() < form.getForum().getMinCharacters()) { + ActionMessage error = new ActionMessage("error.min.post.char.less"); + errors.add(ActionMessages.GLOBAL_MESSAGE, error); + } } + if (form.getForum().isAllowRateMessages()) { + if (form.getForum().getMaximumRate() <= 0) { + ActionMessage error = new ActionMessage("error.limit.char.less.zero"); + errors.add(ActionMessages.GLOBAL_MESSAGE, error); + } + }if (form.getForum().isAllowRateMessages()) { + if (form.getForum().getMaximumRate() != 0 + && form.getForum().getMaximumRate() < form.getForum().getMinimumRate()) { + ActionMessage error = new ActionMessage("error.min.rate.less.max"); + errors.add(ActionMessages.GLOBAL_MESSAGE, error); + } + } + if (!form.getForum().isAllowNewTopic()) { if (form.getForum().getMaximumReply() != 0 && form.getForum().getMaximumReply() < form.getForum().getMinimumReply()) { ActionMessage error = new ActionMessage("error.min.less.max"); errors.add(ActionMessages.GLOBAL_MESSAGE, error); } } + if (!form.getForum().isAllowNewTopic()) { + if (form.getForum().getMaximumReply() <= 0) { + ActionMessage error = new ActionMessage("error.limit.char.less.zero"); + errors.add(ActionMessages.GLOBAL_MESSAGE, error); + } + } } catch (Exception e) { AuthoringAction.log.error(e.toString()); Index: lams_tool_forum/web/jsps/authoring/advance.jsp =================================================================== diff -u -r53168a242616c67154f5426db43b8aaa4a0033c6 -r6af6a143d4f023e8011080783cb827368ead638e --- lams_tool_forum/web/jsps/authoring/advance.jsp (.../advance.jsp) (revision 53168a242616c67154f5426db43b8aaa4a0033c6) +++ lams_tool_forum/web/jsps/authoring/advance.jsp (.../advance.jsp) (revision 6af6a143d4f023e8011080783cb827368ead638e) @@ -6,143 +6,184 @@ -
- -
+
+ +
-
- -
+
+ +
-
- -
+
+ +
-
- - -
+
+ +
-
- - -
+
+ +
- -
- -
+ +
+ +
-
-
- - - +
+
+ +
+
+ +
-
- - + + + + +
+
-
- - - -
- -
- -
- -
- -
-
- - - +
+
-
- - + +
+
+ +
+
+ +
-
+ - -
- -
-
- +
+ +
+
+ +
+
+ +
+
-
- -
-
-
-
- -
+
+ +
-
- -
+
+ +
-
- -
-
- -
+
+ +
+
+ +
- + ra.onkeyup = turnOnRefect; +