![]() |
User selected default posting font and color
Hello,
This mod allows users to select their default posting font and color. You will have to select this at registration and can update it whenever you want in profile. First you must make two new single selection menu user profile fields. Options for them are below. Profile field one: Title: Default Post Color Description: What color your posts show up as? Options: Black Blue Green Red Pink Orange Purple Set Default: Yes, but no first blank option Display Order: Doesnt Matter Field Requiried: Yes, at registration and profile updating Field Editable by User: Yes Private Field: No Field Searchable on Members List: No Show on Members List: No Profile field two: Title: Default Post Font Description: What do you want your default post font to be? Options: Arial Arial Black Arial Narrow Book Antiqua Century Gothic Comic Sans MS Courier New Fixedsys Franklin Gothic Medium Garamond Georgia Impact Lucida Console Microsoft Sans Serif Palatino Linotype System Tahoma Times New Roman Tribuchet MS Verdana Set Default: Yes, but no first blank option Display Order: Doesnt Matter Field Requiried: Yes, at registration and profile updating Field Editable by User: Yes Private Field: No Field Searchable on Members List: No Show on Members List: No Now go to the user profile field manager, and jot down the two field numbers of the new fields listed on the right side of the two fields. Along with that, write down what number goes with what field. Please note this is not the display number, its the number next to it that says fieldX Template Edits: Go to your styles postbit/postbit legacy (whatever you use) Find: Code:
<!-- message --> Code:
<font COLOR="$post[fieldX]"><font face="$post[fieldX]"> Replace: The first red X with your default text color field number The second red X with your default font field number. Find: Code:
<!-- / message --> Code:
</font></font> You are done, hope you like it! |
Yeah, i find pretty useful.
Thanks a lot. |
Code:
<font COLOR="$post[fieldX]"><font face="$post[fieldX]"> its not working for me. I put [field1] instead. |
Nice, why note to include font size?
thanks. |
When you create a profile field, just to the left of the order numbers it will say field(number here). Use the numbers for the font color and face and plug it in for X. Starting to sound like a math teacher..lol.
Anyway, love it and thank you, thank you, thank you!! |
Glad you guys love it.
Dont forget to hit install I will be trying to add usergroup permissions and size soon in 1.1 :) |
One question... what if an user wants to change colors when making a post... will that work?
Will it ever integrate within the quickreply or editor? |
It switches instantly. Im only good with template edits so creating something that complex could get hard. If anyone ever wants to team up though I have great ideas, and that would surely be one of em
|
i had try same way for same idea :) but all message also show with new selected color.
i think we should add default color BBcode when member is posting by add new plugin |
FL clicked INSTALL. :up:
|
Used on 3.6, have been waiting for this :) Many thanks
Edit: Does not appear to work - the fields appear in the user control panel, but after making a selection the posts do not show the new default face/colour. Edit2: Dug up the old code from here https://vborg.vbsupport.ru/showthrea...ght=font+color which is working - so perhaps it is your coding? |
Would it be some of the differences between 3.6 and 3.7? Not a coder here but it worked with no issues for me on 3.7.
|
Its working just fine for many people,
its been tested on 3.6 and works great. If you want I can come on and take a look |
owww yea thanks:D
|
Thanks man.
Im speak english too bad ım sorry. User select text color okay User select text font okay User select text style (bold) ??? Help me please... |
I didnt feel that was needed
|
Quote:
Title: Default Post Font Description: What font your posts show up as? Options: Default 1 2 3 4 5 6 7 Set Default: Yes, but no first blank option Display Order: Doesnt Matter Field Requiried: Yes, at registration and profile updating Field Editable by User: Yes Private Field: No Field Searchable on Members List: No Show on Members List: No Template Edits: Go to your styles postbit or postbit legacy Find ; Code:
<!-- message --> <font size="$post[fieldX]"> Find ; Code:
<!-- / message --> Code:
</font> |
Thats nice, but the title is misleading and it leads to bugs, thats why Im working on it for 1.01
|
i cnt get it to word dunno what i did wrong but yea its not workin
|
thanks nice hack,
|
i tried this it did not work no clue why though :s
|
did not work for me either on 3.7 RC1
|
thanks , works great with 3.7.0 rc1
|
Thanks :)
|
The font style works, but not the font 'color'.
Im on RC2, any help? |
It's not working for me either. Also RC2
|
thanks good idea
but you can use this code: Code:
<font face="$post[fieldX]" size="$post[fieldx]" color="$post[fieldx]"> </font> |
The people who are not getting it to work are most likely making the simple mistake of entering the wrong field. If you need help send me a pm and I will have a look
I didnt add size because I dont know why anyone would want every one of their posts to be the same size (except if its just the default size of 2) |
I could only get mine to work on postbit legacy.
|
Works good, thanks man. How would I make an option for bold, italic font too?
|
Quote:
|
Quote:
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=167487&highlight=font+color" target="_blank">https://vborg.vbsupport.ru/showt...ght=font+color</a>
thats the one i posted for 3.6 which works for 3.7 as well with no bugs... |
Teşekk?rler, Thanks :)
|
Thanks for the hack. I just installed this (on 3.7.0 Gold) and it works great.
Quote:
It appears that we can allow a default size to be selected by using the same method as you used for the font and color. Just need a third new profile field and a third font tag in the postbit. |
Before I start messing around with this, it is possible for a user to use Bold, Italics or Underline if they want too? I would also like to see a size option. It would come in handy for those on my site with poorer vision ;)
Thanks! |
Thanx..
|
nice hack , thanks. clicked at install and nomiated.
here it is some spell mistake in font list please Edit it, i have seen over many places,they just copy the same. it is "Trebuchet MS" instead Tribuchet MS :D Finally, i want to see in Quoted box same font as well,because someone does Quote you it does not show the same font we selected :D. Can you find it please? Cheers |
cant get this to work....the font never changes....
Peace |
Simple and VERY useful!
Thanks!! |
All times are GMT. The time now is 05:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|