Bienvenido, Invitado
Nombre de Usuario: Contraseña: Recordarme
  • Página:
  • 1
  • 2

TEMA: Community builder avatars on screen

Community builder avatars on screen 8 años 8 meses ago #18562

  • D0gSoldi3r
  • Avatar de D0gSoldi3r
  • Offline
  • Visitante
  • Mensajes: 11
  • Karma: 0
Is it possible to have avatars display on the chat, my Kide chat is pretty wide leaving plenty of room for my small 60px x 60px avatars. I think it would encourage my users to register if they could see avatars without needing to push buttons, everytime they type in a message their avatar display next to the name like in Kuena forums, but alot smaller obviously.

Is there anycode i can execute in my .php pages to make this happen, since community builder is already integrated already. :blink:

Última Edición: 8 años 8 meses ago por D0gSoldi3r.
El administrador ha desactivado la escritura pública.

Re: Community builder avatars on screen 8 años 8 meses ago #18601

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
Hi,

In helpers/links.php change the line 116:
$avatar = JURI::root().'images/comprofiler/tn'.$tmp;
//by
$avatar = JURI::root().'images/comprofiler/'.$tmp;

Can I look your site? I have changed the html of Kide, your changes are good
El administrador ha desactivado la escritura pública.

Re: Community builder avatars on screen 8 años 8 meses ago #18604

  • D0gSoldi3r
  • Avatar de D0gSoldi3r
  • Offline
  • Visitante
  • Mensajes: 11
  • Karma: 0
The code doesn't work the avatar doesn't display next to the nickname.
JoniJnm escribió:
Can I look your site? I have changed the html of Kide, your changes are good

I don't know what you mean, it looks exactly the same as the default chat but orange instead.
El administrador ha desactivado la escritura pública.

Re: Community builder avatars on screen 8 años 8 meses ago #18610

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
D0gSoldi3r escribió:
The code doesn't work the avatar doesn't display next to the nickname.
Ah! Ok, sorry, I have understood that you want the avatar more bigger (in the previous post). But if you want show the avantar next to the nick try:

In com_kide/templates/default/js/kide.js change:
nodo.innerHTML = s_hora+'<span style="cursor: pointer" title="'+ti+'" class="KIDE_'+this.rangos[rango]+'" onclick="kide.mensaje(\''+name+'\', '+id+', \''+url+'\', \''+ti+'\', \''+sesion+'\', '+rango+', \''+img+'\')">'+name+'</span>: <span '+c+'>'+this.filter_smilies(text)+'</span>';
 
// by
 
var tmp = img ? '<img style="max-height:30px" src="'+img+'" class="KIDE_icono"> ' : '';
nodo.innerHTML = tmp+s_hora+'<span style="cursor: pointer" title="'+ti+'" class="KIDE_'+this.rangos[rango]+'" onclick="kide.mensaje(\''+name+'\', '+id+', \''+url+'\', \''+ti+'\', \''+sesion+'\', '+rango+', \''+img+'\')">'+name+'</span>: <span '+c+'>'+this.filter_smilies(text)+'</span>';
Change the max-height:30px if you want
D0gSoldi3r escribió:
I don't know what you mean, it looks exactly the same as the default chat but orange instead.
It's true, sorry xD
Última Edición: 8 años 8 meses ago por JoniJnm.
El administrador ha desactivado la escritura pública.

Re: Community builder avatars on screen 8 años 8 meses ago #18620

  • D0gSoldi3r
  • Avatar de D0gSoldi3r
  • Offline
  • Visitante
  • Mensajes: 11
  • Karma: 0
No lol, the picture in my original comment was made by photoshop, i was showing you how i would like it.

I photoshoped an avatar into the picture to give you an idea of what i'm looking for :lol: I don't have an avatar displaying on my chat, what i would like is an avatar there if it's possible.
Última Edición: 8 años 8 meses ago por D0gSoldi3r.
El administrador ha desactivado la escritura pública.

Re: Community builder avatars on screen 8 años 8 meses ago #18625

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
i have bad english xD

Make the javascript changes of the previous post :)
El administrador ha desactivado la escritura pública.

Re: Community builder avatars on screen 8 años 8 meses ago #18626

  • D0gSoldi3r
  • Avatar de D0gSoldi3r
  • Offline
  • Visitante
  • Mensajes: 11
  • Karma: 0
I did nothing happened :(
El administrador ha desactivado la escritura pública.

Re: Community builder avatars on screen 8 años 8 meses ago #18627

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
I forgot in template/default/kide.msgs.php
echo '<div id="KIDE_id_'.$r->id.'" class="KIDE_msg_top">';
//insert after
if ($r->img) echo '<img style="max-height:30px" src="'.$r->img.'" class="KIDE_icono">';

If it doesn't work let me see your website
El administrador ha desactivado la escritura pública.

Re: Community builder avatars on screen 8 años 8 meses ago #18629

  • D0gSoldi3r
  • Avatar de D0gSoldi3r
  • Offline
  • Visitante
  • Mensajes: 11
  • Karma: 0
echo '<div id="KIDE_id_'.$r->id.'" class="KIDE_msg_top">';

No such code exists in kide.msgs.php

and also the file kide.msgs.php path isn't

template/default/kide.msgs.php

it's
templates/default/tmpl/kide.msgs.php
Última Edición: 8 años 8 meses ago por D0gSoldi3r.
El administrador ha desactivado la escritura pública.
  • Página:
  • 1
  • 2
Tiempo de carga de la página: 0.144 segundos