Please or Register to create posts and topics.

Suggestion: add 'unread topics' to navigation bar above forum

Hi @asgaros, you added the ‘unread topics’ to the forum (which I like a lot, thanks!).

I would like to be able to enable a menu item in the navigation bar above the forum for that, just like we can enable ‘Activity’. Would that be difficult?

Thanks, Wouter

Thomas,

My users would like that as well.  The “unread topics” is the most popular way for my users to access the forum.  Also, it would be very nice to see the breadcrumbs and the topic post date on the same line as the topic subject.

Asgaros is still the best!

Thanks!

Wouter Bruijning has reacted to this post.
Wouter Bruijning

Hello @wouterbruijning

If you add the following code to your themes functions.php file a new menu-item for this will be available:

add_action('asgarosforum_custom_header_menu', 'custom_header_menu');
function custom_header_menu() {
  global $asgarosforum;

  echo '<a href="'.$asgarosforum->get_link('unread').'">Unread Topics</a>';
}

@gespanne

What do you mean with breadcrumbs? The forum in which a topic is located in like in the search-results?

Adding the date is a little bit difficult because clicking the link brings you to the last unread post – which is not the last post in general. So the question is: Should I show information about the last post or the last unread-post? Last one makes more sense but would be different compared the normal display-behavior throughout the forum.

Wouter Bruijning has reacted to this post.
Wouter Bruijning
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thanks @asgaros!

To make it a little easier for others, I took the liberty of putting the code into a rudimentary plugin (asgaros-unread-topics.zip, added). If you want to change the menu text, just open the php-file in the zip, change text, zip again. Then upload and activate. Worked for me 😉

Uploaded files:
Asgaros has reacted to this post.
Asgaros
Quote from Asgaros on November 28, 2018, 10:39 am

What do you mean with breadcrumbs? The forum in which a topic is located in like in the search-results?

Adding the date is a little bit difficult because clicking the link brings you to the last unread post – which is not the last post in general. So the question is: Should I show information about the last post or the last unread-post? Last one makes more sense but would be different compared the normal display-behavior throughout the forum.

Regards “breadcrumbs”, yes, the forum in which the topic is located.  It would be easier to decide to read a topic or not knowing from which forum it came.  The date issue is less important but if you do decide to add it, I feel that it should be consistent with display-behavior on the rest of the forum.  It might not be worth doing.

Thanks!

@gespanne Showing the forum of an unread topic is a very good idea. I will try to implement it with the next update.

Gespanne and Wouter Bruijning have reacted to this post.
GespanneWouter Bruijning
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!