News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Need Help: Dropdown Color

Started by Aimeri2, September 22, 2014, 01:44:44 PM

Previous topic - Next topic

Aimeri2

I am using: SMF 2.0.8

I am trying to add a new color to the "Change Color" drop-down when posting/editing a post.  So far I have edited the Subs.php, adding in:

array(
'tag' => 'hotpink',
'before' => '<span style="color:#FF0066;" class="bbc_color">',
'after' => '</span>',
),


I then went into the Post.english.php file and added:

$txt['hotpink'] = 'Hot Pink';

Under:

$txt['change_color'] = 'Change Color';

So it looks like:


$txt['change_color'] = 'Change Color';
$txt['black'] = 'Black';
$txt['red'] = 'Red';
$txt['yellow'] = 'Yellow';
$txt['pink'] = 'Pink';
$txt['green'] = 'Green';
$txt['orange'] = 'Orange';
$txt['purple'] = 'Purple';
$txt['blue'] = 'Blue';
$txt['beige'] = 'Beige';
$txt['brown'] = 'Brown';
$txt['teal'] = 'Teal';
$txt['navy'] = 'Navy';
$txt['maroon'] = 'Maroon';
$txt['lime_green'] = 'Lime Green';
$txt['hotpink'] = 'Hot Pink';


I seem to be missing something though because "Hot Pink" does not appear in the drop down menu.
I should note that if I use:

[color=hotpink]Text Goes Here[/color]

Then it shows the proper color.   I just can not get it in the drop down menu.

Thank you in advance for any help!

Shambles

You will need to make an equivalent change to GenericControls.template.php in your Themes/default folder.

Aimeri2

Thank you very much Shambles.  Has been driving me nuts.   I really appreciate the help!

Arantor

In fact the change made to Subs.php was actually unnecessary; that essentially gave you a [hotpink] bbcode instead of adjusting the color bbcode.

Aimeri2

Ohh okay, thanks for the clarification Arantor!

Advertisement: