News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Disabling reply subject.(problem)

Started by suicidal-kid, October 07, 2006, 02:50:39 PM

Previous topic - Next topic

suicidal-kid

SMF Version: SMF 1.0.8
Hi, I would like to know if there is a way to stop users from being able to give their replys subjects.

Thanks.
Go to my site! hxxp:tutorial-portal.net [nonactive]

Oldiesmann

Sure.

Themes/default/Post.template.php

Find
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' size="80" maxlength="80" tabindex="1" />

Replace
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' size="80" maxlength="80" tabindex="1"', !$context['is_new_topic'] ? ' disabled="disabled"' : '', ' />

That will prevent them from changing the subject if they're posting a reply.
Michael Eshom
Christian Metal Fans

suicidal-kid

Go to my site! hxxp:tutorial-portal.net [nonactive]

suicidal-kid

Problem:

Now when we try to reply, we get an error saying that no subjet was posted.
Go to my site! hxxp:tutorial-portal.net [nonactive]

Advertisement: