2.2.8.7. Default User Profile

The default Forum settings are a set of settings for a new account. It contains declarations of time zone, short date format, long date format, time format, maximum topics per page, maximum posts per page and flag for showing forum jump or not. The settings are simple, and users can change such settings to UI-based functions later.

Configuration

This configuration is declared in the file named ks-configuration.xml. Its path is [tomcat source]/webapps/ks-extension/WEB-INF/ks-extension/ks/ks-configuration.xml if you are running the tomcat and [project source]/extension/webapp/src/main/webapp/WEB-INF/ks-extension/ks/ks-configuration.xml if you are in the development phrase.


...
<external-component-plugins>
  <target-component>org.exoplatform.services.organization.OrganizationService</target-component>
  <component-plugin>
    ...
    <init-params>
      <properties-param>
        <name>user.profile.setting</name>
        <description>set default user profile</description>
        <property name="timeZone" value="GMT"/>
        <property name="shortDateFormat" value="MM/dd/yyyy"/>
        <property name="longDateFormat" value="DDD,MMM dd,yyyy"/>
        <property name="timeFormat" value="hh:mm a"/>
        <property name="maxTopic" value="10"/>
        <property name="maxPost" value="10"/>
      </properties-param>
    </init-params>

  </component-plugin>
</external-component-plugins>
...

In which:

ParameterPossible valueDefault valueDescription
timeZone Time zone id GMT The time zone set by user. For example: GMT, GMT-05:00, GMT+07:00, GMT+08:30 ... Visit the website: http://java.sun.com/j2se/1.4.2/docs/api/java/util/TimeZone.html for more details.
shortDateFormat Valid Java Date format MM/dd/yyyy The format to display short information of date. Visit the website: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html to ensure the exact format.
longDateFormat Valid Java Date format DDD,MMM dd,yyyy The format to display a date with more information. Visit the website http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html to ensure the exact format.
timeFormat valid Java Date format hh:mm a The format to view time (for example, hour, minute,). Visit the website: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html to ensure the exact format.
maxTopic Integer 10The maximum number of topics per page.
maxPost Integer 10The maximum number of posts per page.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus