Logged Out
Create an Account
Login:
Password:

Forgot your password?
How to enable [list] tag, and [*] subtag?

How to enable [list] tag, and [*] subtag?
[Back to Index]
Thread Tags
Primary: [General]
Secondary: None

I have a wow mod that is designed to create raid exports, for easy posting to forums.

This mod generates output similar to:

Boss kills:
[list]
[*]Attumen the Huntsman at 9/10/2008 21:17:53
[*]Moroes at 9/10/2008 21:40:16
[*]Maiden of Virtue at 9/10/2008 21:59:12
[*]Opera Event (Big Bad Wolf) at 9/10/2008 22:22:03
[*]The Curator at 9/10/2008 22:52:01
[/list]

How can i train the Dkpsystem forums to understand this format? Of special note is how this mod does NOT generate closing tags for the list items

You'll want to create custom BBCode tags in your forum.

In the admin section under Forum, there's a Custom BBCode option. You will want to create 3 rules - one for each item

Rule 1: (converts the [list] tag)

Tag Name: List open

Regular Expression Search String: /\[list]/i
Replacement test: <ul>


Rule 2: (converts the [/list] tag)

Tag Name: List close

Regular Expression Search String: /\[\/list]/i
Replacement test: </ul>


Rule 3: (converts the [*] tag)

Tag Name: List items

Regular Expression Search String: /\[\*]/i
Replacement test: </li>



That should do it. Also, you need to add a description to each rule as well.

As an answer to your special note: For some reason li tags don't need closing tags - and this is according to the W3C standard for html


Nice job there, KBman.

I'd like to further expand on his last one, where you can actually include the </li> tag.

If you do this as the regular expression:

/\[\*](.*)/

And this as the replacement text:
<li>$1</li>

This would take it to the end of the line (assuming your list items are single-lined)


--
It's all in the reflexes.
Thanks for the help! This worked great!!!


[Back to Index]