Perennially Sane

BBQuote

3 comments
Tags:

I just made a little extension for Drupal that makes nicer quotes than the ones generated by the BBCode module. This one takes the IPB layout (including, incidentally, the corresponding IPB images, which is why I won't make the module publically available yet) for quotes and formats quotes according to that.

The design is also better than the standard BBCode in a few ways - for example, it checks (supposedly) for broken tags, so that an extra closing tag or an unclosed tag at the end will be left unparsed.

That part of the module doesn't quite work yet, so for now I have to make sure the tag tree is coherent myself.

[quote author=Arancaytar date=yesterday url=http://arancaytar.ermarian.net email=arancaytar.ilyaran@gmail.com]
This is a test quote.
[/quote]

Other than that, it works beautifully.

Updated

This module was in many ways a precursor to my work on XBBcode. Since then, it has been replaced with a far leaner module that merely hooks into the XBBcode API to provide the same tag it did before.

--
Arancaytar

And oddly, though Bloglines

And oddly, though Bloglines strips out the quote, it still registers that the date at the top of the quote has changed, so it marks the post as having been changed, every single day. Smile

Whoops.

Yes, there's a problem with allowing relative times in the quote date ("today", "now"). Namely, whenever the filter is re-run, the date is recalculated. And there is no way to store the calculated date, due to the way filters work.

I need to get rid of the relative times, I guess.

--
Arancaytar

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may use these tags: [abbr], [acronym], [b], [center], [code], [color], [cpp], [css], [define], [diff], [dtd], [font], [h3], [h4], [h5], [h6], [hr], [html], [i], [img], [java], [javascript], [justify], [left], [list], [mysql], [node], [ol], [perl], [php], [python], [quote], [right], [s], [sh], [size], [sql], [sub], [sup], [table], [u], [ul], [url], [wikipedia], [xml]
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Easily link to terms in various wikis. For help, see <a href="/interwiki/3">interwiki</a>.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Syndicate content
Powered by Drupal, an open source content management system

eXTReMe Tracker