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.

Chatbox: remove the "@" symbol for administrators?

2 posters

Go down

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

Post by Guest Fri 21 Aug - 6:22

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 Sun 23 Aug - 3:34; edited 3 times in total
avatar
Guest
Guest


Back to top Go down

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

Post by Guest Fri 21 Aug - 7:20

Are you talking about the Chatbox?

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


Back to top Go down

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

Post by Guest Fri 21 Aug - 7:36

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


Back to top Go down

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

Post by Guest Sat 22 Aug - 11:29

Bump
avatar
Guest
Guest


Back to top Go down

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

Post by YoshiGM Sat 22 Aug - 19:27

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

YoshiGM
YoshiGM
Active Poster

Male Posts : 1492
Reputation : 144
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

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

Post by Guest Sun 23 Aug - 3:34

Alright, thanks Yoshi.
avatar
Guest
Guest


Back to top Go down

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

Post by SLGray Sun 23 Aug - 17:05

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

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

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

Back to top Go down

Back to top

- Similar topics

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