PDA

View Full Version : Allow members to choose font size?


geniuscrew
10-28-2002, 11:19 PM
Hi

Some of my members are complaining about the size of text [it is verdana size 1] and they think it is too small.

Is there a little hack someone can make for me, that would allow them to choose their own font size?

I know they can change it through IE [View >> Text Size] but it looks weird.

Thanks for any help!

Erwin
10-29-2002, 09:14 AM
Size 1 is too small. :) That's smallfont size. Make it size=2 and it should be fine.

You don't need a hack to let users choose their font size. Make a custom profile field, get your users to enter the font size they want in it in their user CP Profile, and then in your postbit template, have this <font face=Verdana size=$post[fieldx]> and </font> with your $post[message] in between (x being the custom profile field id). There you go! :)

geniuscrew
10-29-2002, 02:35 PM
Hi

Thanks for the reply Erwin. Although your method is logical, I'm having problems with it.

If I put it "2" in my profile only my post will be that size.

However another thing. Quoting people and posting "code" doesn't have the right size too after their closing tags.

So if i put:

"blah blah blah

[Code here]

or

[Code here]

There you go!"

Blah Blah Blah will be in size 2 and so will the text within the tags. "Or" and "There you go!" will be still size 1.

I prefer size 1 because it looks neater :)

Erwin
10-29-2002, 05:37 PM
I see what you are asking for.

Instead of the font code above, use this one:

<font face=Verdana size=$bbuserinfo[fieldx]> and </font> with your $post[message] in between (x being the custom profile field id).

All post will be set to each member's font size.

As for quote tags - you can do the same in your custom vBCode section by modifying it there.

geniuscrew
10-30-2002, 09:05 AM
It's not working well in the quote tags, it's bigger for some reason- other than that post work well!

Thanks a lot m8

Edited: Where are the PHP/CODE tags? I can't seem to find them although they work.

I did replace the javascipt file so maybe that has something to do with it

geniuscrew
10-31-2002, 10:20 AM
Please help me Erwin ! :)

Erwin
10-31-2002, 06:06 PM
Go to your Admin CP, then to your Custom vBCode section in the left column, click on Modify, and see if quote is listed there. If it's not, then you need to edit your functions.php.