I made a userscript that adds "Your posts", "New posts" and "Unread posts" limited to only the currently viewed forum.
So for example when you are in Community General and click the newly appeared "Current forum: New posts", it will show new posts only in Community General and not globally.
You will need a browser plugin called Greasemonkey or Tampermonkey to run these.
Once you have one of them installed, you can create a new script and paste the contents of the script, then save.
It looks like this:

Code: Select all
// ==UserScript==
// @name BGTSCC better search
// @version 1.0.0
// @author Faeryn
// @include https://bgtscc.net/viewforum.php?f=*
// @grant none
// ==/UserScript==
function addSearchLink(parent, title, searchId, id, icon) {
var forum = new URL(document.URL).searchParams.get("f");
var link = document.createElement('li');
link.classList.add("right");
link.innerHTML = '<a id="'+id+'" href="./search.php?search_id='+searchId+'&fid[]='+forum+'"><i class="icon '+icon+'"></i> '+title+'</a>';
parent.appendChild(link);
}
(function() {
'use strict';
if (!document.getElementById("currentForumSearch")) {
var navBar = document.querySelector('.sub-nav');
var secondRow = document.createElement('ul');
secondRow.id="currentForumSearch";
navBar.appendChild(secondRow);
addSearchLink(secondRow, "Unread posts", "unreadposts", "unreadPostsCurrent", "fa-info-circle");
addSearchLink(secondRow, "New posts", "newposts", "newPostsCurrent", "fa-exclamation-circle");
addSearchLink(secondRow, "Your posts", "egosearch", "yourPostsCurrent", "fa-user-circle");
var label = document.createElement('li');
label.classList.add("right");
label.innerHTML = '<b>Current forum:</b>';
secondRow.appendChild(label);
}
})();