Version: 1.0.1, by JJR512
Developer Last Online: Jun 2006
Version: 3.5.0
Rating:
Released: 10-03-2005
Last Update: 10-03-2005
Installs: 24
Template Edits
No support by the author.
This is a very simple hack. In fact it's almost embarrassing to call it a hack.
In a nutshell, this gives your members the ability to select a font face in which all of their messages will appear. This includes not only new messages after they select the font, but also any of their old messages, too, because the font they select is applied to their messages in the postbit template at the time they are viewed.
Installing involves creating a new custom profile field and a modification to the postbit and/or postbit_legacy template(s).
NOTE: If anyone would like to show me how to auto-populate the font selection list with the currently installed fonts, I'd be glad for the tutorial. (As it is now, you have to copy the list of fonts from the style editor into the custom profile field, which works but is not elegant.)
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
1. The font is applied to a message when it is displayed, that's why you make changes to the postbit and postbit_legacy templates. This is by design. The only other way I could think of to use a default font would be to put the font tags inside the message that gets stored in the database, which because of the permanence of that, I didn't want to do.
2. I don't know about this, I haven't actually used the version with the size option myself.
3. I'll look into that...
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.
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.