vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   [HowTo] [BB Code] [3.0.0] [fieldset]boo[/fieldset] (https://vborg.vbsupport.ru/showthread.php?t=88930)

Floris 04-11-2004 10:00 PM

[HowTo] [BB Code] [3.0.0] [fieldset]boo[/fieldset]
 
[HowTo] [BB Code] [3.0.0] [fieldset]boo[/fieldset]

On-line manual on how to add a new custom bb code: Custom BB Codes


Here is the code that I use:

Code:

<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:

[fieldset=title]content[/fieldset]

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



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/...05&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, but haven't found anything. Would this be possible to reproduce in vB?

Thanks.

Diva 04-16-2004 05:36 PM

Quote:

Originally Posted by Oblivion Knight
Heh, I like it so much I've based my spoiler tag around it.. :p

http://www.gamerseuphoria.com/forum/...05&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

Quote:

Originally Posted by Diva
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;
HTML Code:

/* ***** 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:

Code:

<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]Spoiler text[/spoiler]



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.

Diva 04-18-2004 04:09 AM

Quote:

Originally Posted by Oblivion Knight
First off, in your style options find the Additional CSS Definitions block. Then add this at the bottom of it;
HTML Code:

/* ***** 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:

Code:

<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]Spoiler text[/spoiler]



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 ;)


All times are GMT. The time now is 02:18 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
  • Page Generation 0.01033 seconds
  • Memory Usage 1,742KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)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
  • (10)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