1

I have installed the simple machines forum. For my requirement I need to change the subject input box.

Presently the subject input box has the following code

<input type="text" class="input_text" maxlength="80" size="80" tabindex="1" name="subject">

I want this to be changed like

<input type="text" id="subject" class="input_text" maxlength="80" size="80" tabindex="1" name="subject">

How can I do this? I browsed through many files in simple machines forum and couldn't find out. Anyone one simple machines forum please help me

  • Use Totalcommander in windows or grep in linux to find this string name="subject" that should tell you the template it's in. – Anagio Jun 20 '12 at 6:21
  • 1
    Can you specify my requirement a little closer? Maybe there is another solution for it than the one you tried. – Michael Jun 20 '12 at 10:00
  • @Anagio Do you know that for a fact? (And if so, it'd be better to just provide the actual filename.) Many applications use helper libraries to build things like forms, and the responsible source will look nothing like what you're saying. See the source blocks on this page for an example. – Su' Jun 20 '12 at 10:06
  • @Su' I provided a comment suggesting a method to find it. I now gave an answer using the same method. – Anagio Jun 20 '12 at 14:36
2

Using totalcommander in windows I searched for name="subject"

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

line number 202 in file Post-template.php

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.