vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Modification To Limit Font Size in Posts? (https://vborg.vbsupport.ru/showthread.php?t=134919)

Smitty 04-12-2008 06:15 PM

Quote:

Originally Posted by StrifeX (Post 1150392)
Well, you can simply go into the Admin CP > Usergroup Manager and manually modify each usergroups allowed size for that code particularly. Just quickly change it from 7 to 4 for any usergroups you want to abide by that (probably only registered users), and you're good!

I think that only has settings for Signature limitations.

Lynne 04-12-2008 06:21 PM

Have you tried manually removing it from the file /clientscript/vbulletin_textedit.js? It is defined around line 1888:
PHP 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 
'';
                }
            } 

Remove the cases you don't want to allow or set them to the font size you want.

(warning: I haven't tried this myself. I'm just assuming it should work.)

oldengine 05-16-2008 10:20 PM

Tried that and it didn't prevent [SIZE=7 ] command. Everything worked as before.

Removed case"18pt":return 5;case"24pt":return 6;case"36pt":return 7;


All times are GMT. The time now is 07:56 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.00955 seconds
  • Memory Usage 1,726KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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