vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Custom Font Forum Titles (Cufon) (https://vborg.vbsupport.ru/showthread.php?t=234962)

Attitude5ire 02-03-2010 10:00 PM

Custom Font Forum Titles (Cufon)
 
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:

Code:

<script type="text/javascript" src="{vb:stylevar yuipath}/yuiloader-dom-event/yuiloader-dom-event.js?v={vb:raw vboptions.simpleversion}"></script>
add after:
Code:

<script src="cufon-yui.js" type="text/javascript"></script>
<script src="Museo_500_400.font.js" type="text/javascript"></script>
        <script type="text/javascript">
            Cufon.replace('h2');
        </script>

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:
Code:

Cufon.replace('h1', { fontFamily: 'Museo' });
Cufon.replace('h2', { fontFamily: 'League Gothic' });

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>.
Code:

<script type="text/javascript"> Cufon.now(); </script>
Live Working Demo

sisterhood 02-04-2010 08:28 AM

Great THX

one Problem in german

ä,ö,ü is missing

plz help

Attitude5ire 02-04-2010 08:43 AM

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 02-04-2010 09:35 AM

THX working

*installed*

Aclikyano 02-04-2010 11:03 AM

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

Attitude5ire 02-05-2010 07:19 AM

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 02-08-2010 12:39 AM

how do i add my own fonts?

Aclikyano 02-08-2010 05:51 AM

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 02-08-2010 10:53 AM

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

Aclikyano 02-08-2010 12:27 PM

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://vborg.vbsupport.ru/external/2010/02/74.jpg


All times are GMT. The time now is 10:20 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
  • Page Generation 0.01255 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete