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
2 posters

    Chatbox: remove the "@" symbol for administrators?

    avatar
    Guest
    Guest


    Solved Chatbox: remove the "@" symbol for administrators?

    Post by Guest August 21st 2015, 5:22 am

    Hello, I'm wondering if there was some kind of code to remove the @ symbol for our administrators at GeNo Clan Forums.


    Forum URL: GeNociDe Clan Forums
    Forum Style: PHPBB3


    Last edited by Ghost on August 23rd 2015, 2:34 am; edited 3 times in total
    avatar
    Guest
    Guest


    Solved Re: Chatbox: remove the "@" symbol for administrators?

    Post by Guest August 21st 2015, 6:20 am

    Are you talking about the Chatbox?

    If so, are you wanting to remove it entirely or replace it with something else?
    avatar
    Guest
    Guest


    Solved Re: Chatbox: remove the "@" symbol for administrators?

    Post by Guest August 21st 2015, 6:36 am

    Leah7 wrote:Are you talking about the Chatbox?

    If so, are you wanting to remove it entirely or replace it with something else?
    Yes, i'm talking about the chatbox. Also yeah remove it entirely.
    avatar
    Guest
    Guest


    Solved Re: Chatbox: remove the "@" symbol for administrators?

    Post by Guest August 22nd 2015, 10:29 am

    Bump
    YoshiGM
    YoshiGM
    Active Poster


    Male Posts : 1557
    Reputation : 146
    Language : Spanish & English
    Location : Mexico

    Solved Re: Chatbox: remove the "@" symbol for administrators?

    Post by YoshiGM August 22nd 2015, 6:27 pm

    Hello @Ghost,

    Try adding this Javascript:

    Code:
    $(window).load(function() {
      var chatbox_script = function() {
        var overrided = Chatbox.prototype.refresh;
        Chatbox.prototype.refresh = function(data) {
          overrided.call(this, data);
          $('.chatbox-username').each(function(){
     
       
     this.previousSibling&&$.trim(this.previousSibling.nodeValue)=="@"&&$(this.previousSibling).replaceWith('<img
     src="http://i.imgur.com/zICIAne.png" /> ')
          })
        };
      };
      var
     
    s=document.createElement('script');s.text="("+chatbox_script.toString()+")();";$('object[data^="/chatbox/index.forum"],iframe[src^="/chatbox/index.forum"]').each(function(){try{$(this.contentDocument||this.contentWindow.document).find("#chatbox").closest("html").find("head").first().each(function(){this.appendChild(s.cloneNode(true))})}catch(a){}})
    });

    Place: In All Pages.

    You should change
    <img src="https://i.imgur.com/zICIAne.png" />
    for the link of the new icon that you want for chat moderators o leave empty to remove it Wink

    avatar
    Guest
    Guest


    Solved Re: Chatbox: remove the "@" symbol for administrators?

    Post by Guest August 23rd 2015, 2:34 am

    Alright, thanks Yoshi.
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Chatbox: remove the "@" symbol for administrators?

    Post by SLGray August 23rd 2015, 4:05 pm

    Topic solved and archived




    Chatbox: remove the "@" symbol for administrators? Slgray10

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

      Current date/time is September 23rd 2024, 8:33 am