inyah
New Member
Posts: 10
inherit
260671
0
Sept 5, 2022 3:30:11 GMT -8
inyah
10
March 2020
inyah
|
Post by inyah on Mar 22, 2020 2:25:00 GMT -8
Hello! I was trying out from support forums how to get rid off the 'last edited by...' and thought i did everything how instructions said but quickly got into a mess. Now my forum is kinda unusable by somekind of mistake so i thought if someone could check the code and help me to fix this? It would be much appreciate! Here's the code:
|
|
inherit
140147
0
Nov 19, 2024 5:07:22 GMT -8
Nscalerr
Throw me to the wolves and I'll return leading the pack!
3,043
May 2009
nscalerr
|
Post by Nscalerr on Mar 22, 2020 4:50:50 GMT -8
Hi inyahYou can reset the template to default by clicking the 'Reset to Default' button. Now to hide the last edited by, go to the Thread > Post List template, line 33 and on a new line below it add <!-- then go down to line 37 and on a new line below it add --> as the code below shows. <!-- {if $[post.edited]} <div class="edited_by"><span class="italic">Last Edit:</span> $[post.edited.date] by $[post.edited.by_user]{if $[post.edited.reason]}: $[post.edited.reason]{/if}</div> {/if} --> Now for an optional edit, go to the Posting Page template line 50 and on a new line below it add <!-- going down to line 58 and on a new line below it add --> as the code below shows. <!-- {if $[form.updated_reason.input]} <div class="edit_reason content-box pad-all-double"> <label>Edit Reason (optional):</label> <div>$[form.updated_reason.input]</div> </div> {/if} --> Post back if you have problems.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Mar 22, 2020 8:31:59 GMT -8
Nscalerr , the modification you suggested for the Post List tab of the Thread layout template comments out both the edit information and the signature. Is that intentional or should you end the comment after the end of the first {if} loop?EDIT: Nscalerr edited the post to which I referred so all should be well with that now.
Editing the layout templates to prevent the information from hitting the page is first place is a bit 'cleaner' than removing it after the fact. So if someone was willing to make the extra effort to do that, it would have some benefit. But adding this to the bottom of the Style Sheet would be simpler: /* Remove Edit information from Posts, Edit reason from Posting Page */ div.edited_by, div.edit_reason { display:none; } /* End of Section */ Or if it was desired to do this to ALL themes on the forum, this could be placed in the Global Header or Global Footer, instead: <style> /* Remove Edit information from Posts, Edit reason from Posting Page */ div.edited_by, div.edit_reason { display:none; } /* End of Section */ </style>
|
|
inherit
140147
0
Nov 19, 2024 5:07:22 GMT -8
Nscalerr
Throw me to the wolves and I'll return leading the pack!
3,043
May 2009
nscalerr
|
Post by Nscalerr on Mar 22, 2020 13:18:27 GMT -8
Ooooooops it was a mistake, (what comes of doing it when tired). I have edited the coding error.
|
|
inyah
New Member
Posts: 10
inherit
260671
0
Sept 5, 2022 3:30:11 GMT -8
inyah
10
March 2020
inyah
|
Post by inyah on Mar 24, 2020 0:11:27 GMT -8
Thank you for both of you! All is fine and works perfectly now!
|
|