Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to disable DISPLAY_NAME edit for Subscriber Profile

  • @mezinster

    Member

    Subj.

    I want do disallow ordinary users to edit their display_name in profile.

    How could i do it ?

    For WordPress the problem was solved by adminimize plugin. Maybe such a way for BB exists?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @_ck_

    Participant

    There is a disable display name plugin for this very purpose.

    @chrishajer

    Participant

    @mezinster

    Member

    Thanks. But it’s not exactly what i wanted to….

    This plugin disables display_name edition capability, and display_name displaying too…

    “user_login” displayed instead of “display_name”

    could anyone help me to fix that plugin to achieve the goal ?

    <?php

    /*

    Plugin Name: Disable Display Name

    Plugin URI: https://bbpress.org/plugins/topic/disable-display-name

    Description: Blocks the alternate Display Name functionality in bbPress 1.x to prevent spoofing other members and admin.

    Version: 0.0.2

    Author: _ck_

    Author URI: http://bbshowcase.org

    License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/

    Donate: http://bbshowcase.org/donate/

    */

    function disable_display_name($display_name=””, $id=0){$user = bb_get_user( bb_get_user_id( $id ) ); return $user->user_login;}

    add_filter(‘get_user_display_name’, ‘disable_display_name’,9,2);

    add_filter(‘get_post_author’, ‘disable_display_name’,9,2);

    function disable_display_name_keys($keys){unset($keys); return $keys;}

    add_filter(‘get_profile_info_keys’, ‘disable_display_name_keys’,9);

    ?>

    @chevymanusa

    Participant

    Any update on this?
    I too am curious about preventing regular (non-admin) users from changing their display and/or names.

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