21
andrax
Re: XIM - XOOPS Instant Messenger
  • 2011/6/1 15:18

  • andrax

  • Just popping in

  • Posts: 60

  • Since: 2010/9/10


@mjoel, In the file xim/include/functions, replace the line 81:
$default "INSERT INTO ".$xoopsDB->prefix('xim_pers_conf')." (username, sound, status) VALUES ('$username', 1, 2)";

by this (4 is the id of blob sound) :
$default "INSERT INTO ".$xoopsDB->prefix('xim_pers_conf')." (username, sound, status) VALUES ('$username', 4, 2)";


@demian, soon I'll take a look into it
Luiz Carlos (Andrax)
"whoever wants to become great among you must be your servant" – Jesus
http://guxbrasil.org
http://about.me/LuizCerqueira



22
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



23
andrax
Re: Happy Birthday Michael Beck (Mamba)
  • 2011/4/8 14:34

  • andrax

  • Just popping in

  • Posts: 60

  • Since: 2010/9/10


Happy Birthday, Michael!!!
Luiz Carlos (Andrax)
"whoever wants to become great among you must be your servant" – Jesus
http://guxbrasil.org
http://about.me/LuizCerqueira



24
andrax
Re: Xoops Engine promotion
  • 2011/2/3 5:38

  • andrax

  • Just popping in

  • Posts: 60

  • Since: 2010/9/10


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



25
andrax
Re: [DEV] Android App for posting in Forum
  • 2011/1/31 20:45

  • andrax

  • Just popping in

  • Posts: 60

  • Since: 2010/9/10


Any news on this app?

I can test it at the Galaxy S i9000b
Luiz Carlos (Andrax)
"whoever wants to become great among you must be your servant" – Jesus
http://guxbrasil.org
http://about.me/LuizCerqueira




TopTop
« 1 2 (3)



Login

Who's Online

195 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 195


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