Moving JScrpit's Staff Chatbox
3 posters
Page 1 of 1
Moving JScrpit's Staff Chatbox
Hello I'm looking to move the staff chatbox to right below the public chatbox, I have my public chatbox above the widgets on the home page using this code.
Full code after change
This above was what i used to move the public chatbox to the top of the widgets that JScript provided (thanks again)
Thank you for the help in advance.
- Code:
$('#' + chatbox_id).parent().detach().prependTo('#wrapper');
Full code after change
- Code:
document.getElementById(chatbox_id).innerHTML = '<iframe src="/chatbox/index.forum?archives=1" id="frame_chatbox" scrolling="no" width="100%" height="100%" marginwidth="0" marginheight="0" frameborder="0"></iframe>';
$('#' + chatbox_id).parent().detach().prependTo('#wrapper');
This above was what i used to move the public chatbox to the top of the widgets that JScript provided (thanks again)
Thank you for the help in advance.
Re: Moving JScrpit's Staff Chatbox
do it the same way u did the chatbox
i didnt test this so hope it works
i didnt test this so hope it works
- Code:
$(function(){
$('#js_chatstaff').parent().detach().prependTo('#wrapper');
});
Re: Moving JScrpit's Staff Chatbox
Hello!
What my code does is occupy the category information space created for the pseudo database!
See image below and you understand it better:
So to move it would also have to move the category bar, is not difficult, but I think it would not be cool, but if you so desire!
JS
What my code does is occupy the category information space created for the pseudo database!
See image below and you understand it better:
So to move it would also have to move the category bar, is not difficult, but I think it would not be cool, but if you so desire!
JS
Re: Moving JScrpit's Staff Chatbox
ah i see then we will just leave it as is. also the code provided above moves the chat but as JScript said the category will need to move too thanks guys
Last edited by FrOsTyXi on December 7th 2014, 10:28 pm; edited 1 time in total
Re: Moving JScrpit's Staff Chatbox
this should work ... it wont show until a new message is posted
replace
with
replace
- Code:
cbStaff.PUSERNAME = $('a[href^="/u"]:contains('+ _userdata.username + ')')[0].innerHTML;
with
- Code:
cbStaff.PUSERNAME = '<strong><a href="/u' + _userdata.user_id + '">' + $('a[href^="/u"]:contains('+ _userdata.username + ')')[0].innerHTML + '</a></strong>';
Re: Moving JScrpit's Staff Chatbox
_Twisted_Mods_ wrote:this should work ... it wont show until a new message is posted
replace
- Code:
cbStaff.PUSERNAME = $('a[href^="/u"]:contains('+ _userdata.username + ')')[0].innerHTML;
with
- Code:
cbStaff.PUSERNAME = '<strong><a href="/u' + _userdata.user_id + '">' + $('a[href^="/u"]:contains('+ _userdata.username + ')')[0].innerHTML + '</a></strong>';
this worked perfect thank you very much!!
Re: Moving JScrpit's Staff Chatbox
I do not know what that has to do with the topic title, but could be simply:_Twisted_Mods_ wrote:this should work ... it wont show until a new message is posted (...)
replace:
- Code:
cbStaff.PUSERNAME = $('a[href^="/u"]:contains('+ _userdata.username + ')')[0].innerHTML;
with:
- Code:
cbStaff.PUSERNAME = $('a[href^="/u"]:contains('+ _userdata.username + ')')[0].outerHTML;
JS
Re: Moving JScrpit's Staff Chatbox
yea guess u could do that 2 .. still have to add the strong depending on how your coloring the user names.. but either way im still learning
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum