The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Notifications - title of topic in witch I've been tagged

+4
ZuniThoang
TheCrow
SLGray
tear
8 posters

Go down

Notifications - title of topic in witch I've been tagged Empty Notifications - title of topic in witch I've been tagged

Post by tear May 10th 2019, 3:24 pm

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:
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}
});
(parts middle_text and empty_title are in Polish)
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!
tear
tear
New Member

Female Posts : 3
Reputation : 1
Language : Polish

http://childrenofnight.forumpolish.com

Back to top Go down

Notifications - title of topic in witch I've been tagged Empty Re: Notifications - title of topic in witch I've been tagged

Post by SLGray May 10th 2019, 9:37 pm

The topic was posted in the wrong section, so I have moved it to the correct section.
Please read our forum rules:  ESF General Rules


Notifications - title of topic in witch I've been tagged Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51514
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Notifications - title of topic in witch I've been tagged Empty Re: Notifications - title of topic in witch I've been tagged

Post by tear May 12th 2019, 5:21 pm

Update: okay, so I figured it out, but now I have a new problem.
Notifications - title of topic in witch I've been tagged 17I1CJ7


How can I change "-" into the space character?
tear
tear
New Member

Female Posts : 3
Reputation : 1
Language : Polish

http://childrenofnight.forumpolish.com

Back to top Go down

Notifications - title of topic in witch I've been tagged Empty Re: Notifications - title of topic in witch I've been tagged

Post by TheCrow May 12th 2019, 10:17 pm

Hello @tear,

Can you please post the script you are currently using?

Regards.


Notifications - title of topic in witch I've been tagged Thecro10
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!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6921
Reputation : 795
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Notifications - title of topic in witch I've been tagged Empty Re: Notifications - title of topic in witch I've been tagged

Post by tear May 13th 2019, 12:41 am

There you go!
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&amp;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&amp;nid=%(nid)s&amp;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&amp;nid=%(nid)s&amp;part=misc&amp;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];
});
tear
tear
New Member

Female Posts : 3
Reputation : 1
Language : Polish

http://childrenofnight.forumpolish.com

Back to top Go down

Notifications - title of topic in witch I've been tagged Empty Re: Notifications - title of topic in witch I've been tagged

Post by ZuniThoang May 17th 2019, 5:50 am

The sharing is very helpful, thank you very much
ZuniThoang
ZuniThoang
Forumember

Male Posts : 45
Reputation : 4
Language : Vietnamese
Location : hanoi

https://raovat.4umer.com/

Back to top Go down

Notifications - title of topic in witch I've been tagged Empty Re: Notifications - title of topic in witch I've been tagged

Post by skouliki May 17th 2019, 8:22 am

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.
skouliki
skouliki
Manager
Manager

Female Posts : 15187
Reputation : 1696
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Notifications - title of topic in witch I've been tagged Empty Re: Notifications - title of topic in witch I've been tagged

Post by Katie941 May 21st 2019, 12:28 pm

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
Katie941
Katie941
New Member

Posts : 2
Reputation : 1
Language : English

https://help.forumotion.com/

Back to top Go down

Notifications - title of topic in witch I've been tagged Empty Re: Notifications - title of topic in witch I've been tagged

Post by skouliki May 21st 2019, 12:41 pm

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 
skouliki
skouliki
Manager
Manager

Female Posts : 15187
Reputation : 1696
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Notifications - title of topic in witch I've been tagged Empty Re: Notifications - title of topic in witch I've been tagged

Post by Passy33 May 22nd 2019, 10:18 pm

tear 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:
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}
});
(parts middle_text and empty_title are in Polish)
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!
What a problem! I am speechless
Passy33
Passy33
New Member

Posts : 1
Reputation : 1
Language : English

https://htttp://www.bobaforum.com

Back to top Go down

Notifications - title of topic in witch I've been tagged Empty Re: Notifications - title of topic in witch I've been tagged

Post by skouliki May 22nd 2019, 10:30 pm

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.
skouliki
skouliki
Manager
Manager

Female Posts : 15187
Reputation : 1696
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Notifications - title of topic in witch I've been tagged Empty Re: Notifications - title of topic in witch I've been tagged

Post by Hope447 May 30th 2019, 2:03 pm

Thanks for the clarification.

vidmate.software/


Last edited by Hope447 on June 1st 2019, 1:05 pm; edited 1 time in total
Hope447
Hope447
New Member

Posts : 1
Reputation : 1
Language : English

https://help.forumotion.com

Back to top Go down

Notifications - title of topic in witch I've been tagged Empty Re: Notifications - title of topic in witch I've been tagged

Post by skouliki May 30th 2019, 5:49 pm

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.
skouliki
skouliki
Manager
Manager

Female Posts : 15187
Reputation : 1696
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum