You can't without an extension.phpbuser19 wrote: ↑Mon Sep 06, 2021 2:58 am Some of my users (not the topic startes) are changing Subject of the topic, which changes "Last post" in index.php view.
If I'm looking at "Quck Links / Active Topics" I do see Subects that were assigned by topic starters.
So, when user hits "Post Reply" or "Reply with quote" button - they are presented with "Subject" field and they can edit it to whatever they want.
This functionality doesn't really make sense to me, as the Subject should be assigned and be editable by topic starters only.
How can I prevent users from changing Subject of the topic when thy simply reply to the topic?
That particular one seems to slow down the forum quite a bitrxu wrote: ↑Mon Sep 06, 2021 6:31 am Probably with some extension like that https://www.phpbb.com/customise/db/exte ... m_replies/
We all know how to change the subject (of the post).
Why??
is: because it can be useful.An alias @ an institution (a location)
Re:
were allowed.Code: Select all
<input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" />
Code: Select all
<!-- IF not S_NEW_MESSAGE -->{SUBJECT}{DRAFT_SUBJECT}<!-- ENDIF -->
<input type="<!-- IF S_NEW_MESSAGE -->text<!-- ELSE -->hidden<!-- ENDIF -->" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" />
Hithecoalman wrote: ↑Mon Sep 06, 2021 11:41 pm Untested but you can open /styles/prosilver/template/posting_editor.html
Find:
Code: Select all
<input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" />
Replace with:Purge the cache after uploading edited file. Note that this just hides the input field and someone with HTML knowledge could get around it.Code: Select all
<!-- IF not S_NEW_MESSAGE -->{SUBJECT}{DRAFT_SUBJECT}<!-- ENDIF --> <input type="<!-- IF S_NEW_MESSAGE -->text<!-- ELSE -->hidden<!-- ENDIF -->" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" />
Code: Select all
<dd><input type="text" name="subject" id="subject" size="45" maxlength="124" tabindex="2" value="{SUBJECT}" class="inputbox autowidth" /></dd>
Code: Select all
<dd>{SUBJECT}<input type="hidden" name="subject" id="subject" size="45" maxlength="124" tabindex="2" value="{SUBJECT}" class="inputbox autowidth" /></dd>
Yes, I thought about that but can be easily circumvented with Right Click / Inspectthecoalman wrote: ↑Thu Sep 16, 2021 12:23 am Open /styles/prosilver/template/quickreply_editor.html and find:
Replace with:Code: Select all
<dd><input type="text" name="subject" id="subject" size="45" maxlength="124" tabindex="2" value="{SUBJECT}" class="inputbox autowidth" /></dd>
Code: Select all
<dd>{SUBJECT}<input type="hidden" name="subject" id="subject" size="45" maxlength="124" tabindex="2" value="{SUBJECT}" class="inputbox autowidth" /></dd>
To reiterate this only hides the input and someone with HTML knowledge would be able to manipulate it.
RegardsDescription of the extension:
Prevents the change of the subject when answering a contribution.
Depending on what is set in the ACP with "subsequent processing time", the subject can be changed in the starting post by the author, which is not the following contributions from the same author.
Admins or moderators can always change the subject.
Source / Download: https://reyno41.bplaced.net/phpbb/viewt ... f=41&t=494
Code: Select all
<dl style="clear: left;">
Code: Select all
<dl style="clear: left; display: none;">