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.
The forum of the forums
+4
ZuniThoang
TheCrow
SLGray
tear
8 posters

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

    tear
    tear
    New Member


    Female Posts : 3
    Reputation : 1
    Language : Polish

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

    Post by tear Fri 10 May 2019 - 15:24

    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!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    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 Fri 10 May 2019 - 21:37

    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.
    tear
    tear
    New Member


    Female Posts : 3
    Reputation : 1
    Language : Polish

    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 Sun 12 May 2019 - 17:21

    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?
    TheCrow
    TheCrow
    Manager
    Manager


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

    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 Sun 12 May 2019 - 22:17

    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!
    tear
    tear
    New Member


    Female Posts : 3
    Reputation : 1
    Language : Polish

    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 Mon 13 May 2019 - 0:41

    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];
    });
    ZuniThoang
    ZuniThoang
    Forumember


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

    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 Fri 17 May 2019 - 5:50

    The sharing is very helpful, thank you very much
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    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 Fri 17 May 2019 - 8:22

    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.

    Katie941
    Katie941
    New Member


    Posts : 2
    Reputation : 1
    Language : English

    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 Tue 21 May 2019 - 12:28

    This is great informative information you have been shared here… Thank you for this information.


    Last edited by Katie941 on Wed 22 May 2019 - 12:53; edited 1 time in total
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    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 Tue 21 May 2019 - 12:41

    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 

    Passy33
    Passy33
    New Member


    Posts : 1
    Reputation : 1
    Language : English

    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 Wed 22 May 2019 - 22:18

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


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    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 Wed 22 May 2019 - 22:30

    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.

    Hope447
    Hope447
    New Member


    Posts : 1
    Reputation : 1
    Language : English

    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 Thu 30 May 2019 - 14:03

    Thanks for the clarification.

    vidmate.software/


    Last edited by Hope447 on Sat 1 Jun 2019 - 13:05; edited 1 time in total
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    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 Thu 30 May 2019 - 17:49

    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.


      Current date/time is Mon 11 Nov 2024 - 16:17