WebDev

SMF Arcade => SMF Arcade Support + Plugins => Topic started by: Duban Black on May 02, 2025, 01:39:15 PM

Title: Hide profile information fields
Post by: Duban Black on May 02, 2025, 01:39:15 PM
I installed the Arcade and in the user's profile appeared three data that I would like to hide, I checked in the admin options and I did not find how to do it.

How could I hide it? where in the code is this information generated?
I can't use css to solve it because those fields vary in the users.

(https://i.imgur.com/WoDwqcN.png)

Thank you
Title: Re: Hide profile information fields
Post by: Chen Zhen on May 03, 2025, 12:53:00 AM

There isn't an option to disable it but I will add it to the next version.

For now you can edit file:
./Sources/ArcadeHooks.php

Find:
function arcade_custom_profile($memID, $area)
{
global $context, $settings, $txt, $arcadeModSettings, $user_info, $scripturl, $smcFunc;

Replacement for the above code:
function arcade_custom_profile($memID, $area)
{
global $context, $settings, $txt, $arcadeModSettings, $user_info, $scripturl, $smcFunc;
return;
Title: Re: Hide profile information fields
Post by: Duban Black on May 03, 2025, 11:25:16 AM
Thank you very much, it works perfectly
Title: Re: Hide profile information fields
Post by: Chen Zhen on May 03, 2025, 11:35:55 PM
No problem.

I've never seen it displayed like in your image.
On a wide variety of themes for both desktop/laptop and mobile display it appears just fine.
However, in your image the containers are fully horizontal and forcing the text to overflow.
If I remember correctly, your theme is custom & specifically for your website.

What I might do is add a select input to opt icon, icon + description or disable.
This way the icon option may look OK on a theme such as yours.

Title: Re: Hide profile information fields
Post by: Duban Black on May 05, 2025, 07:34:10 PM
Quote from: Chen Zhen on May 03, 2025, 11:35:55 PMNo problem.

I've never seen it displayed like in your image.
On a wide variety of themes for both desktop/laptop and mobile display it appears just fine.
However, in your image the containers are fully horizontal and forcing the text to overflow.
If I remember correctly, your theme is custom & specifically for your website.

What I might do is add a select input to opt icon, icon + description or disable.
This way the icon option may look OK on a theme such as yours.



Yes, it would be interesting if there is an option to customize the icons and leave it inactive as well. In my case each profile field is shown horizontally, it is part of the skin style.
Another issue is that each field has a title, so instead of showing Arcade info in one row, it should show 3 rows, each with its title and content.
EhPortal 1.40.0 © 2025, WebDev