[2.0.6] Font Face BBCode

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
16
52%
Very Good
11
35%
Good
3
10%
Fair
0
No votes
Poor
1
3%
 
Total votes: 31

Coyote23
Registered User
Posts: 78
Joined: Thu Oct 05, 2006 8:55 pm
Location: Omaha, Nebraska

Post by Coyote23 »

Just a few tips from a noob who is trying to install this Mod.

1. In language/lang_english/lang_main.php
Make sure the bold faced script is installed - don't let the // in the middle fool you.:

$lang['Font_style'] = 'Font Face';
// Add/remove your font-faces for this language here into the array
$lang['font']['arial'] = 'Arial, sans-serif';
$lang['font']['courier'] = 'Courier, monospace';
$lang['font']['times'] = 'Times New Roman, serif';

Otherwise there is no entry in the box

2. In templates/subSilver/posting_body.tpl - include the bold script:
&nbsp;{L_FONT_STYLE}:<select name="addbbcodefontface" onchange="bbfontstyle('[font=' + this.form.addbbcodefontface.options[this.form.addbbcodefontface.selectedIndex].value + ']', '[/font]');this.selectedIndex=0;" onmouseover="helpline('n')" accesskey="n">

Otherwise there is no pre-text on the left to this box.

-----------------------------------------------------------

I have a single forumer who is using OS X 10.4.8 and Safari 2.0.4. who has "Only a handful of posts show up with text, and it's usually a quoted section."

I am guessing that it has to deal with his/hers computer fonts. But I am not sure about this.

So... How can I tell what computers/browsers have as font styles?
Daku
Registered User
Posts: 65
Joined: Sat Mar 12, 2005 5:40 pm
Location: Switzerland

Post by Daku »

Does anyone know whether this works with Symbol font ?
If so, could someone tell me what the line looks like that needs to be added ?

Also, what sort of font is Verdana ?
serif ? sans-serif ?

thanks for any help !
User avatar
Towerwatch
Registered User
Posts: 97
Joined: Tue May 04, 2004 9:47 pm
Contact:

Post by Towerwatch »

I am also interested in installing Symbol font on my forum and I was wondering if anyone knew if it could be added to this MOD?
Glacierlily
Registered User
Posts: 123
Joined: Wed Oct 05, 2005 12:31 am

Post by Glacierlily »

Daku wrote: Does anyone know whether this works with Symbol font ?
If so, could someone tell me what the line looks like that needs to be added ?

Also, what sort of font is Verdana ?
serif ? sans-serif ?

thanks for any help !


I can only help with the one question, Verdana is a sans-serif, similar to Tahoma, perhaps a little wider spaced. It is my favorite font for ease of reading.
Glacierlily
Registered User
Posts: 123
Joined: Wed Oct 05, 2005 12:31 am

Post by Glacierlily »

Hi there,

I have some people clamoring for this font face thing.

Has anyone installed it with fonts other than courier, arial and times?

Sadly, and I mean that, we have people who want to use COMIC SANS! *stab me now*

So... can you? Use other fonts I mean?

And if so, is there a special naming thing for fonts that are two words like comic sans and trebuchet ms?

thanks
HoremWeb
Registered User
Posts: 8
Joined: Sun May 07, 2006 4:11 pm
Location: Hungary
Contact:

Post by HoremWeb »

For those whom it may concern: yes, this MOD perfectly works with Symbol font and several others. The point that you have to write the font name exactly as it is, e.g. Comic Sans is not the same as Comic_sans, etc. You can use unique fonts, too, writing like this in your post:
[font=Verdana] or [font=Book Antiqua]. Want you make it more clear?
some users could wrote: [font=Comic Sans, sans-serif]This text should be appear with Comics on your forum.[/font] This will be a normal text.

If they type it in, this part will appear in Comics: "This text should be appear with Comics on your forum.". After that, the usual Arial or whatever you had set will appear for this text: "This will be a normal text."

To install Comics Sans to your dropdown menu, BACKUP, THEN EDIT language/lang_english/lang_main.php as follows:

Code: Select all

FIND
$lang['Font_style'] = 'Font Face'; 
// Add/remove your font-faces for this language here into the array 
$lang['font']['arial'] = 'Arial, sans-serif'; 
$lang['font']['courier'] = 'Courier, monospace'; 
$lang['font']['times'] = 'Times New Roman, serif';

AFTER, ADD
$lang['font']['Comics'] = 'Comic Sans MS, sans-serif';
then save and upload file. If you have different languages installed, you have to modify all the lang_main.php files in the corresponding lang_xxxx folders.

For the complaining MAC-user's case: I think that the font family directs non-PC users' operating systems, which fonts to use instead of the missing TrueType fonts. Make sure you use the 'serif', 'sans-serif', 'monospace', etc. family names, too.

I hope I could help someone...[/quote]
nn ms.j sAw
(No one born wise) - Ptahhotep, around 2200 B.C.
HoremWeb
Registered User
Posts: 8
Joined: Sun May 07, 2006 4:11 pm
Location: Hungary
Contact:

Post by HoremWeb »

Daku wrote: Does anyone know whether this works with Symbol font ?
If so, could someone tell me what the line looks like that needs to be added ?

Also, what sort of font is Verdana ?
serif ? sans-serif ?

thanks for any help !

Code: Select all

FIND 
$lang['Font_style'] = 'Font Face'; 
// Add/remove your font-faces for this language here into the array 
$lang['font']['arial'] = 'Arial, sans-serif'; 
$lang['font']['courier'] = 'Courier, monospace'; 
$lang['font']['times'] = 'Times New Roman, serif'; 

AFTER, ADD 
$lang['font']['Symbol'] = 'Symbol';
nn ms.j sAw
(No one born wise) - Ptahhotep, around 2200 B.C.
Mourgos
Registered User
Posts: 27
Joined: Thu Mar 01, 2007 8:02 am

Post by Mourgos »

HoremWeb wrote:

Code: Select all

FIND 
$lang['Font_style'] = 'Font Face'; 
// Add/remove your font-faces for this language here into the array 
$lang['font']['arial'] = 'Arial, sans-serif'; 
$lang['font']['courier'] = 'Courier, monospace'; 
$lang['font']['times'] = 'Times New Roman, serif';


How will i know what to write beside each font? sans-serif,monospace,serif ?
Can i use only the font's name such as

Code: Select all

$lang['font']['Symbol'] = 'Symbol';
:?:
HoremWeb
Registered User
Posts: 8
Joined: Sun May 07, 2006 4:11 pm
Location: Hungary
Contact:

Re:

Post by HoremWeb »

Mourgos wrote: How will i know what to write beside each font? sans-serif,monospace,serif ?
Can i use only the font's name such as

Code: Select all

$lang['font']['Symbol'] = 'Symbol';
:?:

You don't have to write the font family after the font name, but if you do, the browser knows what kind of font it have to use if the selected font is missing from the visitor's computer. (See my notice about the MAC and other system users.)

The font families are:
serif - these fonts have the small "spikes" (serifs) on the letters, and have proportional lines, like of Times and BookAntiqua.
sans-serif - these fonts haven't got their "spikes" and have nearly equal lines, like of Arial and Helvetica.
monospace - these fonts have letters of the same width, e.g. letter "i" is as wide as letter "M", like of Courier.
nn ms.j sAw
(No one born wise) - Ptahhotep, around 2200 B.C.
Coroner
Registered User
Posts: 123
Joined: Sat Sep 16, 2006 3:48 am
Contact:

Re: [2.0.6] Font Face BBCode

Post by Coroner »

Has this been tested with Advanced BBcode Box? I read the posts and don't see that question asked.

If it won't work with version .22 then does anyone know a similar mod that will add custom fonts?

Please let me know!

Thanx!
Arglwydd
Registered User
Posts: 133
Joined: Tue Dec 06, 2005 7:58 pm
Location: Wales, UK
Contact:

Re: [2.0.6] Font Face BBCode

Post by Arglwydd »

This works with phpBB2.0.22, as I just installed it on a board the other day. However, I don't know if it works with this Advanced BBCode you mentioned, because I've never installed that.
MythicalRealmRPG.net! A roleplaying site for adult writers!
LCNA - A mafia-themed text-based roleplaying game for all ages!
Coroner
Registered User
Posts: 123
Joined: Sat Sep 16, 2006 3:48 am
Contact:

Re: [2.0.6] Font Face BBCode

Post by Coroner »

Could you please post at location where I can download this mod?

The link is broken (404)

Thanks!
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [2.0.6] Font Face BBCode

Post by lefty74 »

lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
Coroner
Registered User
Posts: 123
Joined: Sat Sep 16, 2006 3:48 am
Contact:

Re: [2.0.6] Font Face BBCode

Post by Coroner »

Thanks Lefty!
User avatar
tarotamerica
Registered User
Posts: 230
Joined: Thu Feb 22, 2007 10:30 am
Contact:

Re: [2.0.6] Font Face BBCode

Post by tarotamerica »

AbelaJohnB wrote: Download File: font_face_bbcode1_0_4.mod
File Size: 9154 Bytes
Can this be reconnected please?
Coincidences are God's way of remaining anonymous
—Albert Einstein
Post Reply

Return to “[2.0.x] MOD Database Cleanup”