Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Custom Bbcode Tags In Smf, adding extra tags in a Simple Machines Forum
brandice
post Mar 11 2006, 05:02 PM
Post #1


ointment!
*********

Group: Members
Posts: 542
Joined: 2-September 04
From: Bat Country
Member No.: 980



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:

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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. HTML tags and examples(37)
  2. Custom 404 Error Pages(17)
  3. How To Create A Phpbb Fm(52)
  4. Making Winrar Archives(12)
  5. Phpbb Forum Site Transfer(20)
  6. Pet/animal Care Forum(18)
  7. Change / Modify The Title Bar Text In IE6 Or FF(3)
  8. How To Set Up A Phbb Forum On A Simple Page.(4)
  9. Installing A Phpbb2 Skin(5)
  10. Script To Build A List Of Links(2)
  11. Putting A Signature On The Forum(35)
  12. How To Install An Openoffice Dictionary Manually(3)
  13. Tutorial: Creating Custom Icons For Devices(0)
  14. Embedding Videoclips Into Pbpbb/nuke Forum Posts(0)
  15. Install A Simple Machines Forum(11)
  1. Getting Free Cokes(11)
  2. Adding Data To A Database And Displaying It Later(1)
  3. Adding Your Website To Google(20)
  4. Aef Forum Modifications(2)
  5. How To Create Forum Smilies(3)
  6. How To Make A Decent Forum(8)
  7. Adding An Aef Forum To Snews Cms(2)
  8. Install An Aef Forum Onto The Trap17(11)
  9. How To Setup A Website After Your Forum(3)
  10. Invisionfree Skin How-to Put On Your Forum(0)
  11. Add Flashing Inbox To Invisionfree Forum(0)
  12. Adding Flash Music Player To Home/any Page(4)
  13. Azurian Skin(0)


 



- Lo-Fi Version Time is now: 25th July 2008 - 09:44 AM