Jump to content
xisto Community
brandice

Custom Bbcode Tags In Smf adding extra tags in a Simple Machines Forum

Recommended Posts

Adding custom BBCodes to your Simple Machines Forum is really very... simple. First, you will need to download three mods from the package manager. Faster Parsecode, ModSettings Textarea, and of course Custom BB Code.

Once you have those mods set up you will need to go into your admin section and click on your "Edit Features and Options" link. In the Basic Forum Features section you will now find a "Custom BB Code tags" box. This box is where you will put your custom codes. You can add as many as you like, one per line.

Let's break down the bits of a simple tag that will allow users to link to a google image search. This is what you would put in the text box:

googleimg <a href="http://images.google.com/images?q=$1" target="_blank">$1</a>


The first part is the name of your tag. In this case, users will need to type [googleimg]http://forums.xisto.com/no_longer_exists/404.png'>http://forums.xisto.com/no_longer_exists/404.png monkey[/googleimg]http://forums.xisto.com/ to see a link to pictures of cowboy monkeys.

Next, there is a space and then the html code. The '$1' is the "wildcard" and will be replaced in the final outcome with whatever the user types between the tags.

You can also add css into the mix. Here is a very tacky example:

hmmmm <span style="text-align: center; background-color: #FA3E00; color: #386AFF; border: dotted 2px #f2f2f2; font-size: 18px;">$1</span>

In this case, anything within the [hmmmm] tags will be in large blue letters with an orange background a dotted border.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.