AI Assistant
Notifications
Clear all

[Solved] How to stop profile spam?

4 Posts
2 Users
2 Reactions
4,418 Views
st7878
Posts: 115
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@aima-forum)
Estimable Member
Joined: 6 years ago
[#16032]

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.

spam 1
spam 2
spam 3

3 Replies
st7878
Posts: 115
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@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: 5774
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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
st7878
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@sofy Perfectly! Working! Thank.


Share: