![]() |
Change new reply 'title' to 'readonly'
Hello.
This is to make the 'title' field UNEDITABLE in new replies so only the title from the thread is used. In the 'newreply' template, Find this code: Code:
<td class="smallfont" colspan="3">$vbphrase[title]: Code:
<font class="smallfont">(uneditable since replying)</font> Find this code: Code:
<input type="text" class="bginput" name="title" value="$title" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /> Modify to: Code:
<input type="text" class="bginput_title" name="title" value="$title" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" readonly="readonly" /> class="bginput_title" can be changed to whatever class of attributes you want to have for the BACKGROUND COLOR of the input text field. Since the 'readonly' attribute is used, the data for this field is still sent to the server. Have fun! EDIT: CHANGED in 'Modify to:' from 'readonly' to readonly="readonly" for compliance. The original version works, but should be compliant... :rolleyes: |
readonly="readonly" should be used for compliance.
Good idea, although I don't intend to use it myself. |
Thank you for sharing. :)
Could you please put your instructions into a .txt file and attach them? Thanks. |
Quote:
Quote:
|
All times are GMT. The time now is 12:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|