xoops forums

demian

Quite a regular
Posted on: 2011/5/28 8:07
demian
demian (Show more)
Quite a regular
Posts: 225
Since: 2008/4/29
#1

XIM - XOOPS Instant Messenger

This is a continuation from this 28 pages topic

http://www.xoops.org/modules/newbb/vi ... at&order=ASC&type=&mode=0

first of all this is a great module..thank you to the developers

Ok im using xim 1.02..

can i suggest the online user block to show user avatar just like facebook




demian

Quite a regular
Posted on: 2011/5/28 8:20
demian
demian (Show more)
Quite a regular
Posts: 225
Since: 2008/4/29
#2

Re: XIM - XOOPS Instant Messenger

problem im having after i installed xim...

the css design for my theme for hyperlink is replaced to the default blue color....

uninstall xim...my site design back to normal

please help

culex

Module Developer
Posted on: 2011/5/28 10:31
culex
culex (Show more)
Module Developer
Posts: 705
Since: 2004/9/23
#3

Re: XIM - XOOPS Instant Messenger

Cound you send me a link please ?..

I have a feeling it could be from the css/footer.css.php and the line

#footpanel ul li a {
     
padding5px;
     
floatleft;
     
text-indent: -9999px;
     
height16pxwidth16px;
     
text-decorationnone;
     
color#333;
     
positionrelative;
     }


try to comment-out the like color: #333;

like this

// color: #333;

and see if this should help
Programming is like sex:
One mistake and you have to support it for the rest of your life.

demian

Quite a regular
Posted on: 2011/5/28 10:51
demian
demian (Show more)
Quite a regular
Posts: 225
Since: 2008/4/29
#4

Re: XIM - XOOPS Instant Messenger

i didnt activate the footer

after some hours..i have figure this out

this line from xim.css causing the problem
.chatboxmessagefrom font-weightbold; }
.
chatboxmessage aa:hover color#00f }



i changed it to this
.chatboxmessagefrom font-weightbold; }
.
chatboxmessagefrom a {color:#33211F} 
.chatboxmessagefrom a:hover color#33211F }

.chatboxmessage a {color:#33211F} 
.chatboxmessage a:hover color#33211F }

demian

Quite a regular
Posted on: 2011/5/28 10:59
demian
demian (Show more)
Quite a regular
Posts: 225
Since: 2008/4/29
#5

Re: XIM - XOOPS Instant Messenger

Quote:

stance wrote:
1-This story below happened twice with two seperate members and me, one of them was online and the other was busy:

I'd written to a member and (s)he replied. We had a short conversation. Then i closed the dialogue box. A few minutes later, while browsing the website, the dialogue box appeared again, with just the first message, like it was never replied.

To make it clearer, here is an example with just an imaginary conversation:

First person: Hello, the time is 17:30 here, what's the time there? (1st message)
Second person: Hello it is 19.30 here? (2)
First person: Ok thank you (3)
Second person: Your welcome

--Second person closes the dialogue box
--A few minutes later, the dialogue box appears on the second person's screen, like it was never replied:

First person: Hello, the time is 17:30 here, what's the time there?


im having this problem too...


another problem is......in ie7/8 browser

in the chat box..the avatar and the chat text is not in one line together..text comes first and the avatar is blow the text

in ie6 it is worse...

sad most of my user still use this browser


anyway keep up the good work mr culex and andrax





ie sucks !!!

demian

Quite a regular
Posted on: 2011/5/28 12:40
demian
demian (Show more)
Quite a regular
Posts: 225
Since: 2008/4/29
#6

Re: XIM - XOOPS Instant Messenger

culex can you give me some point how to add user vatar in the block ?

so far heres what i did i add this in blocks
b_instantmessenger.php

$user_avatar $xoopsUser->getVar('user_avatar');

if (is_object($xoopsModule)) {
        
$online_handler->write($uid$uname,$user_avatartime(), $xoopsModule->getVar('mid'), $_SERVER['REMOTE_ADDR']);
    } else {
        
$online_handler->write($uid$uname$user_avatartime(), 0$_SERVER['REMOTE_ADDR']);


$avatar XOOPS_URL."/uploads/".$user_avatar."";

$block['amigos'][] = array('id'=> $onlines[$i]['online_uid'], 'nome' => $onlines[$i]['online_uname'], 'avatar' => $avatar'status' => $image);


and in templates b_instantmessenger.html i use this
<img src='<{$user.avatar}>' height='48' width='48' title='<{$user.nome}>'>


success but its show my own avatar and not the user avatar

andrax

Just popping in
Posted on: 2011/5/29 1:13
andrax
andrax (Show more)
Just popping in
Posts: 60
Since: 2010/9/10
#7

Re: XIM - XOOPS Instant Messenger

Hey demian,

To get user avatar in the block, try this...

In the file b_instantmessenger.php, replace the lines below(84,85,86):
if ($status == '0') {$image XOOPS_URL."/modules/xim/images/Absent-blue16.png";}
    if (
$status == '1') {$image XOOPS_URL."/modules/xim/images/busy-blue16.png";}
    if (
$status == '2') {$image XOOPS_URL."/modules/xim/images/messenger-blue16.png";}

by this code:
$user = new XoopsUser($onlines[$i]['online_uid']);
                 
$avatar =$user->user_avatar();
                 if (
$avatar!='blank.gif') {
                    
$image XOOPS_URL."/uploads/".$avatar;
                 } else {
                    
$image XOOPS_URL."/modules/xim/images/default_avatar.png";
                 }


In the directory templates / blocks, modify the files onlinenow.html (line 6) and b_instantmessenger.html (line 13) and add the class "image" on the avatar image, as below:
<img class="image" src="<{$user.status}>" style="margin-bottom:-3px" title="<{$user.nome}>" /> <{$user.nome}>


I hope that helps you ...
Luiz Carlos (Andrax)
"whoever wants to become great among you must be your servant" – Jesus
http://guxbrasil.org
http://about.me/LuizCerqueira

demian

Quite a regular
Posted on: 2011/5/29 2:06
demian
demian (Show more)
Quite a regular
Posts: 225
Since: 2008/4/29
#8

Re: XIM - XOOPS Instant Messenger

thank you andrax....you rock it works

my site users is so happy with this module..im using this in an intranet website....

thank you

xim is indeed one of the best module xoops ever !!!!!!

btw any new development on this module ?....

just some
some harcoded language i notice
"options" for the chat settings
"saved" when savings

hope this can be put in language folder...im using multilanguage

anyway keep up the good wrk guyss....

mjoel

Quite a regular
Posted on: 2011/5/29 12:10
mjoel
mjoel (Show more)
Quite a regular
Posts: 267
Since: 2006/12/9
#9

Re: XIM - XOOPS Instant Messenger

how do i change the default sound ?

i want to change it to blob...

demian

Quite a regular
Posted on: 2011/5/29 23:32
demian
demian (Show more)
Quite a regular
Posts: 225
Since: 2008/4/29
#10

Re: XIM - XOOPS Instant Messenger

there is issue with google chrome

the setting options is not hidden after saving !!