Topic: character limit for news-title and short-story

Hey guys,
I need a limit for my news-title and short-story.
When it's too long it should show an error-message like "Your Short-Story is too long. You are allowed to write only XXX letters."

I think I have to add some codes into editnews.mdu and addnews.mdu, but what??

Please help

Re: character limit for news-title and short-story

Maybe these posts would give you some idea  https://cutephp.com/forum/style_emoticons/default/sleep.gif
[HACK] Automatic Short Story
[HACK] Characters left in comments form

Re: character limit for news-title and short-story

I solved this with "javascript" in the template

<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
<script>
    var str="{title}";
    document.write(str.substring(0,16));
</script>
</div>

Change the number 16 by the number of characters you want to show

I hope that works for you