TinyPortal

Development => Block Codes => Topic started by: Jokey on January 10, 2009, 03:07:20 PM

Title: Unread Topics Bloc?
Post by: Jokey on January 10, 2009, 03:07:20 PM
Is there such a thing? I looked thru the index of snippets but didn't see one, I would like one so when the member logs in the bloc automatically show the unread posts, and just those, not all the recent topics.

??? ??? ???
Title: Re: Unread Topics Bloc?
Post by: JPDeni on January 10, 2009, 03:23:10 PM
Use the link

index.php?action=unread;all;start=0

Title: Re: Unread Topics Bloc?
Post by: IchBin on January 10, 2009, 04:49:01 PM
I think you're looking for a Block and not a Bloc right? :P  I don't think I've ever seen a unread posts block. Would be a good idea IMO. If one of our coders can't get to it, I'll see if I can take a shot at it.
Title: Re: Unread Topics Bloc?
Post by: JPDeni on January 10, 2009, 05:34:34 PM
The trouble with making it a block is that, as soon as the person reads everything, there will be nothing there. Also, if you put in all unread items, there's no knowing how many there will be, meaning that the length of the block will vary a great deal. It's better to keep blocks relatively consistent in size. Since it's so easy to have a link to the unread items, it's better to just use the link. It's rather silly to repeat things that SMF does automatically.
Title: Re: Unread Topics Bloc?
Post by: Jokey on January 10, 2009, 08:05:35 PM
Quote from: JPDeni on January 10, 2009, 05:34:34 PM
The trouble with making it a block is that, as soon as the person reads everything, there will be nothing there. Also, if you put in all unread items, there's no knowing how many there will be, meaning that the length of the block will vary a great deal. It's better to keep blocks relatively consistent in size. Since it's so easy to have a link to the unread items, it's better to just use the link. It's rather silly to repeat things that SMF does automatically.

Well let's see, if coded right the block could be made to scroll? Alot of users don't realize there is a link. But I guess since it is silly it isn't worth doing. ::)
Title: Re: Unread Topics Bloc?
Post by: G6Cad on January 10, 2009, 08:06:58 PM
If i recall correctly, Thurnok tried to get a block like that to work, but as JP Denis said, there were no way to hold the info once one have clicked any of the links.
Title: Re: Unread Topics Bloc?
Post by: JPDeni on January 10, 2009, 08:27:48 PM
QuoteAlot of users don't realize there is a link

It's right there in the user block -- Show unread -- or you can make a block with the link.