Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Subhasis Roy
Table name where Message Board posting get stored
6 maggio 2013 4.18
Risposta

Subhasis Roy

Punteggio: Expert

Messaggi: 284

Data di Iscrizione: 19 gennaio 2012

Messaggi recenti

Any one can please tell me the name of the Message board table which stores the message string posted in the message board.

Also can anyone please explain that how Liferay changes the " : ) " to emoticon icon at the time of posting any smiley icon in the message board. I mean where is the code written which is responsible for the change to internal code to show it as smiley.
Harish Kumar
RE: Table name where Message Board posting get stored
6 maggio 2013 6.36
Risposta

Harish Kumar

Punteggio: Expert

Messaggi: 474

Data di Iscrizione: 31 luglio 2010

Messaggi recenti

messages are stored in mbmessage table.
Subhasis Roy
RE: Table name where Message Board posting get stored
6 maggio 2013 22.35
Risposta

Subhasis Roy

Punteggio: Expert

Messaggi: 284

Data di Iscrizione: 19 gennaio 2012

Messaggi recenti

Harish Kumar:
messages are stored in mbmessage table.


Thanks harish,, already got that... But I am not able to find out the other part of my posting. i.e. the smiley part.

Can you please tell me part of code is responsible for showing the smiley in the dashboard. As we made some changes in the liferay's message board portlet and smiley is coming as codes.

The editor is not able to change it to smiley while showing the post
Harish Kumar
RE: Table name where Message Board posting get stored
6 maggio 2013 23.50
Risposta

Harish Kumar

Punteggio: Expert

Messaggi: 474

Data di Iscrizione: 31 luglio 2010

Messaggi recenti

AFAIK Smilys are part of ckeditor functionality. you can find the related code in portal-web\docroot\html\js\editor\ckeditor_diffs\ckconfig_bbcode.jsp
Subhasis Roy
RE: Table name where Message Board posting get stored
7 maggio 2013 1.51
Risposta

Subhasis Roy

Punteggio: Expert

Messaggi: 284

Data di Iscrizione: 19 gennaio 2012

Messaggi recenti

I found the part of code which is responsible for showing the smiley.

Its in the "view_thread_message.jspf" file.

Code snippet:

String msgBody = BBCodeUtil.getHTML(message);
msgBody = StringUtil.replace(msgBody, "https://web.liferay.com/osb-community-theme/images/emoticons", themeDisplay.getPathThemeImages() + "/emoticons");


This above code shows the smiley from the theme image path.