PDA

View Full Version : Question on Custom BB Codes


BBH
01-17-2007, 06:39 PM
Hi guys and gals,

I am running a small union forum using 3.6.x and I am trying to create some BB Codes to allow users to build tables within posts. I tried building three codes:

{param}
to echo <table border="1"> where {option} is the 1 or what ever they want...

{param}
to echo "<tr>"

{param}
to echo "<td>"

My thought was I could 'nest' these BB Codes to echo more complex HTML like a table; but the Admin CP will not accept these inputs. The "Replacement" block just shows the BB Code tags and does not show the HTML I'm trying to use.

I was sucessful with a text highlighter that works like this:

{param}

<span style="background-color: rgb(255, 255, 102);">Highlighted Text</span>

I'm new, so don't be too hard on me please. I have looked for a general questions forum and am not finding one. If this post belongs elsewhere, please feel free to move it.

BB

caliman
01-18-2007, 03:13 PM
In case you didn't know, there already is a table BB code mod. I use it. It's pretty good. Check it out if you haven't seen it.