Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

Script [Solved] How to stop profile spam?

4 Posts
2 Users
2 Reactions
3,415 Views
st7878
Posts: 115
Topic starter
(@aima-forum)
Estimable Member
Joined: 6 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: 6 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: 5637

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

Estimable Member
Posts: 115

@sofy Perfectly! Working! Thank.