vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   adding font names. how? (https://vborg.vbsupport.ru/showthread.php?t=259626)

staffurdu 03-01-2011 03:56 AM

adding font names. how?
 
hello, please see following image:


OldSchoolDSL 03-05-2011 11:06 PM

bump.

I'd like to know this too. The only way I know how is using Google Fonts, but that's off site. I'd like to know how to keep this local.

staffurdu 03-08-2011 12:15 PM

So, I assume no one knows about it?

tonyvh2 03-09-2011 08:45 AM

This is defined in template "editor_jsoptions_font" but when you search for it in AdminCP -> search in templates you wont find it?


So, the only way seems to be to edit it in the database, in table "template". Where title = editor_jsoptions_font. The fonts are defined in fields "template" and "template_un" . Just put your font on a new row.

The contents in the standard installation for fields "template"and "template_un" are:

Code:

$final_rendered = 'Arial
Arial Black
Arial Narrow
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Fixedsys
Franklin Gothic Medium
Garamond
Georgia
Impact
Lucida Console
Lucida Sans Unicode
Microsoft Sans Serif
Palatino Linotype
System
Tahoma
Times New Roman
Trebuchet MS
Verdana ';

and


Code:

Arial
Arial Black
Arial Narrow
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Fixedsys
Franklin Gothic Medium
Garamond
Georgia
Impact
Lucida Console
Lucida Sans Unicode
Microsoft Sans Serif
Palatino Linotype
System
Tahoma
Times New Roman
Trebuchet MS
Verdana


staffurdu 03-09-2011 10:43 AM

1 Attachment(s)
Quote:

Originally Posted by tonyvh2 (Post 2171283)
This is defined in template "editor_jsoptions_font" but when you search for it in AdminCP -> search in templates you wont find it?


So, the only way seems to be to edit it in the database, in table "template". Where title = editor_jsoptions_font. The fonts are defined in fields "template" and "template_un" . Just put your font on a new row.

The contents in the standard installation for fields "template"and "template_un" are:

Code:

$final_rendered = 'Arial
Arial Black
Arial Narrow
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Fixedsys
Franklin Gothic Medium
Garamond
Georgia
Impact
Lucida Console
Lucida Sans Unicode
Microsoft Sans Serif
Palatino Linotype
System
Tahoma
Times New Roman
Trebuchet MS
Verdana ';

and


Code:

Arial
Arial Black
Arial Narrow
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Fixedsys
Franklin Gothic Medium
Garamond
Georgia
Impact
Lucida Console
Lucida Sans Unicode
Microsoft Sans Serif
Palatino Linotype
System
Tahoma
Times New Roman
Trebuchet MS
Verdana


vb_template - phpMyAdmin 3.3.9_1299674509586.jpg
plz see img

which one i will have to edit. i dont understand.

tonyvh2 03-09-2011 11:03 AM

Click on SQL in menu above,


then paste this:

Code:

SELECT * FROM template WHERE title = 'editor_jsoptions_font';
Then edit "the fields "template" and "template_un"

for example if I want to add the font "Helvetica Neue" this will be the value of the field "template":

Code:

$final_rendered = 'Arial
Arial Black
Arial Narrow
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Fixedsys
Franklin Gothic Medium
Garamond
Georgia
Impact
Lucida Console
Lucida Sans Unicode
Microsoft Sans Serif
Palatino Linotype
System
Tahoma
Times New Roman
Trebuchet MS
Verdana
Helvetica Neue ';



All times are GMT. The time now is 07:33 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.00966 seconds
  • Memory Usage 1,730KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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