PDA

View Full Version : New Posting Features - User selected default posting font and color


Theoldwiz
02 Mar 2008, 05:56
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: <!-- message -->

After Add:
<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: <!-- / message -->

Add Above: </font></font>


You are done, hope you like it!

Magnumutz
02 Mar 2008, 11:10
Yeah, i find pretty useful.
Thanks a lot.

Forum Lover
02 Mar 2008, 13:24
<font COLOR="$post[fieldX]"><font face="$post[fieldX]">

I got connfused here. Can u show me a example please?

its not working for me. I put [field1] instead.

Veer
02 Mar 2008, 15:13
Nice, why note to include font size?

thanks.

AWMGolfer
02 Mar 2008, 15:19
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!!

Theoldwiz
02 Mar 2008, 16:20
Glad you guys love it.

Dont forget to hit install

I will be trying to add usergroup permissions and size soon in 1.1 :)

Magnumutz
02 Mar 2008, 23:34
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?

Theoldwiz
02 Mar 2008, 23:46
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

xtrung
03 Mar 2008, 02:16
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

Forum Lover
03 Mar 2008, 05:47
FL clicked INSTALL. :up:

FENIX
03 Mar 2008, 10:07
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 http://www.vbulletin.org/forum/showthread.php?t=167487&highlight=font+color which is working - so perhaps it is your coding?

AWMGolfer
03 Mar 2008, 11:12
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.

Theoldwiz
03 Mar 2008, 13:54
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

avsunforum
04 Mar 2008, 09:12
owww yea thanks:D

Eywah
04 Mar 2008, 20:37
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...

Theoldwiz
05 Mar 2008, 02:28
I didnt feel that was needed

hozmay
05 Mar 2008, 14:07
Nice, why note to include font size?

thanks.

hi,first you must make two new single selection menu user profile fields. Options for them are below.

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 ;

<!-- message -->After add ;

<font size="$post[fieldX]">

Find ;

<!-- / message -->Above add ;

</font>

Theoldwiz
07 Mar 2008, 00:22
Thats nice, but the title is misleading and it leads to bugs, thats why Im working on it for 1.01

Weston
15 Mar 2008, 16:54
i cnt get it to word dunno what i did wrong but yea its not workin

Sothside40
17 Mar 2008, 01:23
thanks nice hack,

Kaleem
21 Mar 2008, 19:56
i tried this it did not work no clue why though :s

odonel
30 Mar 2008, 17:10
did not work for me either on 3.7 RC1

johnpmaster
31 Mar 2008, 20:14
thanks , works great with 3.7.0 rc1

Fırtına
04 Apr 2008, 10:43
Thanks :)

Bl4z3
05 Apr 2008, 00:07
The font style works, but not the font 'color'.

Im on RC2, any help?

mblb
05 Apr 2008, 09:52
It's not working for me either. Also RC2

tounet
06 Apr 2008, 23:14
thanks good idea

but you can use this code: <font face="$post[fieldX]" size="$post[fieldx]" color="$post[fieldx]"> </font>

Theoldwiz
09 Apr 2008, 13:49
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)

mblb
10 Apr 2008, 04:14
I could only get mine to work on postbit legacy.

fateL
10 Apr 2008, 07:31
Works good, thanks man. How would I make an option for bold, italic font too?

Breathex
10 Apr 2008, 21:06
Works good, thanks man. How would I make an option for bold, italic font too?
Yes, this is important.

Theoldwiz
15 Apr 2008, 14:03
I could only get mine to work on postbit legacy.

Just edit the legacy template

ShadowOne
30 Apr 2008, 08:12
http://www.vbulletin.org/forum/showthread.php?t=167487&highlight=font+color

thats the one i posted for 3.6 which works for 3.7 as well with no bugs...

Fırtına
01 May 2008, 11:14
Teşekkürler, Thanks :)

SavvyPirates
02 May 2008, 02:05
Thanks for the hack. I just installed this (on 3.7.0 Gold) and it works great.

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 found a reason...some of the fonts (such as Garamond) at their default size are much smaller that what we are ued to with the Verdana default. Increasing the size is necessary to help people be able to read your post without a magnifying glass.

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.

FLMom
03 May 2008, 22:22
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!

Hams
05 May 2008, 19:42
Thanx..

ahayat
19 May 2008, 14:52
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

nymyth
01 Jun 2008, 21:36
cant get this to work....the font never changes....

Peace

WDZaphod
03 Jun 2008, 07:43
Simple and VERY useful!

Thanks!!

JadedSouls
04 Jun 2008, 15:11
Same as nymyth, I couldn't get the font part to work but I kept the color one as my members want that more..

I also added a ton more colors!

nymyth
04 Jun 2008, 16:10
I used another edit...the link is posted somewhere in this thread...it works great

Peace

g0dfather1984
06 Jun 2008, 03:39
Works great! Thanks!

SessizDunya
20 Jun 2008, 08:46
Nice Hack...

But I don't want the old post's font and color to be changed after I install this hack. For example; I posted some threads before I use this hack and I used some specific font and colors. After I install this hack, the old threads are also changing. Is there any way to adjust this hack for only new posts?

By the way I add the codes @ postbit template. When I added to postbit_legacy, the hack is not working.

Any Ideas?

BigDog56
21 Jun 2008, 21:52
Thanks for the hack. I just installed this (on 3.7.0 Gold) and it works great.



I found a reason...some of the fonts (such as Garamond) at their default size are much smaller that what we are ued to with the Verdana default. Increasing the size is necessary to help people be able to read your post without a magnifying glass.

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.

Agreed. Woluld love to see a size option too!

blind-eddie
10 Jul 2008, 17:54
Nice Hack...

But I don't want the old post's font and color to be changed after I install this hack. For example; I posted some threads before I use this hack and I used some specific font and colors. After I install this hack, the old threads are also changing. Is there any way to adjust this hack for only new posts?

Any Ideas?


WOW!!! It sure does. I have mini books written on my site.

Yasser Mohammed
19 Jul 2008, 02:08
thank you for this nice hack

but I don`t why the color and size don`t work :(

just font ok with me ?!

I`m use 3.7.2 Level 1

apiasto
19 Aug 2008, 15:56
nice hack thnx,would you be adding bold n italic options in future?

AuroraStorm
20 Aug 2008, 22:02
Question: What do you do when you want to revert back to the default color? For example, if a person uses the default color "black" and others are using a black skin, they won't be able to see the font color so if a person wants to use no color and make his account default to whatever font color, what do you select?

I hope I explained that right...

teenhut
21 Aug 2008, 07:22
I love you :D

teenhut
22 Aug 2008, 08:48
Question: What do you do when you want to revert back to the default color? For example, if a person uses the default color "black" and others are using a black skin, they won't be able to see the font color so if a person wants to use no color and make his account default to whatever font color, what do you select?

I hope I explained that right...

Keep a blank option on top. Like DEFAULT - no selection. Then the top one will be a blank. People can select the blank option and it reverts to default.

AuroraStorm
30 Aug 2008, 19:54
ah...I see...thank you...

Greek76
31 Aug 2008, 18:11
I did exactly the same thing for the font size which worked but the problem is everyone's size font changed with it. The style and color worked great.

SnapOff Racing
03 Sep 2008, 02:07
seen this asked many times with no answers...when's the bold feature going to be available

Gosef
19 Sep 2008, 12:24
thank you

SPARKS MAN
22 Sep 2008, 20:26
its very good i try it
but there is small side effect in it this when some one adding an URL
its applying style on it and make the URL big
specially when URL is very long and the font style chosen was big

regards
Eng. Ali Hashim

Emmmmrz
06 Nov 2008, 04:29
Is there any news about usergroup permissions? I would love to install this for my premium members...

Lovinmysailor
08 Nov 2008, 22:47
Nice hack!!




If you want font size you just make another profile field with the same options the OP posted.
after this
<font COLOR="$post[fieldX]"><font face="$post[fieldX]">

add this

<font size="$post[fieldX]"> be sure you write the correct field number in!!

Manic Mechanic
13 Nov 2008, 06:54
Nice hack!!




If you want font size you just make another profile field with the same options the OP posted.
after this
<font COLOR="$post[fieldX]"><font face="$post[fieldX]">

add this

<font size="$post[fieldX]"> be sure you write the correct field number in!!

Did the above modification and works great, thank you.

Lovinmysailor
24 Nov 2008, 04:45
No problem! I dont take credit for it! Just worked off the OP ideas!

nascartr
29 Dec 2008, 21:55
Installed and working on 3.8.0 RC2!

bond010007
03 Jan 2009, 13:41
its really cool thanks so much

Adeawan
13 Jan 2009, 01:13
Thanks Alott

s0lidgr0und
02 Mar 2009, 17:52
I can't believe this hasn't been built into vb yet.

I added this mod, but it's sort of bugging me that it changes old posts' fonts and that when a user with default formatting is quoted that it doesn't carry over into the quote box in the new thread.

*installed, but not convinced it's exactly what I was looking for*

Seshat Diva
07 Mar 2009, 02:06
Perfect, installed, exactly what I wanted! Thank you!

Update~ Installed but not working. It's in the UserCP/Edit Details as it should be but when I direct what font and color I want to use and save, it doesn't work. I'm not sure what I did wrong.......sigh......

Mellymonster
13 Mar 2009, 17:05
Seshat Diva, its not working for me either.

Mellymonster
13 Mar 2009, 17:30
Never Mind I was putting in the wrong filedX hehe

joe1989
15 Mar 2009, 19:43
Why does this work for some of us and not for others???

Notice to new members: Don't waste your time installing this until support is offered. It is not working properly for most of us, and it took a decent amount of time to do, so DO NOT WASTE YOUR TIME WITH IT unless you are certain it will work!! (Most likely will not work!!)

Lovinmysailor
17 Mar 2009, 02:39
Worked fine for me. PM me and I would be happy to help.

ascendan
20 May 2009, 15:26
Worked for me as well, but the colors were really off. Haha.

Edit: Works perfectly now. Also added the font size as well.

goxy63
01 Jun 2009, 11:24
These template edits are not working if you are using this hack
Chief First Post - Every Page [Forum Based]
http://www.vbulletin.org/forum/showt...=194832&page=3
If you setup within mentioned hack "no comment type" or postbit flipped" option these templates will not work
Does anyone know way around this !?

iBetc
02 Jun 2009, 16:02
Awesome, thanks!

jaredwilli
05 Jun 2009, 20:54
its not working for me and I did everything correctly

SnapOff Racing
15 Jul 2009, 03:42
Anyone know how to make this work with vba CMPS?

Lovinmysailor
20 Oct 2009, 15:22
I am using VBA CMPS and it is working fine. PM me with your code or post it (whatever you want) and I will help you.

TypeStaff
26 Oct 2009, 00:23
how i can install this same hack in the profile messages? :s

Seshat Diva
19 Jul 2010, 14:09
Perfect, installed, exactly what I wanted! Thank you!

Update~ Installed but not working. It's in the UserCP/Edit Details as it should be but when I direct what font and color I want to use and save, it doesn't work. I'm not sure what I did wrong.......sigh......

I had the same problem, had to hire someone to get it working for me. It worked great :) until my site was upgraded to the 4.0 version. :(

Seshat Diva, its not working for me either.

Sorry Mellymonster, I hope by now you have it working :)

Why does this work for some of us and not for others???

Notice to new members: Don't waste your time installing this until support is offered. It is not working properly for most of us, and it took a decent amount of time to do, so DO NOT WASTE YOUR TIME WITH IT unless you are certain it will work!! (Most likely will not work!!)

I really liked having this hack/product when it finally worked. Now since my upgrade to the 4.0 version, it doesn't work anymore.

Is there a new 4.0 version update for the "User Font and Post Color"? Please and thank you! :)

K!nG
16 Jun 2011, 22:27
Hi,
I don't think its gonna work on 4.1.4 but i am gonna try this cux my forum users are asking for it (majority of them) i tried to look around for this mod for 4.x.x version but can't find nowhere. i will update this post to let ya all know if it worked or not :(