Customizing SMF > SMF Coding Discussion

Assign id tag to the input textbox for subject

(1/1)

bhatmahesht:
I installed smf and I need to assign 'id' tag of the 'subject' textbox while while posting . Presently when I look at the code it is like
 
--- Code: ---<input class="input_text" type="text" maxlength="80" size="80" tabindex="1" name="subject">
--- End code ---
I want it to look like

--- Code: ---<input id="subject" class="input_text" type="text" maxlength="80" size="80" tabindex="1" name="subject">
--- End code ---

I browsed through many files , but still don't know which php file can be used to assign "id" to the "subject" input box

Thank you

bhatmahesht:
Ok, I found out.
Here is the list of files that I can edit if I want to change the ids

Subject   -> Post.template.php
Quick Reply -> Display.template.php
Message body -> GenericControls.template.php
Search -> index.template.php

These worked for default template for me. Not sure if it can work for other templates too. I'm novice to simple machine's forum

Arantor:
Why do you need to assign the id to it, exactly? There is no operation in SMF that requires the id being set.

bhatmahesht:
I was adding google transliteration to them. google transliteration helps to write other languages using English Keyboard.

Colin:
Fair enough. Do note that this would only work for the theme you made the edits to. Thanks for posting the solution so other users are able to reference this topic. I have marked this topic as solved.

Navigation

[0] Message Index

Go to full version