Page 1 of 2

'New posts' button?

Posted: Mon Sep 28, 2015 10:10 am
by Horse
I know there's a link in the 'radiator' Quick Links option, but could we have a dedicated 'new posts' in the header?

Ta :)

Re: 'New posts' button?

Posted: Mon Sep 28, 2015 10:14 am
by akirk
absolutely! my favourite short cut as well...

I haven't done much with PHPBB for many years, so just finding my way around a bit - not sure if this is a simple option in the control panel, or whether I will have to modify the code - either way, definitely will do it - but might take a day or two...

regards

Alasdair

Re: 'New posts' button?

Posted: Mon Sep 28, 2015 10:29 am
by Horse
No worries, thanks for [probably] sorting :)

I use the type ahead / auto complete in the URL to straight to the list too.

Re: 'New posts' button?

Posted: Mon Sep 28, 2015 11:11 am
by Mr Cholmondeley-Warner
Needs a mod to the style Alasdair. I'd do it but I don't have that option.

Edit index_body.html and add:

<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<ul class="linklist">
<!-- IF S_DISPLAY_SEARCH -->
<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><!-- IF S_LOAD_UNREADS --> &bull; <a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a><!-- ENDIF --><!-- IF S_USER_LOGGED_IN --> &bull; <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> &bull; <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
<!-- ENDIF -->
<!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="rightside"><a href="{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->
</ul>
<!-- ENDIF -->

Which will give

View unanswered posts • View unread posts • View new posts • View active topics ............................................ Mark forums read

Edit as appropriate - I rather like "active topics" myself.

Re: 'New posts' button?

Posted: Mon Sep 28, 2015 11:14 am
by akirk
Fab - will add when I have a moment

Alasdair

Re: 'New posts' button?

Posted: Mon Sep 28, 2015 11:27 am
by Horse
Mr Cholmondeley-Warner wrote: I rather like "active topics" myself.


Yup, that too, please :)

Re: 'New posts' button?

Posted: Mon Sep 28, 2015 10:32 pm
by akirk
okay - not quite that simple -t he change to version 3.1 has made the template responsive and brought in the quick links menu... so that seems to no longer work...

tracking it down!

Alasdair

Re: 'New posts' button?

Posted: Mon Sep 28, 2015 11:21 pm
by akirk
now done - found where it lives (navbar_header.html) and moved it out of the quick links menu to the bar...
ditched the faq button as that refers simply to an faq on PHPBB3.1 which is probably of little interest to anyone...
when you go responsive the links should collapse back into the menu bar

Alasdair

Re: 'New posts' button?

Posted: Tue Sep 29, 2015 7:05 am
by Mr Cholmondeley-Warner
Good stuff. Well done, boss.

Re: 'New posts' button?

Posted: Tue Sep 29, 2015 7:45 pm
by Jonquirk
ADUK had a button to take you to the first unread post in a topic. I always found it useful. Could it be replicated on here, please?