HELP NEEDED : Remove Avatar Type Dropdown Menu

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
sianeveryday
Registered User
Posts: 9
Joined: Tue Jul 02, 2019 9:15 am

HELP NEEDED : Remove Avatar Type Dropdown Menu

Post by sianeveryday » Tue Jul 02, 2019 9:19 am

Hi there, to begin with, sorry if i am posting in the wrong thread and mods please feel free to move this to the right place if this is wrong.

As i am only restricting the upload of avatar option on my forum to only Upload by users, is there a way for me to remove the Avatar Type dropdown menu to make it less confusing for users? Currently it's a dropdown bar but there's only 1 thing to select which is kind of silly.

Thanks in advance!

sianeveryday
Registered User
Posts: 9
Joined: Tue Jul 02, 2019 9:15 am

Re: HELP NEEDED : Remove Avatar Type Dropdown Menu

Post by sianeveryday » Tue Jul 02, 2019 5:53 pm

Btw I am using phpbb 3.2.7

User avatar
spaceace
Registered User
Posts: 1857
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: HELP NEEDED : Remove Avatar Type Dropdown Menu

Post by spaceace » Tue Jul 02, 2019 11:57 pm

core files should not be modified but in this case, the drop menu for a single item is kinda odd :roll:

make sure you only have the upload avatar option selected in the ACP

open styles\prosilver\template\ucp_avatar_options.html

find

Code: Select all

	<h3>{L_AVATAR_SELECT}</h3>
	<fieldset>
replace with

Code: Select all

	<h3>{L_AVATAR_SELECT}</h3>
	<fieldset style="display: none;">
upload the modified file and purge the board cache

this will hide the drop menu in the <fieldset> but not remove it. if you remove it, avatars might not upload at all

sianeveryday
Registered User
Posts: 9
Joined: Tue Jul 02, 2019 9:15 am

Re: HELP NEEDED : Remove Avatar Type Dropdown Menu

Post by sianeveryday » Thu Jul 04, 2019 2:36 pm

worked a charm! many thanks :)

Post Reply

Return to “[3.2.x] Styles Support & Discussion”