Skip to content
Laurent Jouanneau edited this page Mar 25, 2013 · 5 revisions

jCommunity 0.2

It works with 1.1. (It may not work with Jelix 1.0, as it uses some features specific to Jelix 1.1)

New features and improvements

  • the default jCommunity table has new columns
    • 'id', a numerical id which is now the new primary key
    • create_date, a datetime field to store the date of the creation account
  • better markup in templates, new title on pages
  • many new events in controllers, to allow you to do processing at each step of the registration etc.
  • Added a captcha field into the registration form
  • new messages to inform of the login fail, confirmations etc.
  • After a successful login, jcommunity can redirect to the page before the login
  • Fixed few bugs and memory issues...
  • a form is provided for jauthdb_admin
  • a module jcommunity_phorum is provided, to allow to synchronize authentification status between a jelix application and a phorum application
  • a new module jmessenger : exprimental !!

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).

In the configuration of the application (or precisely, the configuration of the index entry point), activate the auth plugin for the coordinator:

    [coordplugins]
    auth = auth.coord.ini.php

Copy the lib/jelix/plugins/coord/auth/auth.coord.ini.php.dist into the file var/config/auth.coord.ini.php

You should change at least this values in this file:

    driver = Db
    on_error_action = "jcommunity~login:out"
    bad_ip_action = "jcommunity~login:out"
    
    [Db]
    ; name of the dao to get user datas
    dao = "jcommunity~user"

Setup other values as indicated in the documentation of this plugin.

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