How to Change bbcode font sizes in vBulletin
As many people know, The Digital FAQ will rescue forums in danger of disappearing, and generally upgrades them to vBulletin as part of the takeover process. Most also get a complete facelift/redesign. All of the sites we rescue have good content -- but maybe didn't have the best design or design-oriented moderation considerations. On some of the sites we've taken over, users and mods/admins alike would commonly use ridiculous large font sizes on posts, which was really nothing more than hard-to-read digital screaming.
In this example, we'll be replacing font sizes 4,5,6,7 with font size 3, which is the max size we need. For example, the headings below are bolded blue size 3. Plenty large to get the point across (i.e., headings for sections). Step 1 - Add Replacement Variables This takes care of the display/editing of all existing font bbcode on the forum. In the vBulletin admin (aka "admincp", which you've hopefully changed), under the Styles & Templates, is the Replacement Variable Manager. You'll want to add replacements for each font size.
Replacement text: Code:
<div style="margin-top:8px;"></div> Step 2 - Edit vbulletin_textedit.js This takes care of any new posts made on the forum, by editing what font sizes are available in the post editor. In the /forum/clientscript/ folder, edit vbulletin_textedit.js with a plain text editor. Some versions of this file are minified (on a single line), so use the find/search function in the editor. Locate the code this.translate_fontsize=function(csssize), which is the beginning of the full font script section: Code:
this.translate_fontsize=function(csssize) You can simply delete unwanted sizes. In this example, I chose to merely change the size. Both methods work perfectly. And that's it. :) _____________________
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.