Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

Script [Solved] How to stop profile spam?

4 Posts
2 Users
2 Reactions
2,689 Views
st7878
Posts: 115
Topic starter
(@aima-forum)
Estimable Member
Joined: 5 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: 115
Topic starter
(@aima-forum)
Estimable Member
Joined: 5 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: 8 years ago

Support Team
Posts: 5483

@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: 5 years ago

Estimable Member
Posts: 115

@sofy Perfectly! Working! Thank.