Changing the emoticons URL for Blogs, Wikis, and other apps

When you migrate IBM® Connections from 5.0 to 5.5, you must change the emoticons URL for Blogs, Wikis, and other apps.

About this task

Use the logsAdminService.fixBrokenUrls sysadmin command to change the Blogs URL.

For the Wikis URL, use the equivalent Linux command or Windows comand, for example Find or FindStr.

Procedure

  1. For the Blogs app, the URL is stored in the blogs database. To change the URL, run the following commands:
    1. Back up your blogs database, run the following command:
      execfile("blogsAdmin.py")
    1. Change the Blogs URL, run the following command:
      BlogsAdminService.fixBrokenUrls(
      "/connections/resources/web/com.ibm.oneui.ckeditor/editor/plugins/sametimeemoticons/images/",
      "/connections/resources/web/com.ibm.oneui.ckeditor/editor/plugins/ibmsametimeemoticons/images/")
  2. For the Wikis app, URL for emoticons is stored locally. To change the URL, run the following commands:
    1. Stop the Wikis app. For more information, see Running Wikis administrative commands.
    2. Back up "/IBM/Connections/data/shared/wikis"
    3. Change directory to "/IBM/Connections/data/shared/wikis/upload/files/"
    4. Run the following command:
      egrep -rl'
      http(s)?://hostname/connections/resources/web/com.ibm.oneui.ckeditor/editor/plugins/sametimeemoticons/images/' . 
      | xargs sed -i's/hostname\/connections\/resources\/web\/com.ibm.oneui.ckeditor\/editor\/plugins\/sametimeemoticons\
      /images/hostname\/connections\/resources\/web\/com.ibm.oneui.ckeditor\/editor\/plugins\/ibmsametimeemoticons\/images/g'
    5. Start the Wikis app. For more information, see Running Wikis administrative commands.
  3. For all other apps that support emoticons (for example, Forums, you must change the URL on the HTTP server level by rewriting the URL, for example:
    RewriteRule ^/connections/resources/web/com.ibm.oneui.ckeditor/editor/plugins/sametimeemoticons/images/(.*) 
    /connections/resources/web/com.ibm.oneui. ckeditor/editor/plugins/ibmsametimeemoticons/images/$1 [P,L]