Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Board index hookage
« on September 23rd, 2011, 04:39 PM »
Been mulling over how I want to handle customisation of board indexes from Subs-BoardIndex, much as WedgeDesk makes use of, only without having to do the hacking through buffer manipulation to rewrite the icon and also to change the text.

There are, currently, two kinds of board index styling that are possible: boards and redirect boards. The former has two values to make sense of (topics/posts) and last post, while the latter only has one value (redirects) and no last post.

Since the template by definition must already be set up to cope with both one/two and empty/detailed layouts, I'm thinking that the board index setup could provide the following array:
* param1 raw (posts, redirects, just a bare number)
* param1 formatted (same as raw, but whatever text string is desired could be pushed into it, e.g. "1 post")
* param2 raw (topics, or null if N/A)
* param2 formatted (as above but for param2)

This would allow the content to be set up in a manner that makes sense and is customisable, and that doesn't implicitly force quite so much on the theme IMO.

As for the board icon, I just think a custom class needs to be able to be specified, which if set will set the class for the far left column to be boardstate plus this custom class (since boardstate still defines a great deal of what's needed, and then the custom class sets the background property to point to the right image)


Does this sound appropriate?
Posted: September 23rd, 2011, 04:16 PM

I've already implemented the board icon bits, and can roll out the other changes fairly quickly assuming no-one has a problem with them...
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Board index hookage
« Reply #1, on September 28th, 2011, 10:31 AM »
No problem with these.
I don't think it'll have an impact on performance anyway...