1
demian
XIM - XOOPS Instant Messenger
  • 2011/5/28 12:07

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


This is a continuation from this 28 pages topic

https://xoops.org/modules/newbb/viewtopic.php?start=270&topic_id=69694&viewmode=flat&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





2
demian
Re: XIM - XOOPS Instant Messenger
  • 2011/5/28 12:20

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


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

3
culex
Re: XIM - XOOPS Instant Messenger
  • 2011/5/28 14:31

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


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.

4
demian
Re: XIM - XOOPS Instant Messenger
  • 2011/5/28 14:51

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


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 }

5
demian
Re: XIM - XOOPS Instant Messenger
  • 2011/5/28 14:59

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


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 !!!

6
demian
Re: XIM - XOOPS Instant Messenger
  • 2011/5/28 16:40

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


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

7
andrax
Re: XIM - XOOPS Instant Messenger
  • 2011/5/29 5:13

  • andrax

  • Just popping in

  • Posts: 60

  • Since: 2010/9/10


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

8
demian
Re: XIM - XOOPS Instant Messenger
  • 2011/5/29 6:06

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


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....

9
mjoel
Re: XIM - XOOPS Instant Messenger
  • 2011/5/29 16:10

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


how do i change the default sound ?

i want to change it to blob...

10
demian
Re: XIM - XOOPS Instant Messenger
  • 2011/5/30 3:32

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


there is issue with google chrome

the setting options is not hidden after saving !!

Login

Who's Online

181 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 181


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits