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.

want to make my username on chatbox like it appears when i use this.

View previous topic View next topic Go down

Solved want to make my username on chatbox like it appears when i use this.

Post by Goppyrules on June 6th 2013, 3:11 am

Code:
$.getScript("http://xoxco.com/projects/code/rainbow/rainbow.js",function(){
$('a[href="/u1"] strong').rainbow({
colors: [
'#FF0000',
'#f26522',
'#fff200',
'#00a651',
'#28abe2',
'#2e3192',
'#6868ff'
],
animate: true,
animateInterval: 100,
pad: false,
pauseLength: 10,
});
});

anyway i can have my name appear exactly how it appears if i use this code? any help would be super awesome

Goppyrules
Forumember

Posts : 80
Reputation : 1
Language : english

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by Nostra on June 6th 2013, 5:34 am

Could you provide your forum url and show us where your chat is placed? (i hope it isn't avacweb's overweighted chat)

Nostra
Forumember

Female Posts : 30
Reputation : 3
Language : .it
Location : Neverland

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by SLGray on June 6th 2013, 6:03 am

@Nostra wrote:Could you provide your forum url and show us where your chat is placed? (i hope it isn't avacweb's overweighted chat)
Please don't use bold or color. Please keep to the default text. This is reserved for the staff for moderation.


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


SLGray
Administrator
Administrator

Male Posts : 35666
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by Goppyrules on June 6th 2013, 6:08 am

http://bondofsix.motionsforum.com/forum the thing is i like how the name is multi colored on the forum but i want it to appear on the chatbox so it like right.

Goppyrules
Forumember

Posts : 80
Reputation : 1
Language : english

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by Nostra on June 6th 2013, 6:19 am

Are you using avacveb chat or native forumotion's one?

It is possible, but needs some manipulations with iframes and scripting. So I need to know where your chatbox is placed and in which place. I can't see it as a guest.

Nostra
Forumember

Female Posts : 30
Reputation : 3
Language : .it
Location : Neverland

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by Goppyrules on June 6th 2013, 6:56 am

its placed on bottom right and its from the native forumotion's one because it looks the same as the chatbox that forumotion provides. ok so now guests can see the chatbox

Goppyrules
Forumember

Posts : 80
Reputation : 1
Language : english

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by Nostra on June 6th 2013, 7:37 am

U can hide it. I've registered already.

Use this script (AP - modules - javascript management - new script (all pages)):
Code:
jQuery(jQuery('#chatbox_ret')[0].contentDocument).add(jQuery('#frame_chatbox')[0].contentDocument).each(function () {
 jQuery.getScript("http://xoxco.com/projects/code/rainbow/rainbow.js",function(){
  funcy = function() {
  jQuery(jQuery('#chatbox_ret')[0].contentDocument).find('a[href="/u1"] strong').each(function () {
  if (this.innerText == this.innerHTML)
  jQuery(this).rainbow({
    colors: [
    '#FF0000',
    '#f26522',
    '#fff200',
    '#00a651',
    '#28abe2',
    '#2e3192',
    '#6868ff'
    ],
    animate: true,
    animateInterval: 100,
    pad: false,
    pauseLength: 10,
  });
  });
 };
 setInterval('funcy();',1000);
 });
});

Nostra
Forumember

Female Posts : 30
Reputation : 3
Language : .it
Location : Neverland

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by Goppyrules on June 6th 2013, 8:43 am

it doesnt work at all. i dont see a change. i think its the avacwebchat since there isnt any change.

Goppyrules
Forumember

Posts : 80
Reputation : 1
Language : english

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by Nostra on June 6th 2013, 9:04 am

That's all because your forum has script errors:


Find and remove this (I guess it should be placed in a widjet):
Code:
<script src="http://static.tumblr.com/hhedat8/OUkmkh864/script.js"></script> <script src="http://static.tumblr.com/hhedat8/cfemkh9df/script.js"></script><div id="modal"><div id="content1"><link rel="stylesheet"href="http://static.tumblr.com/hhedat8/FpYmkhikx/chatbox.css"><object data="/chatbox/index.forum?page=front&amp;"id="frame_chatbox"scrolling="yes"type="text/html"height="100%"width="100%"></object> </div></div> <a href="#" id="button" style="position: fixed; right: 25px; bottom: 20px; border: 1px blue; border-radius: 5px; padding: 5px; background: lightgoldenrodyellow; font-family: Calibri; font-size: 11px; ">MCA Chat.</a>$(function(){if(document.getElementById('logout'))$.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=')});</a><!--start sidebar--><div id="floating_sidebar"><table><tr><td><div style="border: 2px solid blue; background-color: #14C4D1; padding: 5px;"><a id="myHeader1-2"href="javascript:showonlyonev2('newboxes1-2');"><center>MENU/center></a></div><div class="newboxes-2"id="newboxes1-2"style="border: 2px solid blue; background-color: #1A1A1A; display: block;padding: 5px;"><font size=1><center></br><a href="http://newdominoacademy.forumotion.com/f7-announcements">Announcements</a><br></br><a href="http://newdominoacademy.forumotion.com/t1478-new-rules">Rules</a><br></br><a href="http://newdominoacademy.forumotion.com/f16-introductions">Introductions</a><br></br><a href="http://newdominoacademy.forumotion.com/f10-tournaments-arena">Tournaments</a><br></br><a href="http://newdominoacademy.forumotion.com/t413-new-testing-system">Testing Rubric</a><br></br></font></center></div></td><td></div></td></tr></table><div id="myfooter"style="height:40px;position:fixed;width:800px;top:auto;right:0;margin:0 auto;bottom:0;left:0;"></div></td></tr></table><br/>
And this:
Code:
http:
And even this Razz
Code:
"(document.getElementById('chatbox_ret').style.display=='block')?my_setcookie('chatbox_ret','0',0,0):my_setcookie('chatbox_ret','1',1,0); $('#chatbox_ret').toggle('normal');"class="c2">

I've tested it in console. The code is correct.

Nostra
Forumember

Female Posts : 30
Reputation : 3
Language : .it
Location : Neverland

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by refresh102 on June 6th 2013, 9:29 am

Do You Want To Hide Chatbox From Guest? IF SO

Your HTML Put In A Widget And Customize The Widget To Members Only ~Above~

refresh102
Forumember

Male Posts : 181
Reputation : 4
Language : English,Japanese

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by Goppyrules on June 6th 2013, 9:56 am

@Nostra wrote:That's all because your forum has script errors:


Find and remove this (I guess it should be placed in a widjet):
Code:
<script src="http://static.tumblr.com/hhedat8/OUkmkh864/script.js"></script> <script src="http://static.tumblr.com/hhedat8/cfemkh9df/script.js"></script><div id="modal"><div id="content1"><link rel="stylesheet"href="http://static.tumblr.com/hhedat8/FpYmkhikx/chatbox.css"><object data="/chatbox/index.forum?page=front&"id="frame_chatbox"scrolling="yes"type="text/html"height="100%"width="100%"></object> </div></div> <a href="#" id="button" style="position: fixed; right: 25px; bottom: 20px; border: 1px blue; border-radius: 5px; padding: 5px; background: lightgoldenrodyellow; font-family: Calibri; font-size: 11px; ">MCA Chat.</a>$(function(){if(document.getElementById('logout'))$.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=')});</a><!--start sidebar--><div id="floating_sidebar"><table><tr><td><div style="border: 2px solid blue; background-color: #14C4D1; padding: 5px;"><a id="myHeader1-2"href="javascript:showonlyonev2('newboxes1-2');"><center>MENU/center></a></div><div class="newboxes-2"id="newboxes1-2"style="border: 2px solid blue; background-color: #1A1A1A; display: block;padding: 5px;"><font size=1><center></br><a href="http://newdominoacademy.forumotion.com/f7-announcements">Announcements</a><br></br><a href="http://newdominoacademy.forumotion.com/t1478-new-rules">Rules</a><br></br><a href="http://newdominoacademy.forumotion.com/f16-introductions">Introductions</a><br></br><a href="http://newdominoacademy.forumotion.com/f10-tournaments-arena">Tournaments</a><br></br><a href="http://newdominoacademy.forumotion.com/t413-new-testing-system">Testing Rubric</a><br></br></font></center></div></td><td></div></td></tr></table><div id="myfooter"style="height:40px;position:fixed;width:800px;top:auto;right:0;margin:0 auto;bottom:0;left:0;"></div></td></tr></table><br/>
And this:
Code:
http:
And even this Razz
Code:
"(document.getElementById('chatbox_ret').style.display=='block')?my_setcookie('chatbox_ret','0',0,0):my_setcookie('chatbox_ret','1',1,0); $('#chatbox_ret').toggle('normal');"class="c2">

I've tested it in console. The code is correct.

i did exactly what you told me to do and still nothing.

Goppyrules
Forumember

Posts : 80
Reputation : 1
Language : english

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by Nostra on June 6th 2013, 10:18 am

Replace the old code with this one:
Code:
jQuery(jQuery('iframe[src*="/chatbox"]')[0].contentDocument).each(function () {
 jQuery.getScript("http://xoxco.com/projects/code/rainbow/rainbow.js",function(){
  funcy = function() {
  jQuery(jQuery('iframe[src*="/chatbox"]')[0].contentDocument).find('a[href="/u1"] strong').each(function () {
  if (this.innerText == this.innerHTML)
  jQuery(this).rainbow({
    colors: [
    '#FF0000',
    '#f26522',
    '#fff200',
    '#00a651',
    '#28abe2',
    '#2e3192',
    '#6868ff'
    ],
    animate: true,
    animateInterval: 100,
    pad: false,
    pauseLength: 10,
  });
  });
 };
 setInterval('funcy();',1000);
 });
});
jQuery(jQuery('object[data*="/chatbox"]')[0].contentDocument).each(function () {
 jQuery.getScript("http://xoxco.com/projects/code/rainbow/rainbow.js",function(){
  funcy2 = function() {
  jQuery(jQuery('object[data*="/chatbox"]')[0].contentDocument).find('a[href="/u1"] strong').each(function () {
  if (this.innerText == this.innerHTML)
  jQuery(this).rainbow({
    colors: [
    '#FF0000',
    '#f26522',
    '#fff200',
    '#00a651',
    '#28abe2',
    '#2e3192',
    '#6868ff'
    ],
    animate: true,
    animateInterval: 100,
    pad: false,
    pauseLength: 10,
  });
  });
 };
 setInterval('funcy2();',1000);
 });
});

Nostra
Forumember

Female Posts : 30
Reputation : 3
Language : .it
Location : Neverland

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by Goppyrules on June 6th 2013, 10:21 am

solved thanks nostra.

Goppyrules
Forumember

Posts : 80
Reputation : 1
Language : english

Back to top Go down

Solved Re: want to make my username on chatbox like it appears when i use this.

Post by SLGray on June 6th 2013, 6:35 pm

Topic Solved & Locked


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


SLGray
Administrator
Administrator

Male Posts : 35666
Reputation : 2375
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