Support » Plugin: wpForo Forum » Change length of most recent poster and how time is displayed

  • Resolved David Borrink

    (@davidborrink)


    I’m looking for a setting to increase the length of the name of the most recent poster on a forum. It obviously has a limit of the number of characters. I changed the width of the column to allow a longer name (full name preferably) but it has a limit. Is this setting in the dashboard? Am I overlooking it or is a custom code needed to change that?

    I would also like to change the time since the most recent post to be days instead of weeks. Is that also in the settings? I don’t see it.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    Hi @davidborrink,
    You’re using the Extended forum layout. All options to manage what you want are located in Dashboard > Forums > Settings > Topics & Posts admin page.

    I looked on that page and I do not see a setting for “use days or weeks” for most recent comment, Or for length of name of last commenter to fill the width of the column. I extended the column width by CSS but the name is still short.

    I just don’t see the controls for these features on that page.

    Here is a screen shot of what I want to accomplish: https://prnt.sc/pius4c

    Plugin Author gVectors Team

    (@gvectors-team)

    @davidborrink,
    All WordPress plugins use WordPress date functions. The date you see called Human Time Diff, it comes from human_time_diff() function. There is no way to change 2 weeks to 14 days, because the mean o this function is the turning of 14 day to 2 weeks. If you do that, the month will be 30 days the year 365 days. These are not user-friendly dates and are not included in WordPress system, and in wpForo too.

    For the author name length you should copy forum template file to your theme /wpforo/ folder and change whatever you want. This is an update-safe way to customize wpForo template files: https://wpforo.com/docs/root/forum-themes/theme-customization/

    In your case copy wp-content/plugins/wpforo/wpf-themes/classic/layouts/1/forum.php file to wp-content/themes/yourtheme/wpforo/layouts/1/forum.php (create /wpforo/layouts/1/ folders before coping )

    Then open copied forum.php file, and find this code:

    <?php wpforo_member_link($member, 'by', 9); ?>

    change it to this:

    <?php wpforo_member_link($member, 'by', 20); ?>

    David Borrink

    (@davidborrink)

    Thank you for that very thorough explanation. You make a good case for not being able to change the time, so we’ll not pursue that one. The other one looks very doable. Thank you for that explanation with the function code explained. I was able to do it and it works. I appreciate it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.