Using vB Codes and smileys
What are vB codes?
vB codes are what vBulletin calls Bulletin Board codes (BBcodes). These are present on just about every forum. Since raw HTML is disallowed on the forums, vB codes are used for formatting, links, images, etc. This post demonstrates how to use vB codes (If you know how, it also demonstrates how to post vB codes without applying them ;))
Basic formatting:
[b]Bold[/b]
[i]Italic[/i]
[u]Underline[/u]
[font=Fontname]Times New Roman[/font]
[size=x]Size 4[/size]
[color=name] or [color=#rrggbb]Custom font colouring[/color]
[highlight]Bold red text[/highlight]
[hl]Yellow highlighted text[/hl]
[hl=name] or [hl=#rrggbb]Custom colour highlighted text[/hl]
[sub]Subscript[/sub]
[sup]Superscript[/sup]
Alignment:
[left]Left aligned[/left]
[center]Centred[/center]
[right]Right aligned[/right]
Indentation and lists:
[indent]Indented[/indent]
[list]- [*]List item
- [*]Another list item
- [list]Sub-list
- [*]2nd sub-item[/list]
[/list]
[list=a]- [*]blah
- [*]blah
[/list]
[list=i]- [*]blah
- [*]blah
[/list]
[list=1]- [*blah
- [*]blah
[/list]
[col=1]Something
[col=2]Something else
[/col] | [/col] |
Inline images:
[img]http://www.imageurl.com/image.xxx[/img]
Hyperlinks:
[url]http://www.hyperlink.com/page.html[/url]
[url="http://www.hyperlink.com/page.html"]Link text[/url]
Code tags:
[code]
Code:
long __stdcall CallByAddress(long lpfn, int arg1, int arg2)
{
fnptr function = (fnptr) lpfn;
return function(arg1, arg2);
}
[/code]
[vbcode]
VB Code:
Public Sub vpoint( _
ByRef pPoint As POINTL, _
ByVal lX As Long, _
ByVal lY As Long _
)
pPoint.X = lX
pPoint.Y = lY
End Sub
[/vbcode]
[html]
HTML Code:
<head>
<title>Penagate</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta name="robots" content="index, follow" />
</head>
[/html]
[php]
PHP Code:
$classes = get_declared_classes();
foreach ($classes as $class) {
if (in_array('Template', class_implements($class, false))) {
$this->Templates[$class] = new $class();
}
}
[/php]
Quoting:
[quote][/quote]
[quote=Someone]
Quote:
Originally Posted by Someone
Someone's quote
[/quote]
Write Jupitermedia in pretty text:
[jm]xxx[/jm]Internet.com
Smileys:
:) :)
:( :(
:o :o
:D :D
;) ;)
:p :p
:cool: :cool:
:rolleyes: :rolleyes:
:mad: :mad:
:eek: :eek:
:confused: :confused:
:bigyello: :bigyello:
Re: Using vB Codes and smileys
More smileys:
:wave: :wave:
:lol: :lol:
:blush: :blush:
:cry: :cry:
:ehh: :ehh:
:sick: :sick:
:thumb: :thumb:
:afrog: :afrog:
:eek2: :eek2:
:duck: :duck:
Apparently there is a limit on the number of smileys one can include in a post.
Re: Using vB Codes and smileys
You forgot Canders smileys in the Firefox plug-in ;)
PM him about it. I need to get it too anyways. I also have a plug-in for IE and Firefox to do things like this in VBForums, which I think Cander did as well:
Taste the Rainbow
Re: Using vB Codes and smileys
Re: Using vB Codes and smileys
Re: Using vB Codes and smileys
http://www.vbforums.com/misc.php?do=bbcode
The above link is the vBulletin page for showing the vbCodes.
Re: Using vB Codes and smileys
I moved this thread to feedback because it risked getting deleted in the testing forum.
Re: Using vB Codes and smileys
One other comment --
If including smilies with the image code, you should be aware that if the person that uploaded the image deletes it, then your use of it breaks.
Brad!
Re: Using vB Codes and smileys
I believe the images for the Fx plugin are all posted in a thread in the testing area also (used to be called "Uploaded images for Cander's plugin" or something but NoteMe changed it something like to "Noteme is good, Noteme is the best" :D). So the extra smileys will be there as long as that thread is.
Thanks for moving this thread also :)
Re: Using vB Codes and smileys
Quote:
Originally Posted by brad jones
One other comment --
If including smilies with the image code, you should be aware that if the person that uploaded the image deletes it, then your use of it breaks.
Brad!
I won't delete the attachments Brad. I have worked enough hours with that extension to go and ruin it again..:) As long as no one else deletes the thread though. Guess it should probably be moved to a safer place like the image section. But it is too much CC in the thread. And I don't have the permision to do anything in that section anyway.
- ØØ -
Re: Using vB Codes and smileys
BTW what about the two other types of list?
- list item 1
- list item 2
- list item 1
- list item 2
and what about the col tag?
Re: Using vB Codes and smileys
How is the col tag supposed to be used? I tried, but couldn't get anything more than this:
Re: Using vB Codes and smileys
Well, that is how you use it..:)
Pretty useless without a row tab, and the ability to make the border go away, but at least it is a tag...:)
- ØØ -
Re: Using vB Codes and smileys
Quote:
Originally Posted by NoteMe
Well, that is how you use it..:)
Pretty useless without a row tab, and the ability to make the border go away, but at least it is a tag...:)
- ØØ -
Correct - we stuck that in as a way to get a border. Nothing more. Wasn't really done for public consumption, but more because I wanted it for something. ;)
Brad!