sub-forums highlighted when new posts are made

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
TheButcher2
Registered User
Posts: 613
Joined: Tue May 13, 2014 11:38 pm
Contact:

sub-forums highlighted when new posts are made

Post by TheButcher2 » Tue Apr 16, 2019 2:28 pm

Hi would it be possible for the sub-forum title on the index page to highlight so it's easier for viewers to see where there are new posts, please see attached image, say for example "Affiliate programs" to turn red when there are new posts there.

Thanks

Dave
Attachments
Screen Shot 2019-04-16 at 10.25.48 AM.png

User avatar
Talk19Zehn
Registered User
Posts: 364
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: sub-forums highlighted when new posts are made

Post by Talk19Zehn » Tue Apr 16, 2019 6:13 pm

Hi, please test this:

Code: Select all

ul.topiclist li.row dt a.subforum.unread {
	border-left: 1px solid #AA0000;
	font-style: italic;
	padding-left: 2px;
	color: #AA0000;
}
Regards
World Meteorological Organization (WMO) Weather - Climate - Water
BTW: My own works - phpBB - read more: ongray-design-de or look here: phpBB VT Theme
Style: Star Trek - StarTrekExcerpts - Fan-Board

TheButcher2
Registered User
Posts: 613
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: sub-forums highlighted when new posts are made

Post by TheButcher2 » Tue Apr 16, 2019 6:23 pm

not to sound dumb, which I am when it comes to code and design, which template do I add it to please

Peace

User avatar
Talk19Zehn
Registered User
Posts: 364
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: sub-forums highlighted when new posts are made

Post by Talk19Zehn » Tue Apr 16, 2019 6:40 pm

That's CSS based on Prosilver -> Only just CSS.
Example -> Add it at the end of the colour.css (Prosilver) or add this e.g. in your "custom.css" (namely an example). Your design may use different style directories, which defies my information.

Clean up all caches, even after pageview in the browser (CTRL / F5) and *test the results with an other User ... ==>
*Own contributions (posts) are not unread ... ;)
Here it works fine ...
World Meteorological Organization (WMO) Weather - Climate - Water
BTW: My own works - phpBB - read more: ongray-design-de or look here: phpBB VT Theme
Style: Star Trek - StarTrekExcerpts - Fan-Board

TheButcher2
Registered User
Posts: 613
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: sub-forums highlighted when new posts are made

Post by TheButcher2 » Tue Apr 16, 2019 6:58 pm

thanks a million it does exactly what i want, I owe you one boss.

Here is a screen cap of a post I saw just done after I made the changes.

Have a great day.

Peace

Dave
Attachments
Screen Shot 2019-04-16 at 2.57.30 PM.png

TheButcher2
Registered User
Posts: 613
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: sub-forums highlighted when new posts are made

Post by TheButcher2 » Tue Apr 16, 2019 7:03 pm

I never take credit for anyone's help or work, so I made a post on my forum crediting you of the help.

Thanks again.

Peace

User avatar
Talk19Zehn
Registered User
Posts: 364
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: sub-forums highlighted when new posts are made

Post by Talk19Zehn » Tue Apr 16, 2019 7:11 pm

Like to happen :) and thanks a lot. So I send best wishes and regards.
World Meteorological Organization (WMO) Weather - Climate - Water
BTW: My own works - phpBB - read more: ongray-design-de or look here: phpBB VT Theme
Style: Star Trek - StarTrekExcerpts - Fan-Board

TheButcher2
Registered User
Posts: 613
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: sub-forums highlighted when new posts are made

Post by TheButcher2 » Tue Apr 16, 2019 11:26 pm

If I may ask a follow up question, if I want to make a forum the same way, one that does not have sub forums, how would I do it.

I tried this, but I guess I am off it did not work. I guess my code skills are not that good.

Code: Select all

ul.topiclist li.row dt a.forum.unread {
	border-left: 1px solid #AA0000;
	font-style: italic;
	padding-left: 2px;
	color: #AA0000;
}
Thanks



Peace

Dave

User avatar
Talk19Zehn
Registered User
Posts: 364
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: forums highlighted when new posts are made

Post by Talk19Zehn » Wed Apr 17, 2019 10:34 am

Hello, perhaps supplement the CSS: My own simple ideas ...

Code: Select all

.forum_unread a.forumtitle {color: #AA0000; font-style: italic; }

Code: Select all

.topic_unread a.topictitle {color: #AA0000; font-style: italic; }
and please test it also.

BTW: Normally the big icon changes from read to unread. It signals "Unread´s" and so you can jump directly (if you click this icon).

Regards
World Meteorological Organization (WMO) Weather - Climate - Water
BTW: My own works - phpBB - read more: ongray-design-de or look here: phpBB VT Theme
Style: Star Trek - StarTrekExcerpts - Fan-Board

TheButcher2
Registered User
Posts: 613
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: forums highlighted when new posts are made

Post by TheButcher2 » Wed Apr 17, 2019 12:45 pm

Talk19Zehn wrote:
Wed Apr 17, 2019 10:34 am
Hello, perhaps supplement the CSS: My own simple ideas ...

Code: Select all

.forum_unread a.forumtitle {color: #AA0000; font-style: italic; }

Code: Select all

.topic_unread a.topictitle {color: #AA0000; font-style: italic; }
and please test it also.

BTW: Normally the big icon changes from read to unread. It signals "Unread´s" and so you can jump directly (if you click this icon).

Regards


Thanks, the forum title becomes italic when there are unread treads, but not red, I can't get the red to work, but thanks for the help

Peace

User avatar
Talk19Zehn
Registered User
Posts: 364
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: forums highlighted when new posts are made

Post by Talk19Zehn » Wed Apr 17, 2019 2:02 pm

phpBB-3.2.5

Strange, prosilver and *)all styles react here on my site conform (see pictures) and when I have read everything, the display switches correctly to read (phpBB-3.2.5-standard).

*)Because I added the CSS into the colours.css (prosilver(!). If I want to act differently in some colors, I edit the CSS into the respective design.

Some results:
resultoneredunreadforumlistindex.png
resulttwounreadfviewforum.png
resulttwounreadfviewforumalso.png
resultunreadforumlistindexps.png
. greetings
World Meteorological Organization (WMO) Weather - Climate - Water
BTW: My own works - phpBB - read more: ongray-design-de or look here: phpBB VT Theme
Style: Star Trek - StarTrekExcerpts - Fan-Board

User avatar
Mannix_
Registered User
Posts: 492
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: sub-forums highlighted when new posts are made

Post by Mannix_ » Wed Apr 17, 2019 2:13 pm

If you want to cover all the types of topic like hot locked etc you need something like this

Code: Select all

.topic_unread a.topictitle, .topic_unread_mine a.topictitle, .topic_unread_hot a.topictitle, .topic_unread_hot_mine a.topictitle, .topic_unread_locked a.topictitle, .topic_unread_locked_mine a.topictitle {color: #AA0000; font-style: italic; }
EDIT
to cover all unreads

Code: Select all

.forum_unread a.forumtitle, .forum_unread_locked a.forumtitle, .forum_unread_subforum a.forumtitle, .global_unread a.topictitle, .global_unread_mine a.topictitle, .global_unread_locked a.topictitle, .global_unread_locked_mine a.topictitle, .announce_unread a.topictitle, .announce_unread_mine a.topictitle, .announce_unread_locked a.topictitle, .announce_unread_locked_mine a.topictitle, .sticky_unread a.topictitle, .sticky_unread_mine a.topictitle, .sticky_unread_locked a.topictitle, .sticky_unread_locked_mine a.topictitle, .topic_unread a.topictitle, .topic_unread_mine a.topictitle, .topic_unread_hot a.topictitle, .topic_unread_hot_mine a.topictitle, .topic_unread_locked a.topictitle, .topic_unread_locked_mine a.topictitle {color: #AA0000; font-style: italic; }
Last edited by Mannix_ on Wed Apr 17, 2019 2:21 pm, edited 1 time in total.
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Want me to port a style to 3.2.x etc. contact me here or on twitter.

User avatar
Talk19Zehn
Registered User
Posts: 364
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: forums highlighted when new posts are made

Post by Talk19Zehn » Wed Apr 17, 2019 2:20 pm

Right, but the ext/alex75/redtitlenewpost wrote some colors looks like --> color: #000c22
So I think -> may there be a different result?

Best regards
World Meteorological Organization (WMO) Weather - Climate - Water
BTW: My own works - phpBB - read more: ongray-design-de or look here: phpBB VT Theme
Style: Star Trek - StarTrekExcerpts - Fan-Board

User avatar
Mannix_
Registered User
Posts: 492
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: forums highlighted when new posts are made

Post by Mannix_ » Wed Apr 17, 2019 2:29 pm

Talk19Zehn wrote:
Wed Apr 17, 2019 2:20 pm
Right, but the ext/alex75/redtitlenewpost wrote some colors looks like --> color: #000c22
So I think -> may there be a different result?

Best regards
If extension is overwriting it adding !important after color code should fix it :)
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Want me to port a style to 3.2.x etc. contact me here or on twitter.

TheButcher2
Registered User
Posts: 613
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: forums highlighted when new posts are made

Post by TheButcher2 » Wed Apr 17, 2019 2:31 pm

Talk19Zehn wrote:
Wed Apr 17, 2019 2:20 pm
Right, but the ext/alex75/redtitlenewpost wrote some colors looks like --> color: #000c22
So I think -> may there be a different result?

Best regards
thanks a million I didn't think of that, I disabled the extension in question and it worked.

Thanks again for all your help my friend.

Peace


Dave

Post Reply

Return to “[3.2.x] Styles Support & Discussion”