|
|
Custom Bbcode Tags In Smf - adding extra tags in a Simple Machines Forum | ||
Discussion by brandice with 0 Replies.
Last Update: March 11, 2006, 9:02 am | |||
![]() |
|
|
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:
The first part is the name of your tag. In this case, users will need to type [googleimg]cowboy monkey[/googleimg] 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:
In this case, anything within the [hmmmm] tags will be in large blue letters with an orange background a dotted border.
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:
CODE
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]cowboy monkey[/googleimg] 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:
CODE
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.
Similar Topics:
Creating A Custom Php Login Script
Creating And Promoting An Online Fo...
How To Parse Bbcode/scripts
I am planning to make a parser for BBCode and templating scripts. I am guessing I will be doing this in php as it is the most widely available language available for web right now. I am wondering if anyone has some advice on how I should structure this as to make it easier on myself. The thing is, w ...more
[photoshop] Fire Tutorial Making fire out of filters... (11)
|
(7) Creating A Simple Image Viewer Using Visual Basic 2005 Express Edition
|
Loading...
HOME 






