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?

View previous topic View next topic Go down

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

Post by Guest on 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

Guest
Guest


Back to top Go down

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

Post by Guest on 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?

Guest
Guest


Back to top Go down

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

Post by Guest on 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.

Guest
Guest


Back to top Go down

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

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

Bump

Guest
Guest


Back to top Go down

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

Post by YoshiGM on 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="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


YoshiGM
Forumember

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

Alright, thanks Yoshi.

Guest
Guest


Back to top Go down

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

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

Topic solved and archived



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


SLGray
Administrator
Administrator

Male Posts : 35613
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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