Alex_63
Yup, that new code works perfectly now in parent forms too. Thank you!
I had already amended your original code so that it applies to every viewtopic link in the forum, simply by modifying the array of selectors in the a= variable, like so:
a='.container .tcl a[href*="viewtopic"],.container .tcr a[href*="viewtopic"],.container #s-topics .t1 a[href*="viewtopic"],.container .post-sig a[href*="viewtopic"]';
That was easy, and it works everywhere in both left and right columns, including search results, post signatures, and the new smart title search feature you guys added to the admin scripts (love that one by the way!).
Got one last little tweak to get in there if possible. The script doesn't recognize viewtopic links on the /respect.php?id=n page, likely because the query string & topic ID are different. Everywhere else in the forum, viewtopic links appear in the html like so:
/viewtopic.php?id=2183#p7135
But on the /respect.php?id=n page(s), a link to that same topic#post appears like so:
/viewtopic.php?pid=7135#p7135
Is there a way we can get the script to also recognize those viewtopic.php?pid links too? I tried adding ?pid to the hrefs in the a= variable as above, but it doesn't look like query strings work there.
Added after 25 minutes 11 seconds:
Oops, just noticed I'm now getting that same loading spinner on the Users Online page at online.php where the code was working before.
Looks like the only change in the latest code is:
function(){var g=!$(this).parents(".category,#f-subforums")...
What selector would need to be added/removed from there to get it working again in online.php , lol?
Last edited by Buzzer (2017-06-25 17:57:08)