Marking up new posts with a colored bar?

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Suggested Hosts
Post Reply
Holger
Registered User
Posts: 1761
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Marking up new posts with a colored bar?

Post by Holger » Thu Nov 13, 2014 12:45 pm

Hi,

I would like to mark up new posts with a colored bar left and right (or on one side only).
How can this be done?

Thanks!

/Holger

Edit, a little bit like it is done here:
http://www.phpbb3bbcodes.com/viewtopic. ... 234#p15234

User avatar
Lumpy Burgertushie
Registered User
Posts: 66897
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Marking up new posts with a colored bar?

Post by Lumpy Burgertushie » Thu Nov 13, 2014 4:01 pm

depending on how a user has sorted things, they will all be either at the top or the bottom of the page.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Holger
Registered User
Posts: 1761
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: Marking up new posts with a colored bar?

Post by Holger » Thu Nov 13, 2014 5:19 pm

I would like to highlight them better

Holger
Registered User
Posts: 1761
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: Marking up new posts with a colored bar?

Post by Holger » Fri Nov 28, 2014 9:23 am

I have it like this in my phpBB 3.0.12.
New/unread posts are marked up with green color.
The green bar left and right would be enough ...

Image

User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: Marking up new posts with a colored bar?

Post by Wolfsblvt » Fri Nov 28, 2014 9:36 am

Shouldn't be too difficult. Just highlight the first unread post, or all unread posts?

If cou can give me the css for highlighting I don't have to do it myself :P
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«

Holger
Registered User
Posts: 1761
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: Marking up new posts with a colored bar?

Post by Holger » Fri Nov 28, 2014 9:43 am

Thank you for taking a look!

All unread posts beginning from the first unread

This was my request for phpBB 3.0.x:
viewtopic.php?f=74&t=2186656

And this was the solution:
viewtopic.php?p=13403706#p13403706

User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: Marking up new posts with a colored bar?

Post by Wolfsblvt » Fri Nov 28, 2014 11:05 am

Let's see if this is what you want:
Image

If so, you can find the dev download at: https://github.com/Wolfsblvt/highlightunreadposts

If you have any small suggestions etc, you can tell, otherwise I will oben an extension topic soon.

(And what do you say about the top bar? That was my idea that it would look even cooler :P )

EDIT://
As I thought over it, there isn't really a need for this to be an extension. Of course it can, but in fact the only relevant part are two parts of css code:

Code: Select all

.post.unreadpost {
    padding: 0 5px;
    border-left: 5px solid #693;
    border-right: 5px solid #693;
}

#unread + div.post.unreadpost  {
    padding-top: 5px;
    border-top: 5px solid #693;
} 
So it is more like a style modification. Every style can display unread posts the way they want, the markup exists. So for prosilver there was just the orange symbol image thing on the top left edge of the post.

Dunno if this is enough to name this an extension. What do you think?
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«

Holger
Registered User
Posts: 1761
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: Marking up new posts with a colored bar?

Post by Holger » Fri Nov 28, 2014 11:41 am

Just plain beautiful!
I will test this.
I think every change should be an extension so that updates of the core is running smoothly!

User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: Marking up new posts with a colored bar?

Post by Wolfsblvt » Fri Nov 28, 2014 11:44 am

Holger wrote:Just plain beautiful!
I will test this.
I think every change should be an extension so that updates of the core is running smoothly!
Let me know if it works or if you have suggestions :P

Yeah, that's an argument. I don't know what's the best practice for style changes.. I mean this could be part of a now style instead, but that would be complicated again..
So ye, extension is okay, I would say.
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«

Holger
Registered User
Posts: 1761
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: Marking up new posts with a colored bar?

Post by Holger » Fri Nov 28, 2014 11:52 am

It is just plain beautiful!
Thank you so much!

The first unread has the green bar above also, the following only left and right! Perfect!

User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: Marking up new posts with a colored bar?

Post by Wolfsblvt » Fri Nov 28, 2014 11:54 am

Thank you. There was not much to do, I just used the code you linked and implemented it in a stub extension of mine :P

But nice that you like it.
I'll see if I can push it as a real extension in the next days. Don't think there is much to do, so I'll set it right to RC :D
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«

Holger
Registered User
Posts: 1761
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: Marking up new posts with a colored bar?

Post by Holger » Fri Nov 28, 2014 11:57 am

Go for it! :D

Post Reply

Return to “Extension Requests”