Get ride of @ next username

Go down

Solved Get ride of @ next username

Post by Guest on Sat 19 Mar 2016 - 18:54

You know when you log on to the chatbox next to username says @flora used this code to get ride of the @ not sure what did wrong heres picture of the code I did forum link yugiohgameclub.forumotion.com


Last edited by musacafe on Sat 19 Mar 2016 - 20:56; edited 1 time in total
avatar
Guest
Guest


Back to top Go down

Solved Re: Get ride of @ next username

Post by Take Notes on Sat 19 Mar 2016 - 18:57

What's your forum link and version?
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Solved Re: Get ride of @ next username

Post by Guest on Sat 19 Mar 2016 - 19:00

Forum link yugiohgameclub.forumotion.com and verison phpbb3
avatar
Guest
Guest


Back to top Go down

Solved Re: Get ride of @ next username

Post by Take Notes on Sat 19 Mar 2016 - 19:03

Remove the code in your CSS.

This code is for JavaScript. Add this in your JavaScript (In all pages):

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('')
          })
        };
      };
      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){}})
    });
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Solved Re: Get ride of @ next username

Post by Guest on Sat 19 Mar 2016 - 19:34

Not sure what did wrong
avatar
Guest
Guest


Back to top Go down

Solved Re: Get ride of @ next username

Post by Take Notes on Sat 19 Mar 2016 - 19:43

Not sure what you did wrong either.

Change the title to "ChatBox change @" and save so it is easier to find in future.

Please send a screenshot of the ChatBox showing the code is not working. Are you using the ChatBox on the homepage or the full screen ChatBox with a link?

Also, if I may ask, what computer do you use? I'm sure I can help you with finding a more efficient way of taking a screenshot Smile
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Solved Re: Get ride of @ next username

Post by Take Notes on Sat 19 Mar 2016 - 20:29

Check this page out for screenshot taking:
http://m.wikihow.com/Take-a-Screenshot-on-a-Dell

Please send me a test account with admin rights in private message.
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Solved Re: Get ride of @ next username

Post by Guest on Sat 19 Mar 2016 - 20:33

alright
avatar
Guest
Guest


Back to top Go down

Solved Re: Get ride of @ next username

Post by Take Notes on Sat 19 Mar 2016 - 20:50

I have fixed the mistake and it is now working!

I believe you replaced "username" in the code to yours? That part was not supposed to change. Also, you didn't enable JavaScript. So now the JavaScript is fixed an enabled.
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Solved Re: Get ride of @ next username

Post by Guest on Sat 19 Mar 2016 - 20:55

Oh okay didnt know Smile thank you Smile solved
avatar
Guest
Guest


Back to top Go down

Solved Re: Get ride of @ next username

Post by Take Notes on Sat 19 Mar 2016 - 20:56

musacafe wrote:Oh okay didnt know Smile thank you Smile solved
You're welcome! Have a nice day!
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Solved Re: Get ride of @ next username

Post by SLGray on Sat 19 Mar 2016 - 21:52

Topic solved and archived



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

Male Posts : 45004
Reputation : 3174
Language : English
Location : United States

https://help.forumotion.com/

Back to top Go down

Back to top


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