Tables and Avatars...

Post #: 53
Date: 2012-11-02 23:27:05.000
Author: Rocket Man

A couple of additions today...

First, a Table function that prints some nicely-formatted HTML tables.

(display-table list-of-headers nested-list-of-data "optional form styling")

striped - alternates rows in grey
bordered - adds borders and rounded corners to the table
hover - enables hover state on table rows when mousing over
condensed - more condensed style of table

This is a neat way of displaying tabular data in a pretty way, just by passing in lists.

The other thing is that I've changed the formatting of comments to include user avatars to the left of each comment. Unfortunately I didn't have time to get avatar uploading working. That will have to wait for next week!

Rocketeer on 2012-11-02 23:43:57.000

Uhm, no example?

Rocket Man on 2012-11-03 01:26:07.000

It's for making tables in the page itself, there's no UBB code to put it in posts.

Rocket Man on 2012-11-03 01:30:49.000

There is an example on the profile page but only I can see it. :) I'll probably make a proper member list page somewhere viewable by any registered user.

Rocket Man on 2012-11-15 23:47:35.000

Okay the new Forum section is probably the best example of using my (display-table) function now...

View this post in the forums

Views: 2951