WordPress.org

Ready to get started?Download WordPress

Forums

CubePoints
Display user Full Name instead of User Name (2 posts)

  1. kaveet
    Member
    Posted 1 year ago #

    I am running the latest version of CubePoints.

    In the "Manage" and "Add Points" section, I'd like to show the user's actual name, and not the username they chose. Please advice me on how to change this in the plugin php. I am comfortable making changes to the php, I just don't know what to change. Please help!

    Thanks!

    http://wordpress.org/extend/plugins/cubepoints/

  2. Gabriel
    Member
    Posted 1 year ago #

    To change the name displayed under "Manage" you would need to to edit your cp_admin_manage.php and change on line 27:

    $username = $user->user_login;
    to:
    $username = $user->display_name;

    Regarding the "Add Points" section. You would need to change cp_admin_add_points.php on line 105:

    jQuery('#cp_add_points_modify_userid').html(data.user_login);
    to:
    jQuery('#cp_add_points_modify_userid').html(data.display_name);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.