Notifications
Clear all

Script [Solved] How to stop profile spam?

4 Posts
2 Users
2 Likes
1,091 Views
st7878
Posts: 108
Topic starter
(@aima-forum)
Estimable Member
Joined: 3 years ago

Recently, they began to register and leave advertising links (URL) in the About me and Signatures section.

You can add functions:
1) Disable the ability to leave links (URL) in the About me and Signature section for all users, except for Administrators and Moderators.
2) Set a limit on the number of characters that can be entered in the About me and Signature fields.

3 Replies
st7878
Posts: 108
Topic starter
(@aima-forum)
Estimable Member
Joined: 3 years ago
Posted by: @sofy

will automatically remove it

Yes it works!))) I didn't know) Thank you.

 

But the <a> tag can be used (((

2 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 5 years ago

Support Team
Posts: 4057

@st7878,

Use this one:

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;
});
st7878
(@aima-forum)
Joined: 3 years ago

Estimable Member
Posts: 108

@sofy Perfectly! Working! Thank.