nend

  • When is a theme, no longer what it was when installed?
  • Posts: 165
Board Icons
« on April 25th, 2012, 07:27 PM »
This will replace the standard board icons with a custom one. A admin can select different board icons for each board if they wanted to.

In the admin panel when managing boards a Admin can upload a board icon. This icon will be shown instead of the default generic one on the board. For when the board has new content in it there can be a box on the bottom right corner of the custom icon that lights up to show if there is anything new in that board.

I have something similar implemented on one of my sites, there I go with that again, lol. Mines is a little different that I show a new icon right by the board title when there is new content in that board. However on mine I have two pictures, one is a big one for inside the board and the other one is a small one for the board index.

 Image8.jpg - 414.13 kB, 993x575, viewed 294 times.

 Image4.jpg - 307.37 kB, 1064x535, viewed 359 times.

 Image6.jpg - 200.71 kB, 828x617, viewed 278 times.


Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Board Icons
« Reply #1, on April 25th, 2012, 07:30 PM »
Interesting idea, though I'm very keen not to implement certain things like that as regular uploads in the ACP because of security concerns, at least if it goes anywhere outside the attachments or media folders.

(I have a huge problem with dealing with the permissions aspects, since I don't want to have it where files etc. are writable generally just because of the problems it will inevitably cause. I have a solution in mind for the plugin system and infrequently changed things like that but not for a general thing like boards, especially if we allow for boards to be created by users rather than admins.)
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 Icons
« Reply #2, on April 25th, 2012, 07:53 PM »
Scary attachment pic :P

Board icons -- you mean, replacing the "new posts" icon in the board index, is it...?
I don't know about that. I personally prefer to consider that if a board should have its own icon, it should be offered as an addition to what is already in SMF/Wedge, i.e. new material next to the board title or something.
Noisen has support for board icons but I won't elaborate, as it's quite fucked up... :lol:

[OFF TOPIC STARTS HERE :P] (I don't really have time to start new topics etc...)

Pete, glad to see you back... Although I suddenly got like 50 extra posts to read and I was too busy working on my local install to notice you were back... :^^;:

Speaking of icons -- what do you think of today's rewrites for the action bar? I renamed .moderatorbar to .actionbar (because really, what was the semantic point of showing .modified inside that? I got so much confused by it, I'd actually declared .moderatorbar in index.member.css...!), and moved the action menu there. I changed the global opacity to make it less striking, and I think the result is quite good. More importantly, this (finally) fixes the header bar which was always a bit too crowded with icon + title + reply number + date + actions + action menu + moderation checkbox...
Remaining issues:
- Eats a little more vertical space for guests, or any post that hasn't been modified and that the user has no control over -- i.e. post has no 'last modified' date or Quick Edit button. It's no big deal, and I think FluxBB already has a bar at the bottom and nobody complained about that. IIRC Nightwish also brought a bottom bar to his Eos theme redesign...
- Mobile mode -- should I reset it or leave it as is? I think I'll reset it so that it uses the action bar... The main point is that in order to save space, I moved the Quote and Modify buttons to the action menu in mobile mode, even though these menus are a (tiny bit) harder to navigate in mobile mode than desktop mode.
- The post can feel a bit 'trapped' between the header and action bars... I added some generous extra vertical padding to help. Should be fine.
- I'll have to integrate the Quick Edit button into the action bar -- dunno how best to handle this in terms of usability.

Ah, and before I go... Remember the ugly dollarfix thing in SMF/Wedge? That's in topic.js... Well, I understood what it was all about. It's actually NOT AN IE BUG, contrary to what the comment says. I was misled by this. In fact, when applying a regex replacement in JS, "$" is a meta-character and any proper "$" needs to be escaped to "$$" before it can be used as a replacement string... Which is the reason why every single browser would 'eat' extra dollar signs in posts and subjects. So there was no need to replace to 'dollarfix' and back to '$', just replacing to '$$$$' was enough to fix it. Tested in IE6, Opera and Chrome...

Now, the funny thing is that this is the only place where SMF dealt with that, when in reality there are plenty more places where it potentially tries to inject dollar signs.... Any volunteers to deal with these? :P

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Board Icons
« Reply #3, on April 25th, 2012, 08:34 PM »
A lot of people like to change those icons, even though it removes the meaning of new/no new posts in the process. Other people like to have separate icons next to the new/no new icons.
Quote
Speaking of icons -- what do you think of today's rewrites for the action bar? I renamed .moderatorbar to .actionbar (because really, what was the semantic point of showing .modified inside that? I got so much confused by it, I'd actually declared .moderatorbar in index.member.css...!), and moved the action menu there. I changed the global opacity to make it less striking, and I think the result is quite good. More importantly, this (finally) fixes the header bar which was always a bit too crowded with icon + title + reply number + date + actions + action menu + moderation checkbox...
It confused me, to be honest, because I thought it was some JS-is-broken bug, it wasn't until Aaron commented on it that I realised it was intentional (and the moderation checkbox is still in the old place, which detaches it from having any obvious meaning.
Quote
- Eats a little more vertical space for guests, or any post that hasn't been modified and that the user has no control over -- i.e. post has no 'last modified' date or Quick Edit button. It's no big deal, and I think FluxBB already has a bar at the bottom and nobody complained about that. IIRC Nightwish also brought a bottom bar to his Eos theme redesign...
I think it would actually be better since it's not actually as cluttered as it could have been before.
Quote
- Mobile mode -- should I reset it or leave it as is? I think I'll reset it so that it uses the action bar... The main point is that in order to save space, I moved the Quote and Modify buttons to the action menu in mobile mode, even though these menus are a (tiny bit) harder to navigate in mobile mode than desktop mode.
Saving space is important there, so moving quote/modify is fine, but I think using the action bar would be good :)
Quote
- The post can feel a bit 'trapped' between the header and action bars... I added some generous extra vertical padding to help. Should be fine.
That's more a problem with short, or chunky posts that don't have a lot of paragraph breaks.
Quote
Ah, and before I go... Remember the ugly dollarfix thing in SMF/Wedge? That's in topic.js... Well, I understood what it was all about. It's actually NOT AN IE BUG, contrary to what the comment says. I was misled by this. In fact, when applying a regex replacement in JS, "$" is a meta-character and any proper "$" needs to be escaped to "$$" before it can be used as a replacement string...
Interesting, I didn't know about that.