![]() |
Improved size bbcode
Improved size bbcode Introduction: Hi mates. This is my first "mod". Not really one as I couldn't do it using plugins etc, but has been working for over a year on my site so it's safe. I'll try to work on the presentation of this thread with time :) Description: This modification indicates how to change the default vbulletin html of the [size] bbcode and gives more than 7 size options to users. Why?: Good question. I moved from phpbb to vbulletin and preferred the old one better, so I modified vbulletin :) Note, when you are importing using Impex, from other forum plataforms some lines need to be edited to avoid a conversion to the vbulletin system. WARNING: If you follow this modification in a forum using the default vbulletin bbcode, applying this hack will make all the [size=X]text[/size] very small. Create a new bbcode instead (instructions given bellow) Installation information on hack:
// This bit changes the core of vbulletin, and how this bbcode is parsed 1.--- Open /includes/class_bbcode.php with your favorite text editor 1.1- Go to line ~2249 (in 3.6.10) or search for "// [SIZE=XXX]" 1.2- reemplace PHP Code:
PHP Code:
// This bit will make the popup menu in the reply etc boxes 2.--- Open /clientscript/vbulletin_textedit.js with your favorite text editor 1.1- Find and reemplace PHP Code:
PHP Code:
// This step will make it go life in your forums 3.--- Upload the files // This bit will change the numbers in the text editor popup menu to new and more usefull numbers 4.--- Go to your admincp 4.1- Styles & Templates > Style Manager > All Style Options > (down at the very end) Toolbar Menu Options change the default set of numbers (1, 2, 3, 4, 5, 6, 7) with for example (5, 7, 11, 13, 15, 17, 20, 25, 30) 4.2- Save 4.3- Repeat for all mother styles ^^ Your done :D Instalation, using a separate bbcode: (You don't need to use this bbcode if you have installed the above modification) 1.--- AdminCP > Custom BB Codes > Add New BB Code (optional names really) 1.1 -- Title: Improved Size 1.2 -- Tag: bsize 1.3 -- Replacement: <span style='font-size: {option}px;'>{param}</span> 1.4 -- Example: [bsize=25]Bigger[/bsize] [bsize=15]Not as big[/bsize] [bsize=7]Small[/bsize] 1.5 -- Example: [bsize=25]Bigger[/bsize] [bsize=15]Not as big[/bsize] [bsize=7]Small[/bsize] 1.6 -- Use {option}: Yes Uninstall: Reupload original files /includes/class_bbcode.phpRevert the size box in the modified templates :) FAQs
|
thanks for releasing this...can be useful later...
;) |
All times are GMT. The time now is 02:45 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|