Kayako logo
Modifications & Addon Releases Modification guides and addons are posted here to share with the community. Do not post requests in here!

Notices

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
Chris Boulton Offline
Member
 
Posts: 152
Join Date: Jun 2003
Location: Sydney, Australia
Floating "chat info" header - 28-06-2007, 03:05 PM

Quite hard to describe, but I'll do my best.

One of my annoyances with LiveResponse chats is that the info about who the chat is with is right at the top of the chat session - and it becomes quite annoying to scroll back up just to find that info.

What this modification does is "floats" that info at the top of the chat session so it's very easy for you to access/look at any time no matter the scroll position of the session.

Screenshot:


Instructions:

1. Open up themes/admin_default/winappchatcontentframe.tpl

Find:
Code:
<{include file="header.tpl"}>

Add under:
Code:
<style type="text/css">
#chat_info {
	left: expression((ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + 'px' );
	top: expression((ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + 'px' );
	position: absolute;
}

#buffer {
	padding-top: expression(document.getElementById('chat_info').offsetHeight);
}
</style>
Find:
Code:
<div id="buffer" style="WIDTH: 100%; HEIGHT: 100%;"><table width='100%'  border='0' cellspacing='0' cellpadding='1'><tr><td bgcolor='#CCCCCC'><table width='100%'  border='0' cellspacing='0' cellpadding='3'><tr><td bgcolor='#F7F7EF'><font face='Verdana, Arial, Helvetica' size='2'><div style='FONT-SIZE: 11px; COLOR: #333333; FONT-FAMILY: Verdana, Arial;'><b><{$language[fullname]}>: </b><{$fullname}><br/><b><{$language[email]}>: </b><{$email}><br/><b><{$language[department]}>: </b><{$department}></span></font></td></tr></table></td></tr></table><br /></div>
Replace with:
Code:
<div id="chat_info" >
<table width='100%'  border='0' cellspacing='0' cellpadding='1'><tr><td bgcolor='#CCCCCC'><table width='100%'  border='0' cellspacing='0' cellpadding='3'><tr><td bgcolor='#F7F7EF'><font face='Verdana, Arial, Helvetica' size='2'><div style='FONT-SIZE: 11px; COLOR: #333333; FONT-FAMILY: Verdana, Arial;'><b><{$language[fullname]}>: </b><{$fullname}><br/><b><{$language[email]}>: </b><{$email}><br/><b><{$language[department]}>: </b><{$department}></span></font></td></tr></table></td></tr></table><br />
</div>
<div id="buffer" style="WIDTH: 100%; HEIGHT: 100%;">
</div>
Ignore the expression code. As IE is a terrible browser and LiveResponse makes use of it, certain dodgy "hacks" are required to get the chat info statically positioned.

Last edited by Chris Boulton; 23-07-2007 at 09:24 AM..
   
Reply With Quote
  (#2) Old
craigbrass Offline
Senior Member
 
Posts: 5,918
Join Date: Jun 2005
Location: Cumbria, UK
28-06-2007, 03:46 PM

Nice modification Chris. Thanks for sharing!


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#3) Old
Evelator Offline
New Member
 
Posts: 5
Join Date: Jul 2007
09-07-2007, 02:59 PM

This looks pretty cool, though, i cant get it to work.
   
Reply With Quote
  (#4) Old
Chris Boulton Offline
Member
 
Posts: 152
Join Date: Jun 2003
Location: Sydney, Australia
09-07-2007, 03:03 PM

What happens when a chat window opens?
   
Reply With Quote
  (#5) Old
craigbrass Offline
Senior Member
 
Posts: 5,918
Join Date: Jun 2005
Location: Cumbria, UK
09-07-2007, 03:24 PM

A screenshot of what does happen would be handy also.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#6) Old
esteban Offline
Member
 
Posts: 42
Join Date: May 2006
Talking 11-07-2007, 03:46 PM

Awesome! i allways wanted something like that.


Thanks!
   
Reply With Quote
  (#7) Old
Racked Hosting Offline
Member
 
Posts: 345
Join Date: Mar 2006
Location: Manipal
Exclamation 15-07-2007, 03:31 PM

Very useful mod! Almost works for me except that the first 3-and-a-half lines just don't show up. check attached.
Attached Images
File Type: jpg float.jpg (12.9 KB, 22 views)
   
Reply With Quote
  (#8) Old
Chris Boulton Offline
Member
 
Posts: 152
Join Date: Jun 2003
Location: Sydney, Australia
17-07-2007, 01:51 AM

Uhh, it shouldn't - I guess it could be to you possibly running a different version of IE on your machine?

In any case - can you find:
Code:
	margin-top: expression(document.getElementById('chat_info').offsetHeight);
And replace it with:
Code:
	padding-top: expression(document.getElementById('chat_info').offsetHeight);
This was specifically one of the problems I encountered and fixed before I released - so it should have worked.

Let me know if those changes do.

Chris
   
Reply With Quote
  (#9) Old
Racked Hosting Offline
Member
 
Posts: 345
Join Date: Mar 2006
Location: Manipal
17-07-2007, 02:01 AM

that worked, thanks!
   
Reply With Quote
Reply

Tags
chat, floating, header, info

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom fields prior to starting chat session needed badly!!!!! Doug I. LiveResponse Desktop Application 3 25-05-2007 02:21 PM



Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Help desk software by Kayako.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48