The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Chatbox: remove the "@" symbol for administrators?

Go down

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

Post by Guest on Fri Aug 21, 2015 11: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 Sun Aug 23, 2015 8:34 am; edited 3 times in total

Guest
Guest


Back to top Go down

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

Post by Guest on Fri Aug 21, 2015 12:20 pm

Are you talking about the Chatbox?

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

Guest
Guest


Back to top Go down

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

Post by Guest on Fri Aug 21, 2015 12:36 pm

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

Guest
Guest


Back to top Go down

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

Post by Guest on Sat Aug 22, 2015 4:29 pm

Bump

Guest
Guest


Back to top Go down

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

Post by YoshiGM on Sun Aug 23, 2015 12:27 am

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="http://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
YoshiGM
Forumember

Male Posts : 712
Reputation : 97
Language : Spanish, English & Italian (16%)
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

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

Post by Guest on Sun Aug 23, 2015 8:34 am

Alright, thanks Yoshi.

Guest
Guest


Back to top Go down

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

Post by SLGray on Sun Aug 23, 2015 10:05 pm

Topic solved and archived



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

avatar
SLGray
Administrator
Administrator

Male Posts : 42704
Reputation : 3006
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Back to top


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