Support » Plugin: Simple Ajax Chat » Default to logged-in user name

Viewing 3 replies - 1 through 3 (of 3 total)
  • Fixed it. It appears that the user nickname is referenced in simple-ajax-chat-form.php but not defined anywhere.

    Here my solution if somebody needs it:
    Edit simple-ajay-chat-form.php at line 80:

    <?php get_currentuserinfo();
           echo $custom_form_pre; ?>

    to:

    <?php global $current_user;
           get_currentuserinfo();
           $user_nickname = $current_user->display_name;
           echo $custom_form_pre; ?>

    Done.

    thanks i wanted this 😀

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Default to logged-in user name’ is closed to new replies.