Persona: display full name instead of username

Moved Technical Support
  • Hi,

    is there a way to display the full name instead of the username in posts? Thank you

    Chris

  • Found it 🙂

    https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/partials/topic/post.tpl#L16

    change that line to...

    <a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->" itemprop="author" data-username="{posts.user.username}" data-uid="{posts.user.uid}">{posts.user.fullname}</a>
    

    Full Name is an optional field so not everybody updates it in their profile. You might want to check if it's available before displaying it.

    <a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->" itemprop="author" data-username="{posts.user.username}" data-uid="{posts.user.uid}"><!-- IF posts.user.fullname -->{posts.user.fullname}<!-- ELSE -->{posts.user.username}<!-- ENDIF posts.user.fullname --></a>
    

Suggested Topics


  • 0 Votes
    1 Posts
    92 Views

    Hi all,

    I've been used the Slick theme for quite a while and there there's the Subscribe button. Now, upon switching to the Persona theme, I can't find any evidence of it. Is it a bug or is it by design? If it's by design how can I subscribe to a Category?

    Thanks, Riccardo

  • 1 Votes
    7 Posts
    347 Views

    @josef this is a great plugin for filling the community with content. It is a pity that it does not work correctly

  • Post name without topic/id?

    Unsolved Technical Support
    0 Votes
    3 Posts
    313 Views

    @julian I see. I love the wordpress permalinks where there are no ID's, it's just the post name so I hoped there was something like that for nodebb. Still better than the last forum sw I was using :).

    Thanks.

  • 0 Votes
    1 Posts
    282 Views

    I've got two questions concerning notifications.

    Is it possible to display more notifications in the "notification window"? This seems to be limited to 15? I know that I can see all on the /notifications page but it would be easier to just see more in the notification window.

    Is there any possibility to display the category of the topics in the notification (either notification window or notification page)? Or should I put a topic for that in feature requests?

    Thanks for your help.

  • 0 Votes
    5 Posts
    2k Views

    psychobunny/nodebb-plugin-recent-cards#6 when merged will allow you to internationalise the plugin.