Support » Plugin: Frontier Post » Changing username and date format for Moderation Comments

  • Resolved Vitaly



    Moderation comments are set in this file and can’t be changed as regular templates (placed into theme folder and customized). Comments are displayed as
    Date (Y-m-d format) – user_login

    Is it possible to add this file into a list of forms that could be customized or let administrator change date and username format in admin panel? The case is that it might be better to use display_name instead of login name. The date format is OK, although it might also be necessary to adjust it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author finnj


    I will look into this

    Plugin Author finnj


    Hi, I decided not to change options moderation, but for time format, it follows the selection for date format displayed in lists, thT can be set in FP Advanced settings
    If you want to change text, I have added a filter that will enable you to change the text:
    Filter: frontier_post_mod_cmt_update

    So, should I just replace “user_login” with “display_name” and apply frontier_post_mod_cmt_update filter in functions.php like this?

    $fp_moderation_comments  = mysql2date(fp_get_option('fps_date_format_lists', 'Y-m-d'), $my_post->post_date);
    $fp_moderation_comments .= " - ".$current_user->display_name.":<br>";
    $fp_moderation_comments .= $fp_moderation_comments_new."<br>";
    $fp_moderation_comments .= '<hr>'."<br>";
    $fp_moderation_comments .= $fp_moderation_comments_old."<br>";
    $fp_moderation_comments = apply_filters( 'frontier_post_mod_cmt_update', $fp_moderation_comments, $my_post, $tmp_task_new, $_POST );
    Plugin Author finnj


    Requires Frontier Post version 4.4.1 (Had made an error in 4.4.0) – Explanation here:

    Thank you for this, finnj. You really care!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing username and date format for Moderation Comments’ is closed to new replies.