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.

Get ride of @ next username

View previous topic View next topic Go down

Solved Get ride of @ next username

Post by Guest on March 19th 2016, 11:54 pm

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 March 20th 2016, 1:56 am; edited 1 time in total

Guest
Guest


Back to top Go down

Solved Re: Get ride of @ next username

Post by Genesis on March 19th 2016, 11:57 pm

What's your forum link and version?

Genesis
Helper
Helper

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: Get ride of @ next username

Post by Guest on March 20th 2016, 12:00 am

Forum link yugiohgameclub.forumotion.com and verison phpbb3

Guest
Guest


Back to top Go down

Solved Re: Get ride of @ next username

Post by Genesis on March 20th 2016, 12:03 am

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){}})
    });

Genesis
Helper
Helper

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: Get ride of @ next username

Post by Guest on March 20th 2016, 12:34 am

Not sure what did wrong

Guest
Guest


Back to top Go down

Solved Re: Get ride of @ next username

Post by Genesis on March 20th 2016, 12:43 am

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

Genesis
Helper
Helper

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: Get ride of @ next username

Post by Genesis on March 20th 2016, 1:29 am

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.

Genesis
Helper
Helper

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: Get ride of @ next username

Post by Guest on March 20th 2016, 1:33 am

alright

Guest
Guest


Back to top Go down

Solved Re: Get ride of @ next username

Post by Genesis on March 20th 2016, 1:50 am

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.

Genesis
Helper
Helper

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: Get ride of @ next username

Post by Guest on March 20th 2016, 1:55 am

Oh okay didnt know Smile thank you Smile solved

Guest
Guest


Back to top Go down

Solved Re: Get ride of @ next username

Post by Genesis on March 20th 2016, 1:56 am

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

Genesis
Helper
Helper

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: Get ride of @ next username

Post by SLGray on March 20th 2016, 2:52 am

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 : 36691
Reputation : 2445
Language : English
Location : United States

http://ztwds.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