From: Howell, M. <ho...@ra...> - 2003-07-17 18:46:00
|
Here's how you would alter the behavior for your site: (re-sending to include slashcode list) 1. Create a var called 'require_comment_preview' and give it a value of '1' 2. Edit template default;comments;edit_comments Change the lines that says: <INPUT TYPE="SUBMIT" NAME="op" VALUE="Submit"> <INPUT TYPE="SUBMIT" NAME="op" VALUE="Preview"> To say: [% IF !constants.require_comment_preview || form.op = "Preview" %] <INPUT TYPE="SUBMIT" NAME="op" VALUE="Submit"> [% END %] <INPUT TYPE="SUBMIT" NAME="op" VALUE="Preview"> After those two mods, you'll be able to just change the require_comment_preview var to '0' to disable this new feature. I'm just shooting from the hip, here, and haven't actually looked at any existing feature set. The actual solution will depend on the version of slashcode that you're using and any mods that you've already made. Good luck, -Mark -----Original Message----- From: Jeremy Morton [mailto:je...@ru...] Sent: Wednesday, July 16, 2003 6:24 PM To: sla...@li... Subject: [Slashcode-development] Forced post previewing? Hi. I'm new to this list, but would like to suggest a very simple idea for SLASH: forced post previewing. All we need is a checkbox option added for 'forced post previewing'. If this was checked, it would remove the 'Submit' button from the initial post submit form, but leave it on the preview page. Obviously, this would have the effect of requiring at least one preview before posting, much like is required for submitting a story. I think this would be a very useful feature that I, amongst many other users, would like, and it would improve the quality of many posts too. Less typos! BTW how many people are on this list? I haven't received a *single* e-mail yet! Best regards, Jez ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Slashcode-development mailing list Sla...@li... https://lists.sourceforge.net/lists/listinfo/slashcode-development [ALERT] -- Access Manager: This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this e-mail in error, please immediately notify us by calling our North American Help Desk at (972)506-3939. |