Formating types (html, text, etc) in Submissions
I've been developing a slash site (westbloomfieldtwp.com) to discuss local politics and events, and I've been adapting it for the less technicly inclined. One thing I'd like to do is have the different formatting optinons (html, plain text, extrans, code) when one is submitting a story. There is already this option when submitting comments. This way, the default could be verbatim text so that people arn't surprised if their comment has angle brackets or they do anything important with paragraphs. Is there any way this can be easily done?
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.



that would be cool (Score:2)
On a side note; I see that on
Peace,
Sandor
Re:that would be cool (Score:2)
It is a actually a pretty handy little feature which is slowly been exteneded to drop downs and other forms of input.
--
You can't grep a dead tree.
This is how I did it. (Score:0)
-take submit.pl and copy it to submit2.pl
-then copy every template used by submit.pl and have it use submit2.pl
-edit submit2.pl and replace both instances of strip_html with strip_plaintext (idea crtsy of Micah Yoder)
You would have two links for story submissions - plain text and HTMLified.
Don't forget to restart apache to allow your new templates to work.