vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - BBCode: [fieldset] (https://vborg.vbsupport.ru/showthread.php?t=117936)

TPOCJames 08-02-2006 07:01 AM

Screenshots?

cheesegrits 08-02-2006 05:35 PM

Quote:

Originally Posted by TPOCJames
Screenshots?

Attached should be an example screenshot. I'm using "Preview Post", so you can see the final result in the top half, and the BBCode's themselves in the bottom half.

-- hugh

Floris 08-02-2006 05:49 PM

Quote:

Originally Posted by cheesegrits
Attached should be an example screenshot. I'm using "Preview Post", so you can see the final result in the top half, and the BBCode's themselves in the bottom half.

-- hugh

Thank you for contributing to this thread ! :)

cheesegrits 08-02-2006 06:31 PM

Floris,

Quote:

Originally Posted by Floris
Thank you for contributing to this thread ! :)

No problem. Like i said in my first post, this is one of the best "value for time" mods I've ever applied. 5 minutes work gets us a very useful stylistic addition to WYSIWG'ing our posts. And anything I can do to encourage people to install this is my way of saying Thank You. Heck, I'd like to see them add this bbcode to vborg itself.

One question ... is there any way we can constrain the width of the fieldset, rather than it automatically assuming X% of the width of the containing object?

For instance, if I use it to provide a fieldset frame for a thumbnail with some descriptive text, like this:

Attachment 51409

... which is fine, only I'd like to have the fieldset wrap around just the content, with a little padding, without stretching right across the post.

I'm probably being lazy here. I'm sure if I dug aorund I could find if there are any other options that can be given to the fieldset tag. But I was hoping you might just have that info in your short term memory cache. :D

-- hugh

y2krazy 08-25-2006 11:49 PM

Installed and modified. :D

This is actually as close to an exact copy as I could make of the "fieldset" used in the MEMBERINFO template:

Code:

<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0"><tr><td><fieldset class="fieldset"><legend>{option}</legend><table cellpadding="0" cellspacing="3" border="0"><tr><td>{param}</td></tr></table></fieldset></td></tr></table>
Of course, you can paste the following to include the optional step (don't forget to modify the CSS properties in your specific style):

Code:

<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0"><tr><td><fieldset class="bbfieldset"><legend class="bblegend">{option}</legend><table cellpadding="0" cellspacing="3" border="0"><tr><td>{param}</td></tr></table></fieldset></td></tr></table>
The [FIELDSET] BB Code can still be centered by using the [CENTER] BB Code, so there was no need for me to keep align="center". I removed the width="90%" from the code as well because with my version, it will just have the spacing outside of what the {param} is. IMO, this is a better code as it retains much of the vB code for a fieldset. Enjoy! :)

SCS_Rocket-Devi 08-27-2006 12:14 PM

Installed, Thanks :)

Senn 08-27-2006 01:09 PM

Works perfect. Thanks!

blankoboy 08-28-2006 08:19 AM

Nice bb code mod Floris! I a question, is possible to have a the editor pre-populate with specific bb codes when a user goes to make a new post?

I am creating a review site and I would like to encourage users to follow a set format similar to the fieldset.

Snake 08-30-2006 04:03 PM

Thanks for the hack! I'll install it right away... :)

E.Blackadder 09-02-2006 04:51 PM

this looks great...just one minor aesthetic point though..

in the [fieldset=hello]fieldset![/fieldset]....if you look at the finished article the border comes to within one space of the 'H' in hello, but at the end of 'hello' there is no space at the end of the 'o' how do I ballance the appearance of the border?

cheers folks.


All times are GMT. The time now is 01:55 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.01200 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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