vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=234962

Custom Font Forum Titles (Cufon)
by Attitude5ire
04 Feb 2010 07:24

1 Attachment(s)
Spice up your forumtitle's with custom font using Cufon text replacement.
I tried this in my forum works just fine under default vB4 (Should work for vB3 too.)

- Download the Cufon library, i have used YUI compressed library. also attchd.
- You need to generate font script now, It is recommended you use Free fonts.
10 Free fonts for Cufon.
You can generate font js file using this generator http://cufon.shoqolate.com/generate/
For ex: i have added Museo_500_400.font.js with this attchmnt.

UPLOAD Both these files to forum root folder.

- edit headerinclude and add these scripts.


find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

add after:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And walah your forumtitle's will be now replaced, all h2 declarations in your forum will be changes to Museo 500 font.

Changing Multiple heading.
You can change as many heading you want but you just need to assign a font family to it.
For ex:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

IE explorer annoyance
In most cases, there is a short but visible delay before the text is replaced. You can avoid this issue by inserting the following snippet right before the closing </body>.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Live Working Demo

sisterhood 04 Feb 2010 09:28

Great THX

one Problem in german

,, is missing

plz help

Attitude5ire 04 Feb 2010 09:43

Hey, this probably happens when you generate your font file.
By default only latin characters are added, you need to generate your font file again
http://cufon.shoqolate.com/generate/

sisterhood 04 Feb 2010 10:35

THX working

*installed*

Aclikyano 04 Feb 2010 12:03

it works with any font?
and all members can see this? even if they do not have the font stored on there PC?

Attitude5ire 05 Feb 2010 08:19

Should work with any font you can embed but you cannot embed commercial fonts unless u are allowed to. But yes any font u embed can be seen by everyone, it doesnt require the viewers to have that font in their PC.

Aclikyano 08 Feb 2010 01:39

how do i add my own fonts?

Aclikyano 08 Feb 2010 06:51

do you know what stylevar is edited to change the font size of where it says Welcome (username) , Notifications, My Profile, Settings, Log Out?

icemann 08 Feb 2010 11:53

Very nice touch, I like it and installed! :cool:

Aclikyano 08 Feb 2010 13:27

Quote:

Originally Posted by Dr.osamA (Post 1977245)
in Header >>> Header font

thanks,
now can you tell me which stylevars these are changeable in:
https://www.vbulletin.org/forum/external/2010/02/74.jpg

dacho 08 Feb 2010 13:43

Thanks man I will try it

Cableguy69 08 Feb 2010 23:53

These don't appear to be showing for me?

I'm using this font http://www.dafont.com/val.font as it's what I use in my logo. https://www.vbulletin.org/forum/external/2010/05/27.png

My code is as follows.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Val_900.font.js is the file that was generated, I uploaded that along with the cufon-yui.js you attached, what am I doing wrong?

Aclikyano 10 Feb 2010 15:35

^ are you trying to run this mod on 3.8.4??? this is 4.0 version, maybe that is the problem

Cableguy69 10 Feb 2010 17:01

No, I'm running 4.0.1

Attitude5ire 17 Feb 2010 12:38

This Mod can run in 3.8 too

@ cableguy
There shouldnt be any problem, if there is, the only probable reason could be js conflicting with other js in ur forum. Anyway jus post demo to your site where u using this perhaps i can take a look.


All times are GMT. The time now is 18:20.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.