Where you post!
FS#4 - [char] [/char] tag
Attached to Project:
Forums
Opened by Mari (mari) - Wednesday, 18 November 2009, 19:06 GMT-8
Last edited by Mari (mari) - Wednesday, 19 September 2012, 16:33 GMT-8
Opened by Mari (mari) - Wednesday, 18 November 2009, 19:06 GMT-8
Last edited by Mari (mari) - Wednesday, 19 September 2012, 16:33 GMT-8
|
DetailsAdd a BBCode tag [char] which will allow users to designate a block of text as a certain character. Usable for DB and non-db characters.
[char=19] It was a beautiful Monday morning, and Mari didn't want to get out of bed...[/char] spits out: <b><a href="../cd/viewchar.php?char=19">Marilyn Mosey, Gryffindor 7th Year</a></b> It was a beautiful Monday morning, and Mari didn't want to get out of bed... whereas putting [char="Anani The Tigress"] Anani kicked a little ass and took at least two names. [/char] spits out: <b>Anani The Tigress</b> Anani kicked a little ass and took at least two names. |
This task depends upon

Can't be done with existing BBCode interface, as it requires the retrieval of information from the database. (Straight BBCode implementation is just as an HTML replacement.) Most obvious option requires edits to BBCode processing engine, to additionally do [char] processing.

Should be able to be done as I described above, looking at bbcode.php. If I can do it nicely, and not wholly kludgishly... this we will see. bbcode.php already has db access and templating for bbcodes. HOWEVER, is a full of regex and complex logic that nobody commented (q.q) so it's "wading through nonsense and undocumented flags" time.