Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Various Unusual BB Code (and Definition List) Details »»
Various Unusual BB Code (and Definition List)
Version: 1.5, by cheat-master30 cheat-master30 is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.6.x Rating:
Released: 06-22-2007 Last Update: Never Installs: 23
 
No support by the author.

This modification is not a modification in the sense it requires actual template modifications, but nor is it an add on product in that it uses what is already in vBulletin, as in the BB code manager. This is simply a collection of BB code for features not found online often, and that use standards compliant, semantic code to add curious codes that may come in handy sometimes.

Updates:

1.9- Thanks to a contributor, I added editor buttons for most BB codes.1.8- Added strike through BB code.
1.7- Added a new code (definition) which looks awesome.
1.6- Tried a new code (Internet Explorer only, see post 3.

1.5- Updated Definition List codes. New one allows infinite child items and is perfectly XHTML valid. Also has bold headings.

1.4- Added glossary link code and blink code (plus instructions on how to block blinking text in Firefox

1.3- Forgot to add css for overline in second post.

1.2- Added some other sites to the search link code

1.1- Added horizontal rule and Spoiler code

1.0- Release BB Code

Support:

None needed

Notes:

Works in any version with custom BB code as an option. Tested in vBulletin 3.6.4, 3.6.5, 3.6.6 and 3.6.7 PL1.

Definition List

This allows users to insert a definition list in their posts, and when used with the definition entry BB code, has a wide range of uses.

Code to use:

Code:
[Definition]
Replacement:
Code:
<dl>{param}</dl>
Example:

Code:
[Definition][Defineobject=PHP]A scripting language used for interactive features such as forums online[/Defineobject][/Definition]
Description:

Use this to insert the definition titles and actual definitions.

Definition Entry (only use with definition list)

Code to use:

Code:
Defineobject
Replacement:

Code:
<dt><b>{option}</b></dt>
<dd>{param}</dd>
Example:

Code:
[Defineobject=PHP]A scripting language used for interactive features such as forums online[/Defineobject]
Description:


Use this to add more definitions to a definition list.

Heading

Use this to add heading tags of types 1 to 6 in posts. Semantic titles without using bold formatting or italics and that show the level of heading to screen readers and the like.

Tag:

Code:
h
Replacement:

Code:
<h{option}>{param}</h{option}>
Example:

Code:
[h=1]This is a heading[/h]
Description:

Use this to insert a semantically correct heading into the document by modifying the text you want made into a bold, large heading. This is good semantics for headings in guides and FAQs.

Google Search:

Use this to link to Google for the specified term. I also attached a modified one which replaces Google with Ask Jeeves. Can also be used for any search engine online if you know how to edit the code.

Tag:

Google


Replacement:


Code:
<a href="http://www.google.com/search?hl=en&q={param}">{param}</a>
Example:

Code:
[google]Nintendo[/google]
To use with Ask Jeeves, use this replacement for the replacement part in BB code manager:

Code:
<a href="http://uk.ask.com/web?q={param}">{param}</a>
For Wikipedia, use this for the replacement:

Code:
<a href="http://en.wikipedia.org/wiki/{param}">{param}</a>
To use Lycos, use this for a replacement:

Code:
<a href="http://search.lycos.com/?query={param}&x=0&y=0">{param}</a>
To use Yahoo, use this as a replacement:

Code:
<a href="http://search.yahoo.com/search?p={param}&fr=yfp-t-501&toggle=1&cop=mss&ei=UTF-8&vc=&fp_ip=UK">{param}</a>
To use the Internet Archive, use this as a replacement:

Code:
<a href="http://web.archive.org/web/*/{param}">{param}</a>
You can use each one as a different code if you wish.

Right to left

Changes text direction.

Tag:

rtl

Replacement:

Code:
<bdo dir="rtl">{param}</bdo>
Example:

Code:
[rtl]This is weird[/rtl]
Description:

Turns the text from the right to left rather than left to right.

Sub Script

This is explanatory in the name.

Tag:

sub

Replacement:

Code:
<sub>{param}</sub>
Example:

Code:
[sub]test[/sub]
Description:

Make text that floats slightly below the main text.

Sup Script

Tag:

sup

Replacement:

Code:
<sup>{param}</sup>
Example:


Code:
3[sup]3[/sup]
Description:

This is for text floating slightly above, like how the 3 floated up and to the right of a number shows that it is cubed.

Horizontal Line


Tag:

hr

Replacement:

Code:
<hr /><p>{param}</p>
Example:
Code:
[hr]text[/hr]
Description:

Use this to insert a horizontal line into your post with your highlighted content below it.

Note: The text between goes in the p tags under the line.

Spoiler Tag

Tag:

spoiler

Replacement:
Code:
<span class="Spoiler">{param}</span>
In CSS, add:
Code:
.Spoiler {background: white; color: white; outline: 1px solid black;}

Example:


Code:
[spoiler]There is a Shroob Princess in the Cobalt Star in Mario and Luigi 2[/spoiler]
Description:

You can use this to hide spoilers in games, movies and from TV shows by turning the text the same colour as the background.

Blinking Text

Tag:

blink

Replacement:

Code:
<span style="text-decoration: blink">{param}</span>

Example:


Code:
[blink]text[/blink]
Description:

This allows you to have blinking text.

To disable blink in Firefox if favourite forums implements above code:

Type in about:config then set browser.blink_allowed so the value is false. No more blinking text.

Glossary Category Link:

Tag:

Glossary

Replacement:

Code:
<a href="glossary.php?do=listglossary&c=1&ltr={param}&pp=0">{param}</a>
Example:

Code:
[glossary]A[/glossary]
Description:

Use this to link to a glossary category.

Definition

Tag:

def

Replacement:

Code:
<dfn title="{option}">{param}</dfn>
Add in CSS:

Code:
dfn {font-weight: bold; background: gold; cursor: help; }
Example:

Code:
[def=A popular games company]Nintendo[/def]
Description:

Use to post definitions, without a list, in your posts or signatures.

Strike Through

tag:

strike

Replacement:

Code:
<span class="linethrough">{param}</span>
in CSS:

Code:
.linethrough {text-decoration: line-through; }
Example:

Code:
[strike]Line is crossed out[/strike]
Description:

Use this to cross out words in a post. Or sentences. Or paragraphs.

Supporters / CoAuthors

Show Your Support

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

Comments
  #42  
Old 03-25-2008, 04:33 AM
legionofangels's Avatar
legionofangels legionofangels is offline
 
Join Date: Mar 2007
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried both definition codes, neither of them worked for me. Most likely suggesting I'm doing something wrong. Too bad, cuz it's an awesome concept.

Don't understand, I basically copied them verbatim, I guess I didn't understand you're opening message so well. I tried to add them to the BB code manager, and that didn't work in the layout you gave. Are we missing code, or should I be putting this in a template or something?
Reply With Quote
  #43  
Old 04-02-2008, 02:14 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

Works fine for me.
Reply With Quote
  #44  
Old 05-04-2008, 03:56 PM
legionofangels's Avatar
legionofangels legionofangels is offline
 
Join Date: Mar 2007
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cheat-master30 View Post
Works fine for me.
When you say above Use with Definition List, does that mean I have to have both codes installed, or that the only way the Definition will work is if I also use the Definition List BB Code at the same time.

Meaning like a combination of 2 BB codes just to get one to work?

Meaning in example, Bold + Italic, it won't be italic unless you use bold as well: Bolditalic
Reply With Quote
  #45  
Old 11-20-2008, 05:44 PM
troybtj troybtj is offline
 
Join Date: Apr 2007
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

These work great.

I'm looking for varieties of editor icons/buttons for superscript, subscript, and the background image one above. I am using screencapped ones from openoffice right now, but can't think what to use to show the "background image" tag in the post above.

Thanks!
Reply With Quote
  #46  
Old 07-24-2009, 10:10 PM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cheat-master30 View Post
Lower Case Text

This turns all text within tags to lower case.

Tag:

lowercase

Replacement:

Code:
<span class="lower">{param}</span>
Put this in your CSS stylesheets:

Code:
.lower {text-transform: lowercase; }
Example:

Code:
[lowercase]THIS IS TEXT![/lowercase]
I'm getting nothing with this. Any idea why ?

I'm trying to use this as a moderation tool for those shouting anoying guys that time to time got into our boards. This would make easier to edit shouting posts and put it everything to lower case.
Reply With Quote
  #47  
Old 07-30-2009, 11:35 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

I'm surprised by you not getting anything. Can you post a link to your forum so I can check what the problem might be?
Reply With Quote
  #48  
Old 08-03-2009, 12:59 PM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it working. In fact on text window on admincp it doesn't work, still shows original text (all upper case) but I just tested directly on posts, it works great.

Thank you
Reply With Quote
  #49  
Old 08-03-2009, 10:46 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

That's probably because the admin cp uses different templates and CSS than the forum, it might work if you were viewing the admin cp with the vBulletin 3 forum inspired admin cp style rather than one of the admin cp exclusive ones.

I should probably release another one of these collections for 3.8 now I think about it...
Reply With Quote
  #50  
Old 08-05-2009, 12:34 PM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's correct cheat-master30, I'm on 3.8.3 and those BB codes work great on posts but the admincp, anyway it does the job very well.

Thx
Reply With Quote
Reply


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 06:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07809 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
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
  • (40)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete