John
04-08-2007, 10:17 PM
Hi All
Here's an interesting one for you coders out there...
I was about to reduce the maximum permitted number of characters in a username, but as I only have a few members with a username length that spoils the page, I am now thinking of creating some code that amends the font size for those with usernames > 'n' characters.
Thing is, there isn't a vB conditional for this and I'd need to do this via some PHP code that I could then use to set the font for username.
OK, I could (I think) figure out the code needed to calculate the length of a vB username, but the exact code and syntax needed, together with which plugin I use to call it I have no idea of.
Can anyone help...?
Here's an interesting one for you coders out there...
I was about to reduce the maximum permitted number of characters in a username, but as I only have a few members with a username length that spoils the page, I am now thinking of creating some code that amends the font size for those with usernames > 'n' characters.
Thing is, there isn't a vB conditional for this and I'd need to do this via some PHP code that I could then use to set the font for username.
OK, I could (I think) figure out the code needed to calculate the length of a vB username, but the exact code and syntax needed, together with which plugin I use to call it I have no idea of.
Can anyone help...?