Bienvenido, Invitado
Nombre de Usuario: Contraseña: Recordarme

TEMA: JomSocial activity: user entered to kide chat

JomSocial activity: user entered to kide chat 6 años 2 meses ago #20751

  • sleepyman
  • Avatar de sleepyman
  • Offline
  • Visitante
  • Mensajes: 2
  • Karma: 0
I use responsive template that doesn't allow to use "kide chat module" (I wish I could to show it on top of window with Hide-option).

So I created menu item for kide chat (but nobody know about that).
So, can you create plugin for JomSocial that will add activity:
UserName entered the chat
when user open page with kide chat component?

Thanks.
El administrador ha desactivado la escritura pública.

JomSocial activity: user entered to kide chat 6 años 2 meses ago #20753

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

Open com_kide/views/kide/view.html.php and
//Search
$this->preparar();
 
//Add before
$js = JPATH_ROOT.'/components/com_community/libraries/core.php';
if (file_exists($js)) {
	require_once($js);
	$act = new stdClass();
	$act->cmd = 'wall.write';
	$act->actor = $kuser->id;
	$act->target = 0; // no target
 
	$act->title = ($kuser->id ? '{actor}' : $kuser->name).' entered the chat';
	$act->content = '';
	$act->app = 'wall';
	$act->cid = 0;
 
	CFactory::load('libraries', 'activities');
	CActivityStream::add($act);
}
Última Edición: 6 años 2 meses ago por JoniJnm.
El administrador ha desactivado la escritura pública.
Tiempo de carga de la página: 0.134 segundos