View Full Version : Creating BB Codes from HTML


Floris
25th March 2008, 07:12 PM
Tip of the day : Creating BB Codes from HTML
Original thread (http://www.vbulletin.com/forum/showthread.php?t=264520&goto=newpost) posted on vBulletin.com by : Nick on : 25th March 2008 12:38 AM

Creating BB Codes from HTML]Using HTML to create custom BB Codes.


If you do not have HTML enabled on your board, then you must create a custom BB code to be able to use HTML formatting. This is because most HTML formatting codes do not come as a default BB code.

In this example, we will be demonstrating how to create a Strike-through BB code.

This code can normally be applied via HTML with this code:
HTML Code:
Text here
To create this:
Quote:
http://i80.photobucket.com/albums/j185/nar1122/texthere.png
But that's not a default BB code, so we will create one.

To do this, go to:
AdminCP -> Custom BB Codes -> Add New BB Code

Enter this information in the boxes:
Title: Strike or Strikethrough (whatever you wish to call it).

Tag: strike

Replacement: {param}

Example: Test

Description: {optional text you desire}

Use Option: No

Button Image: Path to the image to be displayed on the toolbar when making a post (optional).

Now you should be able to make a post on your forum, and use this code:
Code:
Text here
to create this:
Quote:
http://i80.photobucket.com/albums/j185/nar1122/texthere.png



vBulletin-Fans.com hopes you learned something from this great tip and if you also have a great tip you can submit it on vBulletin-Tutorials.com here (http://www.vbulletin-tutorials.com/newthread.php?do=newthread&f=591), or on vBulletin.com here (http://www.vbulletin.com/forum/forumdisplay.php?f=109). Don't forget to subscribe to this forum (http://www.vbulletin-tutorials.com/subscription.php?do=addsubscription&f=591) to get daily tips on how to best secure, optimize, manage and operate your vBulletin powered forum.


Floris & Staff
vBulletin Fans Network
http://www.vBulletin-Tutorials.com/