Page 1 of 2

sub-forums highlighted when new posts are made

Posted: Tue Apr 16, 2019 2:28 pm
by TheButcher2
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

Re: sub-forums highlighted when new posts are made

Posted: Tue Apr 16, 2019 6:13 pm
by Talk19Zehn
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

Re: sub-forums highlighted when new posts are made

Posted: Tue Apr 16, 2019 6:23 pm
by TheButcher2
not to sound dumb, which I am when it comes to code and design, which template do I add it to please

Peace

Re: sub-forums highlighted when new posts are made

Posted: Tue Apr 16, 2019 6:40 pm
by Talk19Zehn
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 ...

Re: sub-forums highlighted when new posts are made

Posted: Tue Apr 16, 2019 6:58 pm
by TheButcher2
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

Re: sub-forums highlighted when new posts are made

Posted: Tue Apr 16, 2019 7:03 pm
by TheButcher2
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

Re: sub-forums highlighted when new posts are made

Posted: Tue Apr 16, 2019 7:11 pm
by Talk19Zehn
Like to happen :) and thanks a lot. So I send best wishes and regards.

Re: sub-forums highlighted when new posts are made

Posted: Tue Apr 16, 2019 11:26 pm
by TheButcher2
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

Re: forums highlighted when new posts are made

Posted: Wed Apr 17, 2019 10:34 am
by Talk19Zehn
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

Re: forums highlighted when new posts are made

Posted: Wed Apr 17, 2019 12:45 pm
by TheButcher2
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

Re: forums highlighted when new posts are made

Posted: Wed Apr 17, 2019 2:02 pm
by Talk19Zehn
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

Re: sub-forums highlighted when new posts are made

Posted: Wed Apr 17, 2019 2:13 pm
by Mannix_
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; }

Re: forums highlighted when new posts are made

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

Best regards

Re: forums highlighted when new posts are made

Posted: Wed Apr 17, 2019 2:29 pm
by Mannix_
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 :)

Re: forums highlighted when new posts are made

Posted: Wed Apr 17, 2019 2:31 pm
by TheButcher2
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