• Resolved Anonymous User 16052280

    (@anonymized-16052280)


    Hi guys,

    Is it possible to use the user’s first_name in the tickets?
    I would like to create a more user-friendly environment.
    I believe these are the code lines but not sure how to change the name:

    * Display the ticket's author name (client's name) */
    ?><span class="wpas-profilename"><?php echo $author->data->user_nicename; ?></span> 
    <span class="wpas-profiletype"><?php echo wpas_get_user_nice_role( $author->roles[0] ); ?></span> 

    Cheers,
    Andrei

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    Where are you looking to display the first name?

    You’ll have to take the author id and then look up the name in the author user profile. So you’ll probably have to add a few lines of code (once you include the error-checking code in case WP returns an error from the lookup)

    Thanks.

    Thread Starter Anonymous User 16052280

    (@anonymized-16052280)

    Thank you, I am looking to display the user’s first-name in the ticket replies. Major websites have this practice of using the user’s first-name in their accounts or tickets (e.g. Amazon).

    My coding skills don’t allow me this customization but your reply is a starting point.

    Cheers,
    Andrei

    Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    Thanks for the clarification. Yeah, you’ll definitely need more than a one line code-change for that.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Username in Tickets’ is closed to new replies.