Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Aiheen aloitti: shadow82x - toukokuu 15, 2007, 04:42:45 IP

Otsikko: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: shadow82x - toukokuu 15, 2007, 04:42:45 IP
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
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: 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.
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: shadow82x - toukokuu 15, 2007, 05:34:25 IP
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
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: KGIII - toukokuu 15, 2007, 06:20:17 IP
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.
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: ディン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
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: shadow82x - toukokuu 16, 2007, 02:51:49 IP
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
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: KGIII - toukokuu 16, 2007, 06:53:00 IP
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.
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: KGIII - toukokuu 16, 2007, 07:12:46 IP
What the heck - only for the default theme of course but here you go... Your own custom mod.
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: shadow82x - toukokuu 17, 2007, 04:51:02 IP
Really?
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: KGIII - toukokuu 18, 2007, 01:37:56 IP
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.
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: shadow82x - kesäkuu 10, 2007, 07:33:54 IP
Thanks again :) Now I request the size and font :P
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: KGIII - kesäkuu 10, 2007, 07:43:06 IP
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
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: KGIII - kesäkuu 10, 2007, 07:43:48 IP
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.
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: shadow82x - kesäkuu 10, 2007, 08:15:45 IP
Uber error

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg240.imageshack.us%2Fimg240%2F3095%2Funtitleduy5.png&hash=fdcd8421a6c2c44d758f9a3bf33d319323ef2e70)
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: shadow82x - kesäkuu 10, 2007, 08:25:31 IP
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>';

Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: KGIII - kesäkuu 10, 2007, 08:34:36 IP
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.
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: shadow82x - kesäkuu 11, 2007, 02:45:08 IP
I did edit it correctly
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: KGIII - kesäkuu 11, 2007, 03:31:23 IP
Attach the entire file.
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: shadow82x - kesäkuu 16, 2007, 05:55:06 IP
Could it becuase i have the font/size dropdown mod and the color.zip, and youtube mod installed that is breaking it?
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: KGIII - kesäkuu 17, 2007, 01:22:09 AP
I couldn't tell you - attach the file or upload it in plain text somewhere and we'll see.
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: shadow82x - heinäkuu 16, 2007, 07:54:32 IP
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.
Otsikko: Re: Request for showing the "autuall" bbc thing.. [More info inside]
Kirjoitti: shadow82x - heinäkuu 17, 2007, 02:04:14 IP
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.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg467.imageshack.us%2Fimg467%2F9368%2Fclipboard01zc8.png&hash=8c5f4017a85c2b5d6dbccc708289bdb152b6708f)