Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
[BBCODE] border Details »»
[BBCODE] border
Version: 1.00, by chrslp chrslp is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.8.2 Rating:
Released: 05-16-2009 Last Update: Never Installs: 22
Re-useable Code Translations  
No support by the author.

First post; not sure about the format:

I searched for a decent BBcode in which gave me a border around the text.. just a simple border; nothing fancy.. nothing that is pure trash and confusing the user, just something to make the post purty.. well after a while and some help in the right direction from Lynne

Title: Border

BB Code Tag Name: Border

Replacement:
<div style="border: 2px ridge #F4E673; padding: 5px;">{option}<hr>{param}</div>

Example:
[border= title or nothing if you want] body goes here; doesnt affect the layout [/border]

Description:
This gives the user a golden border around the text which also allows for a header above the section

Use Option: Yes
Disable if tag not used: Yes
Rest of them: no

Demo: Here



Extra info: if i get any requests to make a button image for it; ill do it- but i dont have it readily available on this computer.

Your Support
I dont care how you do it; just dont say its your when you know you got it from here =)

Screenshots

File Type: jpg borderexample.jpg (43.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-20-2009, 06:26 PM
chrslp chrslp is offline
 
Join Date: Jan 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad y'all are enjoying it; and yes there has to be at least a = sign, i usually just add a space after it just to be sure.
Reply With Quote
  #13  
Old 11-22-2009, 10:36 PM
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did it like this:
Code:
<div style="border: 2px ridge #CC0000; padding: 5px;">{param}</div>
Obviously you can change the color and the border thickness and style
then all you need is:
Code:
[border]text or whatever[/border]
Reply With Quote
  #14  
Old 12-18-2009, 07:11 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, although I changed the style in the tag to a class and put the CSS bit in the stylesheet.
Reply With Quote
  #15  
Old 12-18-2009, 08:59 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice installed,,

PS "use option" should be No..
then you dont have to add = to [border]

thats only if you want to add special features maybe let the user control border color.

then you would use this code
Code:
<div style="border: 2px ridge #{option}; padding: 5px;">{param}</div>
and the bbcode will be
Code:
[border=ff0000] this makes a red box[/border]
I added both exsamples on screenshot

Attachment 107727
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:22 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.04659 seconds
  • Memory Usage 2,257KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete