remove "groups" dropdown from profiles

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
urzh
Registered User
Posts: 151
Joined: Mon Aug 05, 2019 1:51 pm
Name: Robert

remove "groups" dropdown from profiles

Post by urzh »

Hi,
How can I hide the groups dropdown in profiles? I don't want anyone to see this other than Admins. But even if Admins can't, thats ok.

CapturFiles_1.png

User avatar
warmweer
Jr. Extension Validator
Posts: 4287
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: remove "groups" dropdown from profiles

Post by warmweer »

urzh wrote:
Thu Mar 26, 2020 1:38 pm
How can I hide the groups dropdown in profiles? I don't want anyone to see this other than Admins. But even if Admins can't, thats ok.
Comment that section in the template.
or: there an extension allowing use of IF GROUP_nr (not sure if it's 3.3 compatible though)
So this allows you to use conditionals to show that section or now.
Last edited by warmweer on Thu Mar 26, 2020 2:09 pm, edited 1 time in total.
We should embrace problems, without which there wouldn't be any solutions.

urzh
Registered User
Posts: 151
Joined: Mon Aug 05, 2019 1:51 pm
Name: Robert

Re: remove "groups" dropdown from profiles

Post by urzh »

Thanks, could you print the section and location here please?

User avatar
Elias
Registered User
Posts: 4749
Joined: Sat Feb 25, 2006 4:31 pm
Location: In the Water!
Name: Elias

Re: remove "groups" dropdown from profiles

Post by Elias »

In the style's template folder, find the file:
memberlist_view.html

It will be on like 38.

Thanks
"Mystery creates wonder, and wonder is the basis of man's desire to understand." - Neil Armstrong
|Installing Extensions|Writing Extensions|Extension Validation Policy|

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51202
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: remove "groups" dropdown from profiles

Post by stevemaury »

OPEN styles/prosilver/template/memberlist_view.html

FIND:

Code: Select all

<!-- IF S_GROUP_OPTIONS --><dt>{L_USERGROUPS}{L_COLON}</dt> <dd><select name="g">{S_GROUP_OPTIONS}</select> <input type="submit" name="submit" value="{L_GO}" class="button2" /></dd><!-- ENDIF -->
REPLACE WITH:

Code: Select all

<!-- IF U_ACP --><!-- IF S_GROUP_OPTIONS --><dt>{L_USERGROUPS}{L_COLON}</dt> <dd><select name="g">{S_GROUP_OPTIONS}</select> <input type="submit" name="submit" value="{L_GO}" class="button2" /></dd><!-- ENDIF --><!-- ENDIF -->
Purge the cache.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

urzh
Registered User
Posts: 151
Joined: Mon Aug 05, 2019 1:51 pm
Name: Robert

Re: remove "groups" dropdown from profiles

Post by urzh »

Worked perfect. Thanks a ton for the quick response.

Post Reply

Return to “phpBB Custom Coding”