- Posts: 77
- Thank you received: 0
- Forum
- Archive
- Kunena 1.5
- K 1.5 Hacks, Tricks & Tips
- Can I possibly hide or alternatively remove "last modified"?
Kunena 5.2.9 released and Kunena 6.0.0 (08 Jun 2022)
The Kunena team has announce the arrival of Kunena 5.2.9 [K 5.2.9] which is now available for download as a native Joomla extension for J! 3.10. This version addresses most of the issues that were discovered in K 5.2 and issues discovered during the development stages of previous version of K5.2.
The Kunena team has announce the arrival of Kunena 6.0.0 [K 6.0.0] which is now available for download as a native Joomla extension for J! 4.1.x. Only the module kunena latest and the discuss plugin which are still in beta are working in Joomla! 4.1 with Kunena 6.0.
Question Can I possibly hide or alternatively remove "last modified"?
Can I possibly hide it or alternatively drastically remove it altogether from the front end? Thanks
Please Log in or Create an account to join the conversation.

Personally, I wouldn't change this. The current mechanism provides honesty, openness and transparency in how you deal with your forum users. And, yes, I did edit this message after I originally posted it.
There is another way, if you want to conceal this information: directly edit the database (but I'm not going to explain how to do that)

Blue Eagle vs. Crypsis reference guide
Read my blog and

Please Log in or Create an account to join the conversation.
find the code that displays the "last edit" and comment the code
That was very quick, thanks. I found that line, but what do you mean though by "comment the code"? I'm not a programmer and I only touch php and css if I'm sure of what I'm doing and I fear "comment" is some sort of programmer jargon, or is it not? ;p
Please Log in or Create an account to join the conversation.
In the file /components/com_kunena/template/default_ex/message.php, at line 333 replace this :
echo '<span class="fb_message_editMarkUp">'. _KUNENA_EDITING_LASTEDIT .': '. date(_DATETIME, $fmessage->modified_time) .' '. _KUNENA_BY .' '. CKunenaTools::whoisID($fmessage->modified_by) .'.';
by this :
echo '<span class="fb_message_editMarkUp">'. date(_DATETIME, $fmessage->modified_time) .' '. _KUNENA_BY .' '. CKunenaTools::whoisID($fmessage->modified_by) .'.';
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
I presumed you wanted to know how to remove this whole feature and I meant to write "comment out the affected code". In other words, "turn the affected area of the program into a 'comment'". (Commented code is programmer jargon, yes. It means "allow the text in this program to appear so that humans can read it - for comments and such like - but do not run the code. In PHP you can comment code by putting /* before the comment and a */ after the comment.)
Alternatively to xillibit's solution, change from line 332 of ../components/com_kunena/template/default_ex/message.php, from
if ($fmessage->modified_by) {
echo '<span class="fb_message_editMarkUp">'. _KUNENA_EDITING_LASTEDIT .': '. date(_DATETIME, $fmessage->modified_time) .' '. _KUNENA_BY .' '. CKunenaTools::whoisID($fmessage->modified_by) .'.';
if ($fmessage->modified_reason) {
echo _KUNENA_REASON .': '. kunena_htmlspecialchars(stripslashes($fmessage->modified_reason));
}
echo '</span>';
/*
if ($fmessage->modified_by) {
echo '<span class="fb_message_editMarkUp">'. _KUNENA_EDITING_LASTEDIT .': '. date(_DATETIME, $fmessage->modified_time) .' '. _KUNENA_BY .' '. CKunenaTools::whoisID($fmessage->modified_by) .'.';
if ($fmessage->modified_reason) {
echo _KUNENA_REASON .': '. kunena_htmlspecialchars(stripslashes($fmessage->modified_reason));
}
echo '</span>';
*/
Blue Eagle vs. Crypsis reference guide
Read my blog and

Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- LittleJohn
-
- Offline
- Kunena Contributor
php-code that is commented out, doesnt get parsed by the server.
Html that is commented out, is visible in the page source.
But if the PHP is not printed, the html comments is of course not there either.
Example:
PHP:
$variable = "<b>This is in bold</b> <!-- html comment inside variable - is visible in page source ('view source') --> <br>";
print $variable; // will be shown
echo $variable; // will be shown
//print $variable; // will not be shown (only one line is commented out)
/*
print $variable; // will not be shown (a whole block of code is commented out)
*/
cheers
Please Log in or Create an account to join the conversation.
xillibit wrote: Hello,
In the file /components/com_kunena/template/default_ex/message.php, at line 333 replace this :
echo '<span class="fb_message_editMarkUp">'. _KUNENA_EDITING_LASTEDIT .': '. date(_DATETIME, $fmessage->modified_time) .' '. _KUNENA_BY .' '. CKunenaTools::whoisID($fmessage->modified_by) .'.';
by this :
echo '<span class="fb_message_editMarkUp">'. date(_DATETIME, $fmessage->modified_time) .' '. _KUNENA_BY .' '. CKunenaTools::whoisID($fmessage->modified_by) .'.';
this is to hide the username, now how about to change it to show name instead of username?!!
_KUNENA_BY .' '. CKunenaTools::whoisID($fmessage->modified_by)
Please Log in or Create an account to join the conversation.
Forum Access
- Not Allowed: to create new topic.
- Not Allowed: to reply.
- Not Allowed: to edit your message.
- Forum
- Archive
- Kunena 1.5
- K 1.5 Hacks, Tricks & Tips
- Can I possibly hide or alternatively remove "last modified"?