Notifications - title of topic in witch I've been tagged
+4
ZuniThoang
TheCrow
SLGray
tear
8 posters
Page 1 of 1
Notifications - title of topic in witch I've been tagged
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!
Re: Notifications - title of topic in witch I've been tagged
The topic was posted in the wrong section, so I have moved it to the correct section.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Notifications - title of topic in witch I've been tagged
Update: okay, so I figured it out, but now I have a new problem.
How can I change "-" into the space character?
How can I change "-" into the space character?
Re: Notifications - title of topic in witch I've been tagged
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: Notifications - title of topic in witch I've been tagged
There you go!
It's from one of "tips and tricks" on the forum.
It's from one of "tips and tricks" on the forum.
- Code:
$(function() {
var toolbar_alias = {
Share : 'Podziel się',
Login : 'Zaloguj się',
Register : 'Załóż konto',
Welcome : 'Cześć,',
Notifications : 'Powiadomienia',
See_my_profile : 'Otwórz profil',
Edit_profile : 'Ustawienia profilu',
All_Topics : 'Moje tematy',
All_Messages : 'Moje posty',
js_topics_followed : 'Obserwowane tematy',
Admin_panel : 'Panel Administracyjny',
Logout : 'Wyloguj się',
Notif_see_all : 'Rozwiń wszystkie powiadomienia',
Notif_priv_msg : 'Masz nową <a href="/privmsg?folder=inbox&nid=%(nid)s">wiadomość prywatną</a> od użytkownika <a href="/u%(id)d">%(name)s</a>',
Notif_report : '<a href="/u%(id)d">%(name)s</a> has created a <a href="/report?nid=%(nid)s">message report</a>',
Notif_friend_req : '<a href="/u%(id)d">%(name)s</a> zaprasza Cię do <a href="/profile?mode=editprofile&nid=%(nid)s&page_profil=friendsfoes">grona przyjaciół!</a>',
Notif_group_req : '<a href="/u%(id)d">%(name)s</a> prosi o dołączenie do grupy <a href="/g%(group_id)d-%(group_url_name)s?nid=%(nid)s">%(group_name)s</a>',
Notif_friend_con : '<a href="/u%(id)d">%(name)s</a> jest zalogowany',
Notif_wall_msg : '<a href="/u%(id)d">%(name)s</a> has just written a message on <a href="/u%(self)dwall?nid=%(nid)s">your wall</a>',
Notif_abuse : 'Zgłoszono <a href="/admin/index.forum?mode=active&nid=%(nid)s&part=misc&sub=support">nadużycie</a>',
Notif_topic_watch : '<a href="/u%(id)d">%(name)s</a> napisał wiadomość w obserwowanym przez Ciebie temacie: <a href="/t%(topic_id)d-%(topic_name)s?nid=%(nid)s#%(post_id)d">%(topic_name)s</a>',
Notif_topic_watch_p : '<a href="/u%(id)d">%(name)s</a> napisał w obserwowanym przez Ciebie temacie: <a href="/t%(topic_id)dp%(start)d-%(topic_name)s?nid=%(nid)s#%(post_id)d">%(topic_name)s</a>',
Notif_topic_watch_guest : 'Gość napisał wiadomość w obserwowanym przez Ciebie temacie: <a href="/t%(topic_id)d-%(topic_name)s?nid=%(nid)s#%(post_id)d">%(topic_name)s</a>',
Notif_topic_watch_p_guest : 'Gość napisał wiadomość w obserwowanym przez Ciebie temacie: <a href="/t%(topic_id)dp%(start)d-%(topic_name)s?nid=%(nid)s#%(post_id)d">%(topic_name)s</a>',
Notif_mention : '<a href="/u%(id)d">%(name)s</a> oznaczył Cię w temacie <a href="/t%(topic_id)dp%(start)d-%(topic_name)s?nid=%(nid)s#%(post_id)d">%(topic_name)s</a>',
Notif_hashtag : 'The keyword <a href="/tags/%(tag)s">#%(tag)s</a> has been tagged in <a href="/t%(topic_id)dp%(start)d-%(topic_name)s?nid=%(nid)s#%(post_id)d">a topic</a>.',
All_PMs : 'Skrzynka odbiorcza',
No_assigned_rank : 'Nie posiadasz rangi',
Posts : 'Posty',
PMs : 'PMs',
Reputation : 'Punkty uznania'
},i;
if (window._lang) for (i in toolbar_alias) window._lang[i] = toolbar_alias[i];
});
Re: Notifications - title of topic in witch I've been tagged
The sharing is very helpful, thank you very much
Re: Notifications - title of topic in witch I've been tagged
ZuniThoang wrote:The sharing is very helpful, thank you very much
Please only post in support topics if you can offer a solution or give advice.
Re: Notifications - title of topic in witch I've been tagged
This is great informative information you have been shared here… Thank you for this information.
Last edited by Katie941 on May 22nd 2019, 12:53 pm; edited 1 time in total
Re: Notifications - title of topic in witch I've been tagged
Katie941 wrote:This is great informative information you have been shared… Thank you for this information.
Please only post in support topics if you can offer a solution or give advice.
this is your second spam post please read our General Rules
Re: Notifications - title of topic in witch I've been tagged
What a problem! I am speechlesstear wrote: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:(parts middle_text and empty_title are in Polish)
- Code:
$(function(){
var middle_text = " napisał w ";
var empty_title = "tym temacie"; [url=http://www.rachat-de-credit-simulation.com/rachat-de-credit] Rachat de crédit [/url]
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!
Re: Notifications - title of topic in witch I've been tagged
Passy33 wrote:
What a problem! I am speechless
Please dont hijack someone else thread, only post in support topics if you can offer a solution or give advice.
Re: Notifications - title of topic in witch I've been tagged
Last edited by Hope447 on June 1st 2019, 1:05 pm; edited 1 time in total
Re: Notifications - title of topic in witch I've been tagged
Hope447 wrote:Thanks for the clarification
Please dont hijack someone else thread, only post in support topics if you can offer a solution or give advice.
Similar topics
» Title of tagged topic in notifications
» Topic Title in Notifications bar/page
» Can't change Topic Name in Notifications.
» Title of watched topics in notifications
» [Only Topic] Notifications, Loading, Chatbox, Servimg and Tagging Issues
» Topic Title in Notifications bar/page
» Can't change Topic Name in Notifications.
» Title of watched topics in notifications
» [Only Topic] Notifications, Loading, Chatbox, Servimg and Tagging Issues
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum