View Full Version : [HowTo] [BB Code] [3.0.0] [fieldset]boo[/fieldset]
Floris
04-11-2004, 10:00 PM
[HowTo] [BB Code] [3.0.0] boo
On-line manual on how to add a new custom bb code: Custom BB Codes (http://www.vbulletin.com/docs/html/bb_code)
Here is the code that I use:
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="2"><tr><td><fieldset><legend>{option}</legend>{param}</fieldset></td></tr></table>
This will let you use:
=title[/i]]content
The =title for {option} is required and not optional. If you don't want to use a title make a new bbcode called [setfield] with the same code without the <legend>{option}</legend> part in it.
Example: thread on vbnl (http://www.vbulletin.nl/community/showthread.php?t=3136)
ENJOY!
Oblivion Knight
04-13-2004, 08:16 PM
Nice.! Thanks for sharing floris.. :)
Floris
04-13-2004, 08:58 PM
I'm glad you like it :)
Oblivion Knight
04-14-2004, 07:17 PM
Heh, I like it so much I've based my spoiler tag around it.. :p
http://www.gamerseuphoria.com/forum/showpost.php?p=2405&postcount=9
(rather sloppy css included, but it works..)
zetetic
04-16-2004, 05:11 AM
Nice mod. I'm looking for something slightly different, though. I'm just coming over from phpBB and trying to find a mod like this one (http://www.forumimages.com/forum/viewtopic.php?t=1574), but haven't found anything. Would this be possible to reproduce in vB?
Thanks.
Heh, I like it so much I've based my spoiler tag around it.. :p
http://www.gamerseuphoria.com/forum/showpost.php?p=2405&postcount=9
(rather sloppy css included, but it works..)
That looks great. I cant quite figure out how you did that. Can you show me?
Oblivion Knight
04-16-2004, 10:18 PM
That looks great. I cant quite figure out how you did that. Can you show me?First off, in your style options find the Additional CSS Definitions block. Then add this at the bottom of it;
/* ***** custom css ~ oblivion knight ***** */
.spoiler { color: #282828; background: #282828; }Replace #282828 both times with your first alternating color background..
Now add this for your custom BB Code;
Title: Spoiler
Tag: spoiler
Replacement:
<div style="margin:20px; margin-top:5px; "><table width="100%" border="0" align="center" cellpadding="6" cellspacing="0"><tr><td><fieldset><legend>spoiler (highlight to view)</legend><span class="spoiler">{param}</span></fieldset></td></tr></table></div>
Example: Spoiler text
The css is required because otherwise the spoiler is shown on the topic review on the "New Reply" screen. I couldn't think of a clearner way to do this, but if there are any suggestions - let me know.
First off, in your style options find the Additional CSS Definitions block. Then add this at the bottom of it;
/* ***** custom css ~ oblivion knight ***** */
.spoiler { color: #282828; background: #282828; }Replace #282828 both times with your first alternating color background..
Now add this for your custom BB Code;
Title: Spoiler
Tag: spoiler
Replacement:
<div style="margin:20px; margin-top:5px; "><table width="100%" border="0" align="center" cellpadding="6" cellspacing="0"><tr><td><fieldset><legend>spoiler (highlight to view)</legend><span class="spoiler">{param}</span></fieldset></td></tr></table></div>
Example: Spoiler text
The css is required because otherwise the spoiler is shown on the topic review on the "New Reply" screen. I couldn't think of a clearner way to do this, but if there are any suggestions - let me know.
Thanks bunches!!!! It looks great. :D
Kirk Y
07-20-2005, 06:03 PM
Oooo.... this is neat.
LEAD_WEIGHT
10-31-2005, 03:43 AM
Need this ;)
Floris
05-25-2006, 08:41 PM
Update:
Version 1.01 has been released for 3.5.x
https://vborg.vbsupport.ru/showthread.php?t=116665
Enjoy!
Floris
06-07-2006, 08:58 PM
Update:
Version 1.02 has been released for 3.6.x
https://vborg.vbsupport.ru/showthread.php?t=117936
Enjoy!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.