Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How To Remove "edited ...." in Comment head

I've installed the edit plugin that displays the "edit" time of the post. I would like to remove it from the top of the comment.


Thanks

Comments

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    The "edited" is part of Vanilla and always appears if a comment has been edited. It is a side effect of using the LastEdited plugin, not a part of it:

    When looking at the source code, you can see which definition you have to add to your locale file to change it:

    if (!function_exists('dateUpdated')) {
        function dateUpdated($Row, $Wrap = null) {
    ...
                $Result = ' <span title="'.htmlspecialchars($Title).'" class="DateUpdated">'.
                    sprintf(T('edited %s'), Gdn_Format::Date($DateUpdated)).
                    '</span> ';
    

    Create /conf/locale.php and add

    <?php
    
    $Definition['edited %s'] = '';
    

    (if the file already exists, you can skip the first line)

  • Options

    Thanks @R_J =)

Sign In or Register to comment.