JJR512 |
10-18-2005 08:31 PM |
Quote:
Originally Posted by TechDawgFan
Somebody correct me if I'm wrong here, and it IS entirely possible. But all the mods and tweaks I've seen relating to users being able to set their own default fonts, sizes, and colors have revolved around using the custom profile fields and then editing the postbit and postbit_legacy templates. But unless the font and size tag are actually saved in the message, all it is doing is changing the way the user sees his or her own posts. It doesn't affect what other people see because they don't hit the other person's custom fields. I THINK the only way to do this and do it RIGHT is to have the tags written to the message the same way the editor does when you select a different font when typing your message.
Now I don't personally know how to do this, but I KNOW SOMEBODY on here has got to.
TDF
|
Firstly, there is no RIGHT way; there are at least two different ways, both have advantages and disadvantages. What was right for me was the way I programmed it but that way may not be right for you.
The fact that the font tag is being applied to the message in the postbit or postbit_legacy template is not the reason why it only appears to be in your default font only when you're logged in. If that's the case, there is an error somewhere. It sounds like it's using info for the logged-in user, rather than for the user who posted the message. In my version, this problem does not exist, which I've confirmed by logging out of my own message board and looking at my messages. They continue to be in my default font, as they should. I've looked at the code for the color version, too, and although I don't use it myself, it appears to be correct. It's getting the font from the same source of info that a post gets the username, date, message text, etc. for, so I don't see why it should only work if you're logged in.
|