Wedge

Public area => The Pub => Features => Topic started by: Arantor on November 11th, 2011, 11:34 PM

Title: Recents posts as formerly on the board index
Post by: Arantor on November 11th, 2011, 11:34 PM
Been thinking about this today, and it's bugging me.

It occurred to me that there are a ton of tiny variation mods on sm.org for altering this stubby little block of posts, not to mention it being discouraged to even be used in the first place due to performance issues with it.

So it occurs to me, I could rip it out, turn it into a plugin and make it much more flexible than the core could be. It could show in the sidebar, or not, it could show with a variety of layouts etc, because that can all be handled more nicely through a plugin than it can in the core (since in the core we pretty much have to roll with one overall look, which is 'in the sidebar, not very flexibly')

Thoughts?

(And no, this isn't just because I'm trying to slowly divest the crap I never use into plugins or anything :whistle:)
Title: Re: Recents posts as formerly on the board index
Post by: Nao on November 12th, 2011, 12:10 AM
Yeah, sure, why not :P
I don't use it either, I prefer to place my list of recent posts outside of the info center anyway.

Additionally, we could release this one as BSD, and people could easily release variations of it, if I'm following your suggestion. So, everybody wins.

Now, back to killing dragons...
Posted: November 12th, 2011, 12:08 AM

Unrelated, but can't bother to find the topic: Post.php still has a few references to the word 'event', the calendar one.
It's in the comments, though... But I feel they still don't belong in here any longer.
Title: Re: Recents posts as formerly on the board index
Post by: Arantor on November 12th, 2011, 12:13 AM
I did all kinds of searches on 'event' and most of them seemed unrelated after that, e.g. "...in the event of". I really thought I'd got everything but guess not :/ Still, as it gets purged, I'll move it out into the plugin and be done with it.
Quote
I don't use it either, I prefer to place my list of recent posts outside of the info center anyway.

Additionally, we could release this one as BSD, and people could easily release variations of it, if I'm following your suggestion. So, everybody wins.
*nods* I was thinking more that I could just throw the most common style variations into the mix, but yeah, no problems with it being BSD. If I was feeling really brave I could stick it on GitHub.
Title: Re: Recents posts as formerly on the board index
Post by: Nao on November 12th, 2011, 12:20 AM
Or mpl. Whatever ;)

I did notice the size of the removals. Hence my care for checking for anything you might have forgotten. It's way easier to be the 'finished work inspector' (French expression probably) than to do the actual work ;)
Title: Re: Recents posts as formerly on the board index
Post by: Arantor on November 12th, 2011, 12:26 AM
Of all the code I've removed from SMF, that one felt more like an endurance trial than the others did. Purging PGSQL and SQLite? Tricky, maybe taxing. Pruning non-UTF-8 support? Fun. This... Mayhem.

(1 internet cookie for who gets the reference.)

It's a bit different also to previous removals because here I actually have to go back and look up what the other removals were to integrate them back into the calendar plugin :/ All kinds of fun, yay.
Posted: November 12th, 2011, 12:23 AM

Also on a similar note for things in the sidebar that could/should be plugins I've been thinking about the membergroup legend that's currently in alphabetic order under who's online.

Part of me thinks it just needs tidying up and letting the admin set the order of items and part of me thinks it really needs to be spun back off into a plugin where it can be let loose properly (with aforementioned options, plus alternate layout like having it as a bullet list instead of the current list)
Title: Re: Recents posts as formerly on the board index
Post by: Arantor on November 13th, 2011, 03:09 PM
Also, back on the original topic... what about stripping the newsfader from the board index?
Title: Re: Recents posts as formerly on the board index
Post by: spoogs on November 13th, 2011, 03:39 PM
+1 to removing the News fader - my only argument is that I dont use it :P

As for recent post I'm for whatever would allow recent topics, with a [new] icon linking to first unread post since I last visited the topic. I personally dislike recent post since if a topic is active enough all the recent post could be just from that topic and I find the list redundant since I'm likely to read all the posts from where I left off once I visit a topic.
Title: Re: Recents posts as formerly on the board index
Post by: Arantor on November 13th, 2011, 03:41 PM
Quote
+1 to removing the News fader - my only argument is that I dont use it
Do most people?
Quote
As for recent post I'm for whatever would allow recent topics, with a [new] icon linking to first unread post since I last visited the topic.
I see no reason why I wouldn't make that an option.
Quote
I personally dislike recent post since if a topic is active enough all the recent post could be just from that topic and I find the list redundant since I'm likely to read all the posts from where I left off once I visit a topic.
*nods* I've seen that. It wouldn't be so bad if it were 'most recent posts, unique by topic', but that's actually near enough the same thing when it gets down to it...
Title: Re: Recents posts as formerly on the board index
Post by: spoogs on November 13th, 2011, 03:49 PM
Quote
Do most people?
I've seen a site or 2 that does use; needless to say the 'news' displayed is hardly worth being considered news.
Quote
I see no reason why I wouldn't make that an option.
Sounds like a winner to me  :cool:
Quote
but that's actually near enough the same thing when it gets down to it...
Indeed; the lick displayed for recent post would be a link to the most recent post in the topic while the [new] icon takes you to where you left off.
Title: Re: Recents posts as formerly on the board index
Post by: Arantor on November 13th, 2011, 03:53 PM
Quote
I've seen a site or 2 that does use; needless to say the 'news' displayed is hardly worth being considered news.
I've often wondered whether or not the actual 'news' shouldn't instead be taken from a board rather than some arbitrary bit in the admin panel.
Quote
Indeed; the lick displayed for recent post would be a link to the most recent post in the topic while the [new] icon takes you to where you left off.
Don't see why I can't do that without too much fuss. Though it will be slower than simply returning links to the most recent posts on their own; perhaps that should be optional.
Title: Re: Recents posts as formerly on the board index
Post by: spoogs on November 13th, 2011, 04:12 PM
Quote
I've often wondered whether or not the actual 'news' shouldn't instead be taken from a board rather than some arbitrary bit in the admin panel.
I share that same view... I have yet to use the actual news section in the ACP as we just use a news and announcements board and be done with it
Quote
Though it will be slower than simply returning links to the most recent posts on their own; perhaps that should be optional.
Either way is fine actually and you know me, I'll always be in favour of performance friendly options.
Title: Re: Recents posts as formerly on the board index
Post by: Arantor on November 13th, 2011, 04:15 PM
Quote
I share that same view... I have yet to use the actual news section in the ACP as we just use a news and announcements board and be done with it
There is actually an SMF mod that will let you select a board to use the topics from as news items.
Quote
Either way is fine actually and you know me, I'll always be in favour of performance friendly options.
I try to be performance conscious, but I have no problem with offering both provided that the greedy version isn't default (since there are benefits to both)

I could, incidentally, do something pretty similar as a WedgeDesk plugin for tickets... hmm...
Title: Re: Recents posts as formerly on the board index
Post by: spoogs on November 13th, 2011, 04:25 PM
Quote
There is actually an SMF mod that will let you select a board to use the topics from as news items.
SSI Multiple Board News I presume? If so yep I'm well aware of it and use it for a while til we just merged all new into 1 board (might even still have it installed).
Quote
I try to be performance conscious, but I have no problem with offering both provided that the greedy version isn't default (since there are benefits to both)
Options are always  a good thing in my book when they can be proven useful
Quote
I could, incidentally, do something pretty similar as a WedgeDesk plugin for tickets... hmm...
Interesting and that would actually be quite nice since users only see tickets they have access to regardless of department a list of the most recently replied to ticket would be quite handy.
Title: Re: Recents posts as formerly on the board index
Post by: Arantor on November 13th, 2011, 04:29 PM
Quote
SSI Multiple Board News I presume? If so yep I'm well aware of it and use it for a while til we just merged all new into 1 board (might even still have it installed).
Nope, I actually mean a mod that replaces the News items in the header with the list of topics from a board. http://custom.simplemachines.org/mods/index.php?mod=825 if you're curious (no, it's not updated for current versions but it shouldn't need *that* much work other than converting the query to 2.0 style)
Quote
Options are always  a good thing in my book when they can be proven useful
Too many options are not always a good thing and I know I've removed options in Wedge as well as added them, but yes, it's whether they can be proven useful.
Quote
Interesting and that would actually be quite nice since users only see tickets they have access to regardless of department a list of the most recently replied to ticket would be quite handy.
The logic and code is virtually identical, too.
Title: Re: Recents posts as formerly on the board index
Post by: spoogs on November 13th, 2011, 04:38 PM
Never notice that particular mod, more-so never used SMF 1x, started off with 2.0RC1.2 IIRC so never paid much attention to anything 1x.

I agree that too many options wouldn't be a good thing... precisely why I added "when they can be proven useful" ;D
Quote
The logic and code is virtually identical, too.
Where where you figuring on displaying said list, boardindex, a block in WD, or sidebar?

Title: Re: Recents posts as formerly on the board index
Post by: Arantor on November 13th, 2011, 04:41 PM
Quote
Where where you figuring on displaying said list, boardindex, a block in WD, or sidebar?
Well, right now, the recent posts item is solely in the sidebar, and that's partly why I want to move it into a plugin, because I feel more comfortable doing bizarre things like supplying multiple templates and options to it as a plugin.

If it does become a plugin, I'd make the sidebar and board index (and welcome page, that's another story) into options.

As far as WD-recent-tickets goes, it would have the options of sidebar, board index (and welcome page) and at the top or bottom of the list of tickets in WD, or possibly anywhere else I end up making available.
Title: Re: Recents posts as formerly on the board index
Post by: Dismal Shadow on November 13th, 2011, 06:42 PM
Quote from Arantor on November 13th, 2011, 03:41 PM
Quote
+1 to removing the News fader - my only argument is that I dont use it
Do most people?
I do. :P
Title: Re: Recents posts as formerly on the board index
Post by: Dr. Deejay on November 13th, 2011, 06:48 PM
Me too, I actually liked it very much :)
Title: Re: Recents posts as formerly on the board index
Post by: Arantor on November 13th, 2011, 07:07 PM
Then isn't it wonderful that even if it were removed, you could reinstate it later with more options and flexibility? :P
Title: Re: Recents posts as formerly on the board index
Post by: PantsManUK on November 14th, 2011, 02:55 PM
Quote from Arantor on November 13th, 2011, 03:41 PM
Quote
+1 to removing the News fader - my only argument is that I dont use it
Do most people?
We use it too (for dull, admin type things), but I very much like the idea of having it read a board for the news (and being a plugin).
Title: Re: Recents posts as formerly on the board index
Post by: Arantor on November 17th, 2011, 01:18 PM
OK, so I've pulled out the recent posts into its own little plugin and given it, sort of, the ability to order by topic except it's currently doing it wrong, gah.

It's not just as simple as shoving a group-by in there :(
Title: Re: Recents posts as formerly on the board index
Post by: Arantor on November 17th, 2011, 01:47 PM
OK, just as a heads-up, I've rewritten it as a plugin to use 2/3 queries (there's one query to get message ids in recent posts, one to get message ids in recent topics, and one to get the actual data, and it seems to be faster now, too) so I've also committed the removal of the rest of it and will drop the plugin into the repo shortly.

Not sure exactly what I want to do with it just yet but the fact it's a plugin makes it much easier to do magicalness with.
Title: Re: Recents posts as formerly on the board index
Post by: U Wish on January 18th, 2012, 10:36 PM
i like this too, Arantor..

im tickled to see you guys have gotten a bit farther along.. and the news, well i use it a bit, but agree.. the news should come from the site, not the admin area.. id have renamed it something like notes  as it is kinda one the things you do notice when you land on a website.. but i like these ideas!!!!  ^_^