Michael Morris
07-31-2004, 08:46 AM
Hello everyone. I'm trying to figure out how to write a hack that allows users to construct tables. My board is one games - d20 and D&D in particular - and the users often need to display tables of varying sizes.
To date they've been told to use the code tag to and space the things out, but this a bit time consuming and frankly doesn't look nice.
I've been thinking such a tag would be similar to the {list} tag in function except that vbulletin would have to count how many items it's been given. For instance
{Table=3} would start up a table with three columsn
{*} First item, would show on row one, colum one
{*} Second item, would show on row one, colum two
{*} Third item, would show on row three, colum three
{*} Fourth item, would show on row one colum one
{/table}
If the user forgot to put in a fifth and 6th item vbulletin would put however many <td>space</td> entries that would be necessary.
Anyway, I'm gonna work on this, but I could use help if anyone has any ideals on how to do this.
To date they've been told to use the code tag to and space the things out, but this a bit time consuming and frankly doesn't look nice.
I've been thinking such a tag would be similar to the {list} tag in function except that vbulletin would have to count how many items it's been given. For instance
{Table=3} would start up a table with three columsn
{*} First item, would show on row one, colum one
{*} Second item, would show on row one, colum two
{*} Third item, would show on row three, colum three
{*} Fourth item, would show on row one colum one
{/table}
If the user forgot to put in a fifth and 6th item vbulletin would put however many <td>space</td> entries that would be necessary.
Anyway, I'm gonna work on this, but I could use help if anyone has any ideals on how to do this.