I think for change color they should actually demo the color on it and same with the font size and face. So like if you scroll down the fonts it actually shows the font for each font name given
<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red" style="color:red">', $txt[263], '</option>
<option value="Yellow" style="color:yellow">', $txt[264], '</option>
<option value="Pink" style="color:pink">', $txt[265], '</option>
That's a small sample of the colors changed from Post.template.php so you can use that to colorize 'em if you'd like. I think this is more a modification request than a feature request personally.
Lainaus käyttäjältä: KGIII - toukokuu 15, 2007, 05:30:30 IP
<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red" style="color:red">', $txt[263], '</option>
<option value="Yellow" style="color:yellow">', $txt[264], '</option>
<option value="Pink" style="color:pink">', $txt[265], '</option>
That's a small sample of the colors changed from Post.template.php so you can use that to colorize 'em if you'd like. I think this is more a modification request than a feature request personally.
Where do I add that. Also can you move this to mod requests
You don't add it - you change it. You just add the style to the colors. You will see the ones I have changed if you look in the default's Post.template.php and from there you can see how to do the rest. No modification/packaging required.
Hmmm i think if you like to see it and also have more colors you should take a look at this -> http://custom.simplemachines.org/mods/index.php?mod=435 ;).
If you only like this with the color make the changes in the Post.template.php that's where KGIII made the change.
Why is it not Standard, because normal it's not allowed to use style in options but it work in most newer browsers ;).
Bye
DIN1031
Lainaus käyttäjältä: ディン1031 - toukokuu 16, 2007, 02:03:43 AP
Hmmm i think if you like to see it and also have more colors you should take a look at this -> http://custom.simplemachines.org/mods/index.php?mod=435 ;).
If you only like this with the color make the changes in the Post.template.php that's where KGIII made the change.
Why is it not Standard, because normal it's not allowed to use style in options but it work in most newer browsers ;).
Bye
DIN1031
I tried that but when I was using my new theme it got all messed up and hige
Did you see how the ones that I changed were changed from the default? Following those as an example you should be all set.
/me sighs
// Print a drop down list for all the colors we allow!
if (!isset($context['disabled_tags']['color']))
echo ' <select onchange="surroundText(\'[color=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red" style="color:red">', $txt[263], '</option>
<option value="Yellow" style="color:yellow">', $txt[264], '</option>
<option value="Pink" style="color:pink">', $txt[265], '</option>
<option value="Green" style="color:green">', $txt[266], '</option>
<option value="Orange" style="color:orange">', $txt[267], '</option>
<option value="Purple" style="color:purple">', $txt[268], '</option>
<option value="Blue" style="color:blue">', $txt[269], '</option>
<option value="Beige" style="background-color:#000000; color:beige">', $txt[270], '</option>
<option value="Brown" style="color:brown">', $txt[271], '</option>
<option value="Teal" style="color:teal">', $txt[272], '</option>
<option value="Navy" style="color:navy">', $txt[273], '</option>
<option value="Maroon" style="color:maroon">', $txt[274], '</option>
<option value="LimeGreen" style="color:limegreen">', $txt[275], '</option>
</select>';
Beige wasn't showing up well so the background is colored black.
What the heck - only for the default theme of course but here you go... Your own custom mod.
Really?
Yup, really... That colorizes all of them. I went ahead and installed at the forum in my signature if you want to see the results. Once I had the code it took all of three minutes to make the code into a mod. I am actually supposed to upload it to the modifications section for review but I have been way too busy over the past couple of days to get to that.
Thanks again :) Now I request the size and font :P
Per chat request:
post.template.php
// Print a drop down list for all the fonts are aviable!
if (!isset($context['disabled_tags']['font']))
echo ' <select onchange="surroundText(\'[font=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/font]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['font_face'], '</option>
<option value="Arial" style="font-family:Arial">', $txt['font_arial'], '</option>
<option value="Times New Roman" style="font-family:Times New Roman">', $txt['font_times'], '</option>
<option value="Comic Sans MS" style="font-family:Comic Sans MS">', $txt['font_comic'], '</option>
<option value="Verdana" style="font-family:Veranda">', $txt['font_verd'], '</option>
<option value="Haettenschweiler" style="font-family:Haettenschweiler">', $txt['font_heatt'], '</option>
<option value="Tahoma" style="font-family:Tahoma">', $txt['font_taho'], '</option>
</select>';
// Print a drop down list for all the fonts sizes are aviable!
if (!isset($context['disabled_tags']['size']))
echo ' <select onchange="surroundText(\'[size=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/size]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['font_size'], '</option>
<option value="9pt" style="font-size:9pt">', $txt['size_9'], '</option>
<option value="10pt" style="font-size:10pt">', $txt['size_10'], '</option>
<option value="11pt" style="font-size:11pt">', $txt['size_11'], '</option>
<option value="12pt" style="font-size:12pt">', $txt['size_12'], '</option>
<option value="13pt" style="font-size:13pt">', $txt['size_13'], '</option>
<option value="14pt" style="font-size:14pt">', $txt['size_14'], '</option>
</select>';
It looks pretty silly. http://kgiii.info/ignore/screen.jpg
Note that that above won't work (probably) unless for other members unless they've added the mod to do the font and size drop down.
Uber error
This is my code right now
themes/deafult/post_template
// Print a drop down list for all the fonts are aviable!
if (!isset($context['disabled_tags']['font']))
echo ' <select onchange="surroundText(\'[font=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/font]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['font_face'], '</option>
<option value="Arial" style="font-family:Arial">', $txt['font_arial'], '</option>
<option value="Times New Roman" style="font-family:Times New Roman">', $txt['font_times'], '</option>
<option value="Comic Sans MS" style="font-family:Comic Sans MS">', $txt['font_comic'], '</option>
<option value="Verdana" style="font-family:Veranda">', $txt['font_verd'], '</option>
<option value="Haettenschweiler" style="font-family:Haettenschweiler">', $txt['font_heatt'], '</option>
<option value="Tahoma" style="font-family:Tahoma">', $txt['font_taho'], '</option>
</select>';
// Print a drop down list for all the fonts sizes are aviable!
if (!isset($context['disabled_tags']['size']))
echo ' <select onchange="surroundText(\'[size=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/size]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['font_size'], '</option>
<option value="9pt" style="font-size:9pt">', $txt['size_9'], '</option>
<option value="10pt" style="font-size:10pt">', $txt['size_10'], '</option>
<option value="11pt" style="font-size:11pt">', $txt['size_11'], '</option>
<option value="12pt" style="font-size:12pt">', $txt['size_12'], '</option>
<option value="13pt" style="font-size:13pt">', $txt['size_13'], '</option>
<option value="14pt" style="font-size:14pt">', $txt['size_14'], '</option>
</select>';
Did you edit the right file and did you remove the existing code that was there first? If you did then it should work like a champ.
I did edit it correctly
Attach the entire file.
Could it becuase i have the font/size dropdown mod and the color.zip, and youtube mod installed that is breaking it?
I couldn't tell you - attach the file or upload it in plain text somewhere and we'll see.
OK now I just want the font drop down showing what the font would look like. How do i get that. I want to modify it becuase I also have the youtube mod. installed.
OK I would delete my post but it wont let me. I only modified the font box but it looks a bit bigger than the other ones. Is there a way to fix that.