Hello! My name is Tom and I have a little problem ...
is there a way to view who modified the article?
I opened the file "compnents/com_k2/templates/default/item.php" and under <div class="itemContentFooter">
we have something like this
<? php echo $ this-> item-> author-> name;?> - it shows the author
<? php if ($ this-> item-> params-> get ('itemHits')):?> - the number of inputs
<? php echo JText :: _ ('K2_LAST_MODIFIED_ON');?> <? php echo JHTML :: _ ('date', $ this-> item-> modified, JText :: _ ('K2_DATE_FORMAT_LC2'));? > - Date modified. etc
I added this line <?php echo $this->item->modified_by?> And this only shows the user ID who edited the content, not the full name.
I'll be very grateful for your help .. :)
Best regards!
is there a way to view who modified the article?
I opened the file "compnents/com_k2/templates/default/item.php" and under <div class="itemContentFooter">
we have something like this
<? php echo $ this-> item-> author-> name;?> - it shows the author
<? php if ($ this-> item-> params-> get ('itemHits')):?> - the number of inputs
<? php echo JText :: _ ('K2_LAST_MODIFIED_ON');?> <? php echo JHTML :: _ ('date', $ this-> item-> modified, JText :: _ ('K2_DATE_FORMAT_LC2'));? > - Date modified. etc
I added this line <?php echo $this->item->modified_by?> And this only shows the user ID who edited the content, not the full name.
I'll be very grateful for your help .. :)
Best regards!