vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Profile Enhancements - Custom fonts for different usergroups (https://vborg.vbsupport.ru/showthread.php?t=296247)

leejohn02 03-17-2013 11:00 PM

Custom fonts for different usergroups
 
1 Attachment(s)
This is my first true custom mod, this enables you to have a custom font for a certain usergroup, you can use this for as many usergroups as you like and doesnt require the viewer to have the font installed on there computer, it will kept on the server so will be available for everyone too see, so no more default fonts, hope you enjoy

First off download what font type you would like in ttf format.

Once complete open additional.css and add this at the bottom

@font-face {
font-family: Over;
src: url('Over.ttf');
}

Change the Red text to the name of your ttf file.
Upload your ttf file to the root directory of your file directory/file manager.


Next add the following

.premium {
font-family: Over; /* no .ttf */
}

If you wish to add a color make it like this

.premium {
font-family: Over; /* no .ttf */
color: #FF0000;
}

change the yellow to the color you want, and the red to the name of the TTF file

Once your complete save it and then open up the usergroup you wish to change

In the usergroup html markup add this to the first box

<span class="premium">

Add </span> to the 2nd box

And your all done

Click below for a screen shot

https://vborg.vbsupport.ru/external/2013/03/24.jpg

Glitch_guru is the one you are looking at using a custom font, this works in posts also and profiles.

leejohn02 03-18-2013 02:26 AM

no comments why do i bother to share?

Justinphx 03-18-2013 05:34 AM

I just tried this but it didn't work.

root directory of your file directory/file manager I placed it in my /forum directory. Is this correct?

Thanks - it looks really nice in your example.

leejohn02 03-18-2013 05:57 PM

send me ur domain i will have a look for you, try putting it in the main directory, where you see the admin cp folder, not in the actual admin cp folder but in the same directory

Justinphx 03-18-2013 07:02 PM

Thanks. I just figured it out. I had to clear the cache. I guess Cloudflare had my template cached. Works nice and thanks for sharing. *****

shakir1401 06-16-2013 12:48 PM

where to find the file additional.css

Toorak Times 06-18-2013 11:25 AM

Hi mate, really like this, as a publisher I have to put my hat on and think how I can best use it.

Toorak Times 06-18-2013 11:29 AM

Quote:

Originally Posted by shakir1401 (Post 2428476)
where to find the file additional.css

In your cpanel go to Styles and Templates click on your style or the main style and go to Edit Templates look for CSS, click, you'll find it there and it's cool


All times are GMT. The time now is 10:08 AM.

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.00977 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete