![]() |
Default Posting Font
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.) |
Hm... doesnt seem to work :\
|
Screenshots please?
|
Screenshots of what? It would be the same thing as someone posting in a different type of font anywhere.
|
here's a screenshot
but it doesn't work one bit and this isn't a modification lol |
Doesnt work for me either :\
|
Nice hack.
Nevermind. It's working fine now. :) |
How about making a hack for Font Color too? That would be cool.
|
Lebanese Forces: Not sure what the screenshot is meant to show me, because there's nothing wrong with anything in it.
If anyone is having a problem, please do the following: Install the modification, select a font for yourself (or another member of your board), and give me a URL to a page that has a post from you (or that other member). |
You know what: I bet I know what the problem is.
In Step 8, in both in instances of "$post[field8]", change the 8 to whatever number you noted in Step 6. I hope that's all the problem is, because this is a very simple modification. |
I did change that
I had field5 and it's still not working for me and how about you add a color too |
The only other reason I can think of for it to not work is if you select a font that you don't actually have on your computer. That's why I asked for a URL to a message post by a user that has a default font selected.
Adding color and size are easy enough, but I'd like to make sure it's actually working first before extending it. :) Again, the only reasons why it wouldn't work can possibly be are: 1. The field number in the code inserted into the template doesn't match the actual field number for the profile field; 2. You don't have the font installed on your computer, so although it's actually working, you can't see any difference; 3. My instructions aren't clear enough and a mistake was made installing it. It could be #3... But please give me a URL to a thread on your board where someone has posted and that someone has a default font set, tell me who it is (so I know where to look), and I'll see what's up. |
I didn't install it yet on my boards, I tested it on my localhost
let's hear from the others, if it worked with others, i'll install it again! |
this functions as intended on my test boards...3.5.0 final.
doesnt work in quotes though. i set my font to georgia (making sure i had that font in my fonts folder), made a post, the text came out as intended, then quoted that post. the quote did not retain the font choice i made. other than that...works great. the color options would be great :) |
i got the color option working based on the colors available in the editor.
if the mod creator doesnt mind...ill post it up here. |
If he doesn't allow you to, just make a new thread, because I could really use it.
|
I'll have something with color and size posted here in this thread tomorrow.
|
Yeah that's cool. What about effects too like bold, italic, underline and stroke? This would be cool.
|
Well you said you're going to release it tomorrow and nothing is up so far.
|
I wonder if it is possible to post with fonts that are on the server and not on a member's computer, so it doesn't matter what they choose.
|
I can't say that's possible but it's a good idea.
|
i sent him what i did for the color. if he doesnt post it by monday morning (1030 am eastern) then ill put up my color mod addition.
|
this is what i did to get the color options. the file is attached.
*Note: this is an add on to the original mod. all i did was replicate the instructions from the original mod and modified where appropriate. |
Quote:
From the point of view of your question, the only way to guarantee font compatibility would be to make each of the fonts that are optional on your message board be downloadable from your site. However, you then have to deal with legal and licensing issues, as they are not all free. My preferred font, for example, is Palatino Linotype, which is part of the standard font options available in vBulletin. This font is copyright Microsoft and has been included with Windows since either ME or 2000. I don't think you can legally distribute it. |
In this list of yours, there shouldn't be any fonts that are not universal and that cannot be found on some of the computers out there...
|
Quote:
Anyone installing this hack is free to modify the list of fonts available to the user to select in his/her usercp. You can remove some names, you can add other names. Just remember that there are very few truly universal fonts, and not everything in the list may be available to everyone. But that same warning applies to the fonts you have available to users to select from the message editor when they're composing a message. If there's a font you don't want to be available to be in a post, you should remove that font name from your style settings; therefore, when you copy that list into this hack, that font won't be available there, either. |
Any update on this one so far?
|
Quote:
[high]* akanevsky goes to file a complaint with Jelsoft :)[/high] |
Quote:
|
Quote:
|
Quote:
|
I haven't had the chance to actually install the version with the color selector, because I don't plan on using it myself. So I haven't really seen it in action. But I had assumed it was just another drop-down selector box, like the font name.
What, exactly, is it that you would like to see; how can it be made better? |
Is this not the same as this https://vborg.vbsupport.ru/showthrea...ight=user+font ?
I only ask because I want something like this but I want the one that works the best. |
Quote:
|
Here's what I mean. If you could do something similar like the below image, that would be cooL!
http://img153.imageshack.us/img153/9...stcolor5sa.jpg |
Quote:
|
Quote:
Code:
<div id="post_message_$post[postid]"><if condition="$post[fieldX]"><font face="$post[fieldX]"<if condition="$post[fieldX]"> color="$post[fieldX]"</if><if condition="$post[fieldX]"> size="$post[fieldX]"</if>>$post[message]</font><else />$post[message]</if></div> |
Quote:
|
I got a question here. I've set up my custom fields for font face and size (not going to do color) and edited the postbit and postbit_legacy templates as described in post #37 (The Wise One). I noticed three things.
1. Not only do my new posts show up with my default font and size, but all of my previous posts do as well. Why? What if I don't WANT my old posts to have the new defaults applied? 2. If the default size, but NOT font is selected in my options, the post uses the board default with no change to size. 3. If I log out and view my new post with a default font and size applied, I see the board default, NOT the default, so I am the only one able to see my defaults. Why? Will guests and other members be able to see the formatted text or not? TDF |
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... |
All times are GMT. The time now is 04:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|