Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Aaron10 - elokuu 17, 2014, 03:22:52 IP

Otsikko: Quick Edit - disable subject field
Kirjoitti: Aaron10 - elokuu 17, 2014, 03:22:52 IP
Instead of the field to edit a message I want to disable it and just have it show like normal. The following works but upon clicking quick edit the subject line will disappear, but it reappears after saving. So basically just need to put something inside the anchor like $message['subject']

sTemplateSubjectEdit: ', JavaScriptEscape('<a href="' . $scripturl . '?topic=' . $context['current_topic'] . '.msg%msg_id%#msg%msg_id%" rel="nofollow">What goes here?</a><input type="text" style="width: 90%;" name="subject" value="%subject%" size="80" maxlength="80" tabindex="' . $context['tabindex']++ . '" class="input_text" />