This update solves the issue with multiple post submisstions that happens with users on slow connections and to avoid multiple click on the submit buttons for new posts and new topics. If yu do not have these issues no need to update. How to update update the cgi files: PostReply.pm PostTopic.pm Configuration.pm update the language file Forum.pm or just do these changes: new_post_submit~==~<input name="Post" type="submit" value="Submit" class="Buttons" onClick="document.NewPost.SubAction.value='Submit'; mySubmit(); return false;"> new_post_preview~==~<input name="Preview" type="submit" value="Preview" class="Buttons" onClick="document.NewPost.SubAction.value='Preview'; mySubmit(); return false;">
post_new_topic_submit~==~< input name="Post" type="submit" value="Submit" class="Buttons" onClick="document.NewPost.SubAction.value='Submit'; mySubmit(); return false;">
post_new_topic_preview~==~<input name="Preview" type="submit" value="Preview" class="Buttons" onClick="document.NewPost.SubAction.value='Preview'; mySubmit(); return false;">
Update the templates: NewTopic.html, NewPost.html
or do the following changes in both templates: change the line: <input type="hidden" name="VisualEditorSwitch" value=""> to: <input type="hidden" name="VisualEditorSwitch" value=""> <input type="hidden" name="SubAction" value="">
change the line: function mySubmit() { to: function mySubmit() { document.NewPost.Post.disabled=true; document.NewPost.Preview.disabled=true;
That's it. Thank you |