How to personalize my toolbar Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    How to personalize my toolbar

    avatar
    sunshine_222
    Forumember


    Posts : 99
    Reputation : 3
    Language : english

    Solved How to personalize my toolbar

    Post by sunshine_222 Sat 10 Jan - 19:48

    How to personalize my toolbar?
    https://i.servimg.com/u/f59/18/21/41/30/captur47.png

    Is it possible to give me a script to change the titles: share/welcome/notifications
    in other language? I didn't find these titles in the scripts.


    Last edited by sunshine_222 on Sun 11 Jan - 12:01; edited 1 time in total
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: How to personalize my toolbar

    Post by Ange Tuteur Sun 11 Jan - 0:11

    Hello @sunshine_222,

    Go to Administration panel > Modules > JavaScript codes management > Create a new script

    Title : your choice
    Placement : in the homepage
    Code:
    $(function() {
      // textual translation of fa_toolbar
      var $lang = {
        welcome : Welcome text',
        notifications : 'Notification text',
        share : 'Share text',
       
        view_profil : 'View profile text',
        watched : 'My watched topics text',
        priv_msg : 'My private message text',
        logout : 'Logout text'
      };
     
      $(function() {
        // logged in content
        if (_userdata.session_logged_in) {
          // fa_right
          $('#fa_welcome').text($lang.welcome + ' ' + _userdata.username);
          $('#fa_notifications').html($lang.notifications + '<span id="notif_unread"></span>');
         
          // fa_menulist
          $('#fa_menulist li:eq(0) a').text($lang.view_profil);
          $('#fa_menulist li:eq(5) a').text($lang.watched);
          $('#fa_menulist li:eq(6) a').text($lang.priv_msg);
          $('#fa_menulist li:last a').text($lang.logout);
        }
       
        // global content
        $('#fa_share_text').text($lang.share);
      });
    });

    At the top of the script you'll see this :
    Code:
     var $lang = {
        welcome : 'Welcome text',
        notifications : 'Notification text',
        share : 'Share text',
       
        view_profil : 'View profile text',
        watched : 'My watched topics text',
        priv_msg : 'My private message text',
        logout : 'Logout text'
      };

    Here you can translate the text to what you want.
    avatar
    sunshine_222
    Forumember


    Posts : 99
    Reputation : 3
    Language : english

    Solved Re: How to personalize my toolbar

    Post by sunshine_222 Sun 11 Jan - 11:59

    Thank you, Ange Tuteur! sunny
    Ramdaman
    Ramdaman
    Active Poster


    Male Posts : 1590
    Reputation : 99
    Language : English, Albanian, Macedonian, Russian | HTML, CSS
    Location : New York City

    Solved Re: How to personalize my toolbar

    Post by Ramdaman Sun 11 Jan - 13:27

    Topic solved and archived.