#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
How to Disable Abou...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Script [Solved] How to Disable About Me and website from user profile ?

    Last Post
RSS

azzidoqsc
Posts: 16
 azzidoqsc
Topic starter
April 18, 2021 1:32 pm
(@azzidoqsc)
Active Member
Joined: 2 years ago

Hi there,

Due to many spam users I want to disable About Me and website. I tried the code suggested here: https://wpforo.com/community/how-to-and-troubleshooting-2/way-to-disable-website-and-about-me-column-in-account/

but it does not work.

Example of scam page: https://www.laptopu.ro/community/profile/zpmmillie587579/

Topic Tags
about field remove field
8 Replies
azzidoqsc
Posts: 16
 azzidoqsc
Topic starter
April 19, 2021 8:07 am
(@azzidoqsc)
Active Member
Joined: 2 years ago

Any idea ?

Usually scam users put stuff into About Me and Website Link. I want to remove these 2 from user profile.

Please guide me. Really appreciate ๐Ÿ™‚

4 Replies
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
April 19, 2021 4:29 pm
Reply toazzidoqscazzidoqsc

@azzidoqsc

try this code

function wpforo_custom_remove_user_fields( $fields ){
$remove_fields = array('about', 'site');
if( !empty($fields) ){
foreach( $fields as $r => $rows ){
foreach( $rows as $c => $cols ){
foreach( $cols as $f => $field ){
if( $field && in_array($field, $remove_fields) ){
unset($fields[$r][$c][$f]);
}
}
}
}
}
return $fields;
}
add_filter( 'wpforo_get_account_fields', 'wpforo_custom_remove_user_fields');

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Excalibur liked
azzidoqsc
 azzidoqsc
(@azzidoqsc)
Joined: 2 years ago

Active Member
Posts: 16
April 19, 2021 4:40 pm
Reply toTutrixTutrix
azzidoqsc

@tutrix

It does not work ๐Ÿ™

I still can see About Me page.

Robert
 Robert
Admin
(@robert)
Joined: 6 years ago

Support Team
Posts: 9090
Robert - Twitter
April 19, 2021 8:09 pm
Reply toazzidoqscazzidoqsc
Tutrix
azzidoqsc

@azzidoqsc,

This code disables the About and Site fields in the My Profile > Account page. This doesn't have any affection on the profile home page.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

azzidoqsc
 azzidoqsc
(@azzidoqsc)
Joined: 2 years ago

Active Member
Posts: 16
April 19, 2021 8:17 pm
Reply toRobertRobert
azzidoqsc
Tutrix
azzidoqsc

@robert

Got it. Well done as usual.

azzidoqsc
Posts: 16
 azzidoqsc
Topic starter
April 19, 2021 4:40 pm
(@azzidoqsc)
Active Member
Joined: 2 years ago

About Me is visible: https://www.laptopu.ro/community/profile/azzido/

2 Replies
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
April 19, 2021 4:51 pm
Reply toazzidoqscazzidoqsc

@azzidoqsc

the code above normally removes the fields from the "Account Tab" so that nobody can insert anything anymore

you can also hide the fields in the "Profile Tab"

add this to custom css

About

#wpforo #wpforo-wrap .wpforo-profile-wrap .wpforo-profile-home .wpf-field.wpf-field-name-about {
display: none;
}

Website

#wpforo #wpforo-wrap .wpforo-profile-wrap .wpforo-profile-home .wpf-field.wpf-field-name-site {
display: none;
}

Dashboard > Forums > Settings > Style (custom css)

ย 

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

azzidoqsc
 azzidoqsc
(@azzidoqsc)
Joined: 2 years ago

Active Member
Posts: 16
April 19, 2021 8:01 pm
Reply toTutrixTutrix
azzidoqsc

@tutrix

Great. Thanks a lot.

P.S. You have a nice customized forum.

  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Unlink user Display Name and About Me
    1 year ago
  • About Me Problem
    1 year ago
Topic Tags:  about field (5), remove field (4),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo โ€“ Blog Cross Posting addon wpForo Ads Manager wpForo โ€“ WooCommerce Memberships Integration wpForo Emoticons wpForo โ€“ Tenor GIFs Integration
View all Addons ยป

Recent Topics

  • Import users from IPBoard

    By jesusdlg, 11 hours ago

  • Intruder signing in to wpforo without approval

    By plaurits, 15 hours ago

  • How to make new user to get approve manually before creating post and profile.

    By Adhyansh21, 2 days ago

  • Posts deleted in database still show up on front-end

    By nylex, 2 days ago

  • Not all links are automatically added with the "nofollow" attribute

    By st7878, 2 days ago

  • Editors assign users to groups

    By mike_netinfo, 2 days ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • spam33
  • editor33
  • menu33
  • shortcode32
  • forum accesses30
  • widget29
View all tags (2194)

Recent Posts

  • RE: Intruder signing in to wpforo without approval

    @plaurits I do not use any of those, i have no...

    By dimalifragis, 5 mins ago

  • Import users from IPBoard

    Hello, Is it possible to import users from ipboard? (...

    By jesusdlg, 11 hours ago

  • RE: Description for each topic?

    Why is this such a hard question to answer? You have ...

    By Christine, 11 hours ago

  • RE: User banned for using icons?

    If you have security plugins that can ban users, try de...

    By Chris, 20 hours ago

  • RE: recover deleted forum categories

    @robert @chris could that upgrade message at the top of...

    By dimalifragis, 20 hours ago

  • RE: recover deleted forum categories

    Hi @asmadi1, Contact your hosting to get a backup.

    By Chris, 23 hours ago

  • RE: Posts deleted in database still show up on front-end

    @nylex, Copy the post content or part of it, the go-t...

    By Chris, 1 day ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,936 Topics
50.3 K Posts
15 Online
48.2 K Members

Latest Post: Intruder signing in to wpforo without approval Our newest member: Rohan96 Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright ยฉ 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation