Hello!
My problem seems to be easy to solve, but I still need someone's help.
So - I found this code on the support forum:
anyway, this code works perfectly. But here comes my problem: I'd love to change title of topics in witch I've been tagged by another user. I'm talking about notification "LoveYou3000 tagged you in a topic", 'cause right now I have some notifications in Polish and some in English so it's looking funny. I'd like this notification to look like "LoveYou3000 oznaczył Cię w topic", where "topic" is its title.
Thanks in advance!
My problem seems to be easy to solve, but I still need someone's help.
So - I found this code on the support forum:
- Code:
$(function(){
var middle_text = " napisał w ";
var empty_title = "tym temacie";
if(typeof(compileNotif)!="function")return;var d=compileNotif;Toolbar.compileNotif=compileNotif=function(b){var a=d(b);if(b.text.type==FA.Notification.NOTIF_TOPIC_WATCH){var c=a.match(/^(.*) wrote a message (<a href="\/t[0-9]+(p[0-9]+)?-([^#?"]*)[^"]+">)[^<]+<\/a>$/);c&&(b=c[1]+middle_text+c[2],a=c[4],a="topic"==a||/^[\s-]*$/.test(a)?empty_title:a.replace(/-/g," ").replace(/(^\s+|\s+$)/g,""),a=b+a+"</a>")}return a}
});
anyway, this code works perfectly. But here comes my problem: I'd love to change title of topics in witch I've been tagged by another user. I'm talking about notification "LoveYou3000 tagged you in a topic", 'cause right now I have some notifications in Polish and some in English so it's looking funny. I'd like this notification to look like "LoveYou3000 oznaczył Cię w topic", where "topic" is its title.
Thanks in advance!