PDA

View Full Version : Allowing users to select default font / color in UserCP


HHU
09-15-2005, 09:46 PM
Version: 3.07

Ok... what I'm trying to do is enable a drop down menu in the UserCP allowing individual users to select a default font and font color that their posts will be made in.

I have seen this on another board and I don't think it is too dificult to do I just am not the greatest in PHP Code.

If anybody is able to help that would be greatly appreciated.

Thanks

Forum - www.hiphop-universe.com

Chris M
09-15-2005, 09:48 PM
You can do this via simple profile fields :)

Chris

HHU
09-15-2005, 09:51 PM
CARE TO ELABORATE... IS IT REALLY A CASE OF JUST CREATING A STANDARD PROFILE FIELD, NAMING THE OPTIONS DIFFERENT COLORS / FONTS AND THATS THAT?

OR DO I NEED TO DO A STYLE / TEMPLATE EDIT?

BASING THAT OFF OF THIS THREAD HERE:

https://vborg.vbsupport.ru/showthread.php?p=774043#post774043

BUT I HAVE USHOP INSTALLED SO I DONT WANT TO DO THIS FOR USERNAMES SINCE THEY CAN BE PURCHASED.. JUST THE POSTING FONT

THANKS FOR THE QUICK REPLY CHRIS

Oops... sorry for the caps I guess the link turned anti-shouting off... at work so I do my typing in caps

Chris M
09-15-2005, 10:05 PM
Using a drop-down box to control the colour would work - However you may wish to create a hack for this as using html such as:
<font color="red">text</font>
is not technically valid code ;)

If you are not worried about HTML or XHTML validity then this method would be fine :)

Simpy having options such as:

blue
red
green
yellow
orange
then using something like:
<font color="$post[fieldX]">$post[message]</font>
(replacing X with the fieldid of the profile field) would work :)

Chris

Guest190829
09-15-2005, 10:09 PM
I believe there is a hack/template mod that give instruction on how to do this. Try searching for it, and it may come up. If I find it I'll post it. :)

This could be what your looking for https://vborg.vbsupport.ru/showthread.php?t=60065&highlight=fonts

Chris M
09-15-2005, 10:13 PM
https://vborg.vbsupport.ru/showthread.php?t=49398&highlight=user+select+font

However it is a vB2 hack :(

Chris