Forums

Join
bbPress Support ForumsInstallationHow do I remove the website field from Registration form?

Info

Tags

How do I remove the website field from Registration form?

  1. Lately I've been having problems with people signing up just to include some spammy sites with their profile. I want to remove the Website field altogehther from the Registration form. I don't know how to do this - I looked in the register.php file but couldn't find the line I should remove (I tried removing <?php do_action('extra_profile_info', $user); ?> but nothing happens. Anyone know how to do this?

    Thanks.
    Dan

  2. the easiest way to deal with this may be to add a rel="nofollow" to user urls.

    Have a look at this:
    http://bbpress.org/forums/topic/add-nofollow-to-links#post-4294

  3. Thanks Tom. Still, I would rather remove the website field - this way spammers won't even sign up (hopefully).

  4. This code used as a plugin should do it.

    <?php
    /*
    Plugin Name: Kill URL
    Description: Kills URL field in profile
    */
    
    function kill_url_in_profile_keys( $keys )
    {
        unset( $keys['user_url'] );
        return $keys;
    }
    
    add_filter( 'get_profile_info_keys', 'kill_url_in_profile_keys' );
    
    ?>
  5. Thanks Sam. This works great:)

    Dan

  6. You must log in to post.