Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

share|improve this question
    
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
    
Mahesh Bhat, if my answer solved your problem please accept it –  Anagio Jun 21 '12 at 18:26
add comment

1 Answer 1

up vote 2 down vote accepted

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

share|improve this answer
    
Yes, this got worked for me, Thank you –  Mahesh Bhat Jun 26 '12 at 5:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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