I primarily utilize the front page (https://www.bogleheads.org/) because it nicely aggregates all the sub forums. And when clicking on a link it conveniently takes you to the first post you haven't read. The problem with this is that you never see notification(s) for new posts in subscribed threads, notifications for replies to your posts, etc. You need to explicitly scroll to the top of one of the content threads to see the notification indicator.
Feature request: Have the notification indicator on the front page
Feature request: Notification indicator visible on front page
Re: Feature request: Notification indicator visible on front page
I also would appreciate having this feature if it is reasonable to implement.
Re: Feature request: Notification indicator visible on front page
Try this pagecacophony wrote: ↑Sun Mar 14, 2021 3:55 pm I primarily utilize the front page (https://www.bogleheads.org/) because it nicely aggregates all the sub forums. And when clicking on a link it conveniently takes you to the first post you haven't read. The problem with this is that you never see notification(s) for new posts in subscribed threads, notifications for replies to your posts, etc. You need to explicitly scroll to the top of one of the content threads to see the notification indicator.
Feature request: Have the notification indicator on the front page
search.php?search_id=active_topics
Re: Feature request: Notification indicator visible on front page
I didn't know about that, thanks.mervinj7 wrote: ↑Sun Mar 14, 2021 3:57 pmTry this pagecacophony wrote: ↑Sun Mar 14, 2021 3:55 pm I primarily utilize the front page (https://www.bogleheads.org/) because it nicely aggregates all the sub forums. And when clicking on a link it conveniently takes you to the first post you haven't read. The problem with this is that you never see notification(s) for new posts in subscribed threads, notifications for replies to your posts, etc. You need to explicitly scroll to the top of one of the content threads to see the notification indicator.
Feature request: Have the notification indicator on the front page
search.php?search_id=active_topics
Maybe I'm just used to it, but I do find the front page more pleasant /readable to look at, so I'd still be interested in the enhancement (if it's easy to do).
Last edited by cacophony on Sun Mar 14, 2021 4:06 pm, edited 1 time in total.
Re: Feature request: Notification indicator visible on front page
YEEEEEES PLEASE. This one thing drives me up a wall, lol.
Re: Feature request: Notification indicator visible on front page
While I do not use the "subscribe" thing, I can easily see which threads have new posts since I last read them by the color change of the time in the "Last" column as well as the color change in the thread title. That's because I click on these two places to read a thread and not the first post in the thread.
Re: Feature request: Notification indicator visible on front page
^^^ That's your browser keeping track of new posts. Each of those links is made unique by adding the post ID to the end of the URL. Every new post has a unique identifier. If you haven't visited that link before, your browser colors the link one way - e.g. blue. If you've read the thread, i.e. visited the URL, your browser colors it differently, e.g. red.
Instead, I suggest you view New posts (logged in) or Active topics (not logged in).
Sorry, the home page is intended to be "bare bones". We won't be adding any more features.
Instead, I suggest you view New posts (logged in) or Active topics (not logged in).
Re: Feature request: Notification indicator visible on front page
I figured out how to write a userscript to add this functionality, which I'm including below. You can make use of this userscript by installing the tampermonkey browser extension in your web browser (https://www.tampermonkey.net/)
The script is configured to only run on bogleheads.org. When you go to https://www.bogleheads.org it will automatically load your profile page and inspect the profile's html to see the unread counts for private messages and thread messages.
If either count is above zero it will :
1. Change the page title to start with the count(s) in parenthesis and
2. Add the count(s) to the left of the "Post Listings" header. This count header is also a link that will take you to the list of the unread content.
I scraped the profile page because it has very little content on it.
Note: I have no real experience with userscript or modern web development, so if anyone has suggestions or improvements let me know! I got it to work but I'm sure various improvements could be made.
Code: Select all
// ==UserScript==
// @name Bogleheads Unread Counts
// @description Add unread count to the root Bogleheads page
// @version 1.0
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @grant GM_xmlhttpRequest
// @match https://www.bogleheads.org/*
// @exclude https://www.bogleheads.org/forum/*
// ==/UserScript==
GM_xmlhttpRequest ( {
method: "GET",
url: "https://www.bogleheads.org/forum/memberlist.php?mode=viewprofile",
onload: function (response) {
var parser = new DOMParser ();
var doc = parser.parseFromString (response.responseText, "text/html");
var pmCount = parseInt(doc.getElementsByClassName ("badge")[0].textContent, 10);
var threadCount = parseInt(doc.getElementsByClassName ("badge")[1].textContent, 10);
var notifyUrl = doc.getElementById ("notification_list_button").getAttribute("href");
var countStr = "";
if (pmCount > 0)
{
countStr += "(" + pmCount + ") ";
}
if (threadCount > 0)
{
countStr += "(" + threadCount + ") ";
}
if (countStr.length > 0)
{
var oldTitle = document.title;
// if this script runs on a page that already displays count, don't update title
if (!oldTitle.startsWith("("))
{
document.title = countStr + oldTitle;
}
var postHeader = document.getElementById('post_page_top');
if (postHeader) {
var boldElem = document.createElement("B");
var linkElement = document.createElement('a');
var linkText = document.createTextNode(countStr);
linkElement.appendChild(linkText);
linkElement.title = countStr;
linkElement.href = "https://www.bogleheads.org/forum/" + notifyUrl;
boldElem.appendChild(linkElement);
postHeader.parentNode.insertBefore(boldElem, postHeader.nextSibling);
}
}
},
onerror: function (e) {
console.error ('**** error ', e);
},
onabort: function (e) {
console.error ('**** abort ', e);
},
ontimeout: function (e) {
console.error ('**** timeout ', e);
}
} );