vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to Change bbcode font sizes in vBulletin 4.2.2 (https://vborg.vbsupport.ru/showthread.php?t=309381)

mirdasek 03-11-2014 01:45 AM

How to Change bbcode font sizes in vBulletin 4.2.2
 
Hello,
I would require your assistance. :)
After installation of vBulletin 4.2.2, I would like to adjust BBcode font sizes:
[SIZE=1]
[SIZE=2]
[SIZE=3]
[SIZE=4]
[SIZE=5]
[SIZE=6]
[SIZE=7]

https://vborg.vbsupport.ru/external/2014/03/61.png

Reason, unfortunately size 5,6 and 7 is for our forum too big. :confused:

I found a topic on https://vborg.vbsupport.ru/showthread.php?t=134919, that in uncompressed javascript file "vbulletin_textedit.js" is necessary to edit on line 1888 following:

Code:

this.translate_fontsize = function(csssize)
            {
                switch (csssize)
                {
                    case '7.5pt':
                    case '10px': return 1;
                    case '10pt': return 2;
                    case '12pt': return 3;
                    case '14pt': return 4;
                    case '18pt': return 5;
                    case '24pt': return 6;
                    case '36pt': return 7;
                    default:    return '';
                }
            }

I have downloaded the uncompressed javascript files from vbulletin.com member area.
Unfortunately, in the uncompressed javascript file "vbulletin_textedit.js" I cannot see "this.translate_fontsize = function(csssize)".
Moreover, I can see only 1128 line?

Could you please help me to solve this probl?m in vb 4.2.2?

Excuse my English, its not my natural language.

Thank you in advance.

ForceHSS 03-11-2014 02:20 AM

that info is no longer in that file

mirdasek 03-11-2014 03:23 AM

Thanks for your reply. But where's this information? :confused: :confused:

ForceHSS 03-11-2014 03:43 AM

Sorry don't know as it is something I have never edited maybe someone else can answer this


All times are GMT. The time now is 03:49 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.00947 seconds
  • Memory Usage 1,718KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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