Suggestion: add 'unread topics' to navigation bar above forum
Quote from Wouter Bruijning on November 27, 2018, 7:18 amHi @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
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
Quote from Gespanne on November 27, 2018, 6:42 pmThomas,
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!
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!
Quote from Asgaros on November 28, 2018, 10:39 amHello @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.
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>'; }
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.
Quote from Wouter Bruijning on November 28, 2018, 12:09 pmThanks @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 😉
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:Quote from Gespanne on November 28, 2018, 5:44 pmQuote from Asgaros on November 28, 2018, 10:39 am@gespanneWhat 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!
Quote from Asgaros on November 28, 2018, 10:39 amWhat 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!
Quote from Asgaros on November 28, 2018, 7:12 pm@gespanne Showing the forum of an unread topic is a very good idea. I will try to implement it with the next update.
@gespanne Showing the forum of an unread topic is a very good idea. I will try to implement it with the next update.