Clear all

wpForo 1.x.x [Closed] spam in profiles - stop links

28 Posts
7 Users
4 Reactions
Posts: 111
Estimable Member
Joined: 4 years ago
Posted by: @jasontoth

Is it going into the quick CSS in WPForo?



Paste this code into the file function.php

add_filter('wpforo_before_update_profile_fields', function($profile_fields){
   if( wpfkey($profile_fields, 'signature') ) $profile_fields['signature'] = wpforo_text( html_entity_decode($profile_fields['signature']), 200, false);
   if( wpfkey($profile_fields, 'about') )     $profile_fields['about']     = wpforo_text( html_entity_decode($profile_fields['about']),     200, false);
   return $profile_fields;
Posts: 90
Estimable Member
Joined: 3 years ago

Great! Thank you so much! Two questions:


1. Will the spammers see that they can't do a link when they go to make a new account?

2. What happens with all of the links in the profiles that are already there, will it keep the profile and just strip out the links or will it erase the whole profile?

Thanks so much! Jason


1 Reply
Joined: 8 years ago

Support Team
Posts: 10525


  1. They can only see the restriction once they submitted their signatures and about-me contents.
  2. This code will only affect new profiles, the old profiles will be striped if the users of the old profile click the [update profile] button,
Posts: 90
Estimable Member
Joined: 3 years ago

Thank you very much. I put this code in and will see if this helps with the people that keep putting random span in the profile section. Thanks. Jason

Page 4 / 4