vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   BB Code Enhancements - Various Unusual BB Code (and Definition List) (https://vborg.vbsupport.ru/showthread.php?t=150454)

cheat-master30 07-14-2007 10:22 PM

I'll see later.

scudd 07-15-2007 12:08 AM

ok, good luck..

cheat-master30 07-15-2007 11:59 AM

Just added strike through BB code. Because someone requested it in 'Modification not Available' forum. I know, should have been in the mod in the first place...

Dismounted 07-15-2007 12:19 PM

Just a suggestion, you should use inline styles rather than creating classes. Saves the need for an extra step.

cheat-master30 07-15-2007 01:36 PM

Quote:

Originally Posted by Dismounted (Post 1291747)
Just a suggestion, you should use inline styles rather than creating classes. Saves the need for an extra step.

The only reason I do that is because I am a very much standards purist when it comes to separating presentation from content. And because I also use external CSS, it saves a few KB of bandwidth seeing as the presentation for custom BB codes is cached already rather than re-loaded with every page.

You can tell this from my site; every page outside the forum is generally under 10KB in size. And all images are micro managed to the KB.

cheat-master30 08-27-2007 10:21 AM

Added a ton of button images, provided by a contributor.

Majest 08-28-2007 10:45 PM

I wonder, is it possible to make a bbcode that allows columns? Like having two columns next to one another with text and/or images in them?

cheat-master30 08-28-2007 11:10 PM

That's a table. And there's already a mod for that here:

https://vborg.vbsupport.ru/showthrea...ighlight=table

I use it myself.

AllenSam 09-09-2007 11:31 PM

Here are some cool ones I put on my board:

Background Image
Code:

Tag: bgimg

Replacement:
<table border="0" style="background-image:url({option}); background-position:top; background-repeat:no-repeat;"><tr><td>{param}</td></tr></table>

Example: [bgimg=urltoimage]Message[/bgimg]

Puts an image in the background of the text.


Border
Code:

Tag: border

Replacement:
<table border="0" style="border-color:#7282A9; border-width:thick; border-style:{option}; padding:0;"><tr><td valign="middle">{param}</td></tr></table>

Example: [border=outset]Message[/border]

Puts a border around the message. Options: dotted, dashed, solid, double, groove, ridge, inset, outset

Hover
Code:

Tag: hover

Replacement:
<span onmouseover="this.innerHTML='{option}'" onmouseout="this.innerHTML='{param}'">{param}</span>

Example: [hover=Hovering]Hover[/hover]

Changes the text when you hover the mouse over it.

Click
Code:

Tag: click

Replacement:
<span onclick="this.innerHTML='{option}'" onmouseout="this.innerHTML='{param}'">{param}</span>

Example: [click=Clicked]Click[/click]

Changes the text when you click it.

Hold
Code:

Tag: hold

Replacement:
<span onmousedown="this.innerHTML='{option}'" onmouseup="this.innerHTML='{param}'">{param}</span>

Example: [hold=Holding]Hold[/hold]

Changes the text when you click and hold down on it.

Hide
Code:

Tag: hide

Replacement:
<!--{param}-->

Example: [hide]Hide[/hide]

Hides the text so it can only be seen when editing the post. (Good for leaving comments in posts that various admins/mods will be editing.)



Also, for Blink, you can just use
Code:

<blink>{param}</blink>
. It doesn't work on IE, but neither does your method.

cheat-master30 09-13-2007 03:07 PM

Nice code. Oh, and the blink code does not work because Internet Explorer has NEVER supported any variant of it, just like how Netscape browsers never supported Marquee as it was Internet Explorer only code.


All times are GMT. The time now is 06:14 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.01083 seconds
  • Memory Usage 1,739KB
  • 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
  • (7)bbcode_code_printable
  • (1)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