PDA

View Full Version : How to Change bbcode font sizes in vBulletin 4.2.2


mirdasek
03-11-2014, 01:45 AM
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:

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