ElkArte Community

Elk Development => Feature Discussion => Topic started by: Jorin on January 20, 2017, 09:28:25 am

Title: "New topics from here"-line
Post by: Jorin on January 20, 2017, 09:28:25 am
Some forum software is showing a line between two posts to show exactly from what position the new, unread posts start. You can see an example attached.

I would prefer ElkArte could do this too (other than just jump to the first unread post and show it on the top of the browser).
Title: Re: "New topics from here"-line
Post by: Spuds on January 20, 2017, 02:21:57 pm
I think you would have to use some JS to target that, at least with how the current template is.  For example you would add
Code: [Select]
$('#new').parent().prev('hr').css('display', 'block');
in theme.js, somewhere inside the first
$(function() {}
for 1.1 or inside the
$(document).ready(function() {
for 1.0

That seems a bit clumsy to me, and with some template tweaks you could just do it with css.  I don't think that #new is used in other places, but if so that JS may cause a page layout change somewhere not expected.
Title: Re: "New topics from here"-line
Post by: Spuds on January 29, 2017, 06:11:47 pm
Made an enhancement PR to 1.1, for consideration.  It adds this feature (Link-4448) with just CSS.