WordPress.org

Support

Support » How-To and Troubleshooting » Disallow certain nicknames :)

Disallow certain nicknames :)

  • ehab
    Member

    @ehab

    Even though WP is meant for blogging, some of us here use it for “heavy group blogs” where we might not want to trust everyone of our users.

    Such a case occurred today. One of my users duplicated my nickname ;/

    I have searched and could not find any plugins to do that. Looks like a hard code deal to me. But my Php skills are low.

    So, can I add something here to make this work ?

    function update_nickname ( ) {
    
    		var nickname = jQuery('#nickname').val();
    		var display_nickname = jQuery('#display_nickname').val();
    
    		if ( nickname == '' ) {
    			jQuery('#display_nickname').remove();
    		}
    		jQuery('#display_nickname').val(nickname).html(nickname);
    
    	}

    Or perhaps something else ? Anybody got 5 minutes to cook something up 😀 ?

  • The topic ‘Disallow certain nicknames :)’ is closed to new replies.