Tribune

Home » Liferay Portal » English » 2. Using Liferay » General

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Alagammai Kasi
Chat
16 novembre 2012 20.42
Risposta

Alagammai Kasi

Punteggio: Regular Member

Messaggi: 149

Data di Iscrizione: 31 luglio 2012

Messaggi recenti

Dear buddies,

Is it possible for the community members to have a one to one chat, especially the community administrator and the community member.

Is it possible to have a group chat within the community members.

If they are not the member of a community anymore, automatically they should be unfriended. Is that possible?

Please advice.

Thanks - Alagu
Hitoshi Ozawa
RE: Chat
17 novembre 2012 3.12
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

Anything is possible in an open source project because the source code is there to be modified.
To do all the things you've requested, you'll have to modify the Chat portlet.
ildar sl
RE: Chat
9 febbraio 2013 22.40
Risposta

ildar sl

Punteggio: Regular Member

Messaggi: 139

Data di Iscrizione: 12 dicembre 2011

Messaggi recenti

There is progress?
Alagammai Kasi
RE: Chat
12 febbraio 2013 23.47
Risposta

Alagammai Kasi

Punteggio: Regular Member

Messaggi: 149

Data di Iscrizione: 31 luglio 2012

Messaggi recenti

So far, I didn't start on any.

Can someone guide me on how I can do some coding in regards to this? What programming language can I use?

Thank You.
ildar sl
RE: Chat
18 febbraio 2013 11.02
Risposta

ildar sl

Punteggio: Regular Member

Messaggi: 139

Data di Iscrizione: 12 dicembre 2011

Messaggi recenti

1. In my opinion, firstly it is necessary to turn the chat-portlet to a simple portlet. To do this, styles .chat-bar {position:fixed;bottom:0;right: 15px;} were removed.
2. Edit liferay-portlet.xml


<?xml version="1.0"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.1.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_1_0.dtd">

<liferay-portlet-app>
<portlet>
<portlet-name>1</portlet-name>
<friendly-url-mapper-class>com.liferay.portal.kernel.portlet.DefaultFriendlyURLMapper</friendly-url-mapper-class>
<friendly-url-mapping>chat</friendly-url-mapping>
<friendly-url-routes>com/liferay/chat/portlet/chat-friendly-url-routes.xml</friendly-url-routes>
<poller-processor-class>com.liferay.chat.poller.ChatPollerProcessor</poller-processor-class>
<!-- <use-default-template>false</use-default-template> -->
<instanceable>false</instanceable>
<css-class-wrapper>chat-portlet</css-class-wrapper>
<!-- <system>true</system> -->
</portlet>
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
<role-mapper>
<role-name>guest</role-name>
<role-link>Guest</role-link>
</role-mapper>
<role-mapper>
<role-name>power-user</role-name>
<role-link>Power User</role-link>
</role-mapper>
<role-mapper>
<role-name>user</role-name>
<role-link>User</role-link>
</role-mapper>

</liferay-portlet-app>


3. edit view.jsp
Then it is necessary to think through...
ildar sl
RE: Chat
19 febbraio 2013 18.23
Risposta

ildar sl

Punteggio: Regular Member

Messaggi: 139

Data di Iscrizione: 12 dicembre 2011

Messaggi recenti

4. edit portal.properties
comment out the line:
#layout.static.portlets.all=1_WAR_chatportlet

5. edit js/main.js
.....