Customizing SMF > Tips and Tricks
Fonts drop down selection & URL in post screen
helenbpd:
I'd imagine you can use any of the "named" colors - they may not work for every single browser (only 16 "names" are web-safe), but what the hey:
http://webdesign.about.com/od/colorcharts/l/bl_namedcolors.htm
Ditto for fonts:
http://www.i4image.com/resources_wsfont.shtml
Peter Duggan:
--- Quote from: damo1065 on December 04, 2004, 01:05:50 PM ---Does anyone know what colours you can add to the drop down colour menu, I know HotPink works - it gives you a nice deep pink colour, what other ones can you add?
--- End quote ---
Perhaps I'm a bit late with this response but, since you can specify both option value and option, the answer (with one small reservation explained below) is anything you like because you can specify hex codes for the values and descriptive text for the options. So, for an English language forum, all of these are basically equivalent:
<option value="Red">', $txt[263], '</option>
<option value="Red">Red</option>
<option value="Red">Any name you like</option>
<option value="#ff0000">', $txt[263], '</option>
<option value="#ff0000">Red</option>
<option value="#ff0000">Any name you like</option>
Which means that, so long as you're happy to see 'any name you like' translated into #****** in the text area, your choice of colours for the drop-down amounts to > 16 million!
Peter Duggan:
--- Quote from: akabugeyes on October 09, 2004, 12:37:49 PM ---Same goes with font. When you click the font button it enters
--- Code: ---[font=Verdana][/font]
--- End code ---
but wouldn't you want users to know all of the font types available and so he wouldn't have to type the font type themself? So I suggest a drop down thing for that, perhaps how the color thing works.
--- End quote ---
But remember that the 'font types available' are the fonts installed on the user's computer, so one user's choice (and/or yours as admin) may not display for another user at all.
rojamaia:
thanks to everyone for sharing this trick! it would really make things simpler for my users who are mostly beginners in using boards.
but hey, how do i code it, so that the actual font face and size would appear (as a preview) on the drop-down menu?
Snickers:
Can anyone make this compitable with version 1.1 beta 3?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version