Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: suicidal-kid on October 07, 2006, 02:50:39 PM

Title: Disabling reply subject.(problem)
Post by: suicidal-kid on October 07, 2006, 02:50:39 PM
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.
Title: Re: Disabling reply subject.
Post by: Oldiesmann on October 07, 2006, 02:58:04 PM
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.
Title: Re: Disabling reply subject.
Post by: suicidal-kid on October 07, 2006, 03:06:55 PM
Quote from: Oldiesmann on October 07, 2006, 02:58:04 PM
Sure.


Thanks.
Title: Re: Disabling reply subject.
Post by: suicidal-kid on October 07, 2006, 07:37:57 PM
Problem:

Now when we try to reply, we get an error saying that no subjet was posted.