Page 1 of 2

Reason on editing

Posted: Mon Dec 28, 2015 10:25 am
by TJK
I am reposting the question as suggested by stevemaury here.

I am running a subsilver edition of phpbb3 -xand- and I would like to display the "reason" every time a moderator edits a post and leaves a message for the reason. While this is done in prosilver , in subsilver this is not done.

Is there something that can be done about it? What files do I need to edit?

Thank you in advance.

This is what I actually want the post to look like after editing and a reason is given:

Last edited by: ....
Reason: ....

Well the last edited by is by default appearing but the reason is missing. Any help appreciated.

Re: Reason on editing

Posted: Mon Dec 28, 2015 11:37 am
by RMcGirr83
It isn't because of the style. Code would need to be added to the PHP code.

Re: Reason on editing

Posted: Mon Dec 28, 2015 2:15 pm
by mrgoldy
It should be possible if the 'Edit reason' was filled in? That's already there in PHP coding.. So styles could use that, could you provide a link to the 'xand' style?

Re: Reason on editing

Posted: Mon Dec 28, 2015 5:05 pm
by TJK
posey wrote: could you provide a link to the 'xand' style?
This is the "xand" style based on subsilver2.
RMcGirr83 wrote:It isn't because of the style. Code would need to be added to the PHP code.
Okay , that sounds like an answer but what file should I edit? Would that be the .php files or the templates and css files within the ACP? Also, what kind of code should be added? I am kind of a little new to php so I don't have that much experience.

Thanks for the answer anyway.

Re: Reason on editing

Posted: Mon Dec 28, 2015 5:26 pm
by Lumpy Burgertushie
I can't reproduce the problem.

I just installed xand on my test board.
when I click on the edit icon, I get the standard page. I edit the post. I put in my reason for editing.
I click submit.
I return to the post and both the time edited and the reason edited are there just as they should be.

the proper code is in both subsilver2 and in xand.

it does work as it should.

the only thing that should keep it from working is if you changed the code in the html files or if you do not have the proper permissions to see and/or use the edit function.


robert

EDIT: are you sure that you have all the editing settings correct in the admin panel under the Post Settings section?

Re: Reason on editing

Posted: Tue Dec 29, 2015 1:15 am
by RMcGirr83
I believe the OP wants the reason to be mandatory.

Re: Reason on editing

Posted: Tue Dec 29, 2015 5:22 am
by Lumpy Burgertushie
I understood it that he just wants it to work in his style which is what he said is not happening.


robert

Re: Reason on editing

Posted: Wed Dec 30, 2015 3:19 pm
by TJK
Lumpy Burgertushie wrote: when I click on the edit icon, I get the standard page. I edit the post. I put in my reason for editing.
I click submit.
I return to the post and both the time edited and the reason edited are there just as they should be. the proper code is in both subsilver2 and in xand.

it does work as it should.
No, you misunderstood me...
I did not say that the reason is not showing up. The reason, if entered , will show up as it should. That is not the problem.

The problem that the word reason won't show up. For example in prosilver when an edit reason is entered at the bottom of the edited message you see:
----------
Last edited by <username> <date>
Reason: Some reason
while in subsilver you see the following:
Last edited by <username> <date>
Some reason
That is the word Reason is not displayed at all. That is what I would like to add. Every time a moderator leaves a message this word to be displayed. And the question is if this is possible. I guess the answer is positive but I don't know what files to edit.
Lumpy Burgertushie wrote: are you sure that you have all the editing settings correct in the admin panel under the Post Settings section?
Yes, I have not changed anything of that and all in all I have not altered anything of the html and css files that concern the editing procedure.

Re: Reason on editing

Posted: Wed Dec 30, 2015 3:30 pm
by Brf
You mean subsilver2's viewtopic_body.html does not have
{L_REASON}{L_COLON} before {postrow.EDIT_REASON}

Re: Reason on editing

Posted: Wed Dec 30, 2015 3:53 pm
by Lumpy Burgertushie
brf, apparently, the answer to your question is no, it does not.

subsilver2 ( and xand as well ) have this line:

<td class="row2"><span class="genmed">{postrow.EDIT_REASON}</span></td>

prosilver has this one:
<!-- IF postrow.EDIT_REASON --><br /><strong>{L_REASON}:</strong> <em>{postrow.EDIT_REASON}</em><!-- ENDIF -->

very strange.

OP: you can fix this by editing that file.

find:
<td class="row2"><span class="genmed">{postrow.EDIT_REASON}</span></td>

change it to:
<td class="row2"><span class="genmed"><strong>{L_REASON}:</strong> {postrow.EDIT_REASON}</span></td>

robert

Re: Reason on editing

Posted: Wed Dec 30, 2015 8:19 pm
by TJK
Thank you Lumpy Burgertushie. That solved the problem.
Something else. How do the letters next to the word reason appear in italicezed format just like prosilver? Can this be done or not?

Re: Reason on editing

Posted: Wed Dec 30, 2015 9:19 pm
by Lumpy Burgertushie
change that line to this:
<td class="row2"><span class="genmed"><strong>{L_REASON}:</strong> <em>{postrow.EDIT_REASON}</em></span></td>

notice the <em> tags that surround the EDIT_REASON variable

robert

Re: Reason on editing

Posted: Wed Dec 30, 2015 10:18 pm
by TJK
Thank you.. This works as it should.

Re: Reason on editing

Posted: Thu Jan 28, 2016 6:43 am
by TJK
Hmm... something else. How do we add the dashed lines just before the

Last edited by:
Reason:

like in prosilver?

I guess it has something to do with what brf said:
Brf wrote:You mean subsilver2's viewtopic_body.html does not have
{L_REASON}{L_COLON} before {postrow.EDIT_REASON}

Re: Reason on editing

Posted: Thu Jan 28, 2016 7:17 am
by Lumpy Burgertushie
open stylesheet.css add the following to the bottom of the file:

Code: Select all

/* Post noticies */
.notice {
	font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
	width: 10%;
	margin-top: 1.5em;
	padding-top: 0.2em;
	font-size: 1em;
	border-top: 1px dashed ;
	clear: left;
	line-height: 130%;
}
open viewtopic_body.html

find:

Code: Select all

<!-- IF postrow.EDIT_REASON -->
							<br /><br />
on a new line after, add:

Code: Select all

<div class="notice"></div>
save and upload back, purge cache and refresh browser.

you can adjust the css to make the dashed line look as you wish.


robert