フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Subhasis Roy
Table name where Message Board posting get stored
2013/05/06 4:18
答え

Subhasis Roy

ランク: Expert

投稿: 284

参加年月日: 2012/01/19

最近の投稿

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
2013/05/06 6:36
答え

Harish Kumar

ランク: Expert

投稿: 471

参加年月日: 2010/07/31

最近の投稿

messages are stored in mbmessage table.
Subhasis Roy
RE: Table name where Message Board posting get stored
2013/05/06 22:35
答え

Subhasis Roy

ランク: Expert

投稿: 284

参加年月日: 2012/01/19

最近の投稿

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
2013/05/06 23:50
答え

Harish Kumar

ランク: Expert

投稿: 471

参加年月日: 2010/07/31

最近の投稿

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
2013/05/07 1:51
答え

Subhasis Roy

ランク: Expert

投稿: 284

参加年月日: 2012/01/19

最近の投稿

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.