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


Back to top Go down

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


Back to top Go down

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


Back to top Go down

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

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

Bump
avatar
Guest
Guest


Back to top Go down

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

YoshiGM
YoshiGM
Active Poster

Male Posts : 1560
Reputation : 146
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 August 23rd 2015, 2:34 am

Alright, thanks Yoshi.
avatar
Guest
Guest


Back to top Go down

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

Male Posts : 51526
Reputation : 3523
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