Hi forumotion!
I've two requests:
-Can we revert the order of the notification list? I mean, the most recent notification we have is at the bottom of the list and i'd like to see it at the top.
-I have this code to only display 1 topic at a time: if two people reply in the topic, only one notification will be displayed. Unfortunately, it only work on the notification page, and i wonder if you could make it work on the toolbar.
The code:
Thanks for your attention!
I've two requests:
-Can we revert the order of the notification list? I mean, the most recent notification we have is at the bottom of the list and i'd like to see it at the top.
-I have this code to only display 1 topic at a time: if two people reply in the topic, only one notification will be displayed. Unfortunately, it only work on the notification page, and i wonder if you could make it work on the toolbar.
The code:
- Code:
location.pathname=="/profile" && location.search.indexOf("page_profil=notifications")!=-1 && $(function(){
var seen = {};
$('.table1 td:first-child,td.gen:first-child,.ipbtable td:first-child,.tcr .postdetails').each(function(){
var a = $(this).html();
var c = a.match(/^(.*) a écrit un message dans (<a href="\/t([0-9]+)(p[0-9]+)?-([^#?"]*)[^"]+">)[^<]+<\/a>$/);
if(!c) return;
if(c[3] in seen) $(this).closest('tr').remove();
else seen[c[3]] = 1;
});
});
Thanks for your attention!