Info
- 5 posts
- 3 voices
- Started 3 years ago by danbbpress
- Latest reply from danbbpress
- This topic is not resolved
How do I remove the website field from Registration form?
-
- Posted 3 years ago #
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 -
- Posted 3 years ago #
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 -
- Posted 3 years ago #
Thanks Tom. Still, I would rather remove the website field - this way spammers won't even sign up (hopefully).
-
- Posted 3 years ago #
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' ); ?> -
- Posted 3 years ago #
Thanks Sam. This works great:)
Dan
-
You must log in to post.