Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Aaron Nelsen on March 14, 2004, 06:13:51 AM

Title: Avatar list in profile
Post by: Aaron Nelsen on March 14, 2004, 06:13:51 AM
Is there a quick and easy way I can change the background color of the list of avatars in the profile area?
Title: Re: Avatar list in profile
Post by: Peter Duggan on March 14, 2004, 06:22:43 AM
It's controlled by the 'select' class of Themes/default/style.css, but so are *all* the drop-downs, so you might need to introduce an extra class.
Title: Re: Avatar list in profile
Post by: Peter Duggan on March 14, 2004, 06:23:54 AM
Quote from: Peter Duggan on March 14, 2004, 06:22:43 AM
so you might need to introduce an extra class.

Like 'select.avatar'!
Title: Re: Avatar list in profile
Post by: Peter Duggan on March 14, 2004, 06:30:56 AM
So search Themes/default/Profile.template.php for:

<select name="cat" id="cat" size="10" onchange="changeSel(\'\');" onfocus="document.creator.avatar_choice[', $current_choice, '].checked = true;">';

And replace with:

<select class="avatar" name="cat" id="cat" size="10" onchange="changeSel(\'\');" onfocus="document.creator.avatar_choice[', $current_choice, '].checked = true;">';

<edit>Missed the 'real' avatar list, so check out Reply #5 too!</edit>

Then search Themes/default/style.css for:

select
{
font-size: 8pt;
font-weight: normal;
color: #000000;
font-family: Tahoma, arial, helvetica, serif;
}


And replace with:

select
{
font-size: 8pt;
font-weight: normal;
color: #000000;
font-family: Tahoma, arial, helvetica, serif;
}
select.avatar
{
background-color: red;
}


Where 'red' is *your* background colour!
Title: Re: Avatar list in profile
Post by: Aaron Nelsen on March 14, 2004, 06:39:05 AM
Got it, thanks.
Title: Re: Avatar list in profile
Post by: Peter Duggan on March 14, 2004, 06:40:59 AM
Or maybe *this* list too! ;)

Search Themes/default/Profile.template.php for:

<select name="file" id="file" size="10" style="display: none;" onchange="showAvatar()" onfocus="document.creator.avatar_choice[', $current_choice, '].checked = true;" disabled="disabled"><option></option></select>

And replace with:

<select class="avatar" name="file" id="file" size="10" style="display: none;" onchange="showAvatar()" onfocus="document.creator.avatar_choice[', $current_choice, '].checked = true;" disabled="disabled"><option></option></select>
Title: Re: Avatar list in profile
Post by: [Unknown] on March 14, 2004, 04:31:58 PM
You could also use select#cat and select#file...

-[Unknown]
Title: Re: Avatar list in profile
Post by: Peter Duggan on March 14, 2004, 04:36:44 PM
Of course you could, but that 'classitis' has clearly got to me! ;)