Skip to content
Laurent Jouanneau edited this page Oct 7, 2012 · 4 revisions

jCommunity 0.2.1

You need Jelix 1.2. For Jelix 1.3, download the 0.2.2 version.

It may not work with Jelix 1.0, as it uses some features specific to Jelix 1.1 and higher.

New features and improvements

  • Fixed a bug about an infinite loop when login is required
  • An installer has been added

Download

Installation

  • Extract the content of the downloaded archive.

  • Copy the jcommunity directory in a module repository of your application (in yourapp/modules for example).

  • install the jcommunity module with the command installmodule: php jelix.php --myapp installmodule jcommunity

  • You can change the start action in index/config.ini.php like this:

      startModule=jcommunity
      startAction="login:index"
    

In your application, you should not use anything from the jauth module, but only from jcommunity, since it provides all needed things, with some different behaviors.

migrating from version 0.1

Execute this SQL script on your mysql database :

    ALTER TABLE `community_users` DROP PRIMARY KEY ;
    ALTER TABLE `community_users` ADD `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST ;
    ALTER TABLE `community_users` DROP PRIMARY KEY , ADD UNIQUE (`id`);
    ALTER TABLE `community_users` ADD PRIMARY KEY ( `login` );  

The goal is to create a new auto increment field, "id". It is not the primary key, but has a "unique" index.

Clone this wiki locally