Seditio Events

  1:What is the Seditio Events ?
  2:What's new ?
  3:How to install ?
  4:Some notes!
  5:Copyrights and credits!!!




1 : What is the Seditio Events ?
Seditio events is the port of the ldu events to seditio as a plugin. Events is one of the main reasons why people don't update to seditio. Hopefully this will change. In the package there is also included a calendar that support seditio events.

Features:
    * Add, edit, delete event cats.
    * Add, edit, delete event.
    * Ability to translate.
    * Textboxer intergration.
    * Validation queue.
Created : 2006-11-12 14:58 [Back To Top]

2 : What's new ?
Since ldu version:
------------
- Replaced the owner table field to ownerid (not mess with username changes).
- Improved security.
- Fixed small bugs everywhere.
- Event categories now have their own db table.
- Moved all skin phrases to a language file.
- Changes in many parts to support seditio engine (user rights, comments, ratings).
- Removed the ability for users to edit their events.
Created : 2006-11-12 15:52 [Back To Top]

3 : How to install ?
If you are making a new fresh install you need first to run this code through your phpmyadmin to add the db tables.



SQL Code:

CREATE TABLE sed_event_structure (
  structure_id mediumint(8) NOT NULL AUTO_INCREMENT,
  structure_code varchar(16) NOT NULL DEFAULT '',
  structure_path varchar(16) NOT NULL DEFAULT '',
  structure_title varchar(32) NOT NULL DEFAULT '',
  structure_desc varchar(255) NOT NULL DEFAULT '',
  structure_icon varchar(128) NOT NULL DEFAULT '',
  structure_order varchar(16) NOT NULL DEFAULT 'title.asc',
  PRIMARY KEY  (structure_id)
) TYPE=MyISAM;


CREATE TABLE sed_eventp (
  eventp_id int(11) NOT NULL AUTO_INCREMENT,
  eventp_eventid int(11) NOT NULL DEFAULT '0',
  eventp_userid int(11) NOT NULL DEFAULT '0',
  eventp_state tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY  (eventp_id)
) TYPE=MyISAM;

CREATE TABLE sed_events (
  event_id mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT,
  event_state tinyint(1) NOT NULL DEFAULT '0',
  event_cat varchar(16)  NOT NULL DEFAULT '0',
  event_date int(11) NOT NULL DEFAULT '0',
  event_expire int(11) NOT NULL DEFAULT '0',
  event_title varchar(64) NOT NULL DEFAULT '',
  event_extra1 varchar(255) NOT NULL DEFAULT '',
  event_extra2 varchar(255) NOT NULL DEFAULT '',
  event_text text,
  event_url varchar(128) NOT NULL DEFAULT '',
  event_ownerid int(11) NOT NULL DEFAULT '0',
  event_alias varchar(24) NOT NULL DEFAULT '',
  PRIMARY KEY  (event_id),
  KEY event_date (event_date)
) TYPE=MyISAM;


If you are going to update from seditio to ldu you MUST backup the ldu_events table before you run the update script from ldu to sed.

The update script will drop the table. Then you must restore the ldu_events table and run the below code through your phpmyadmin:

SQL Code:

RENAME TABLE ldu_events TO sed_events;
ALTER TABLE sed_events CHANGE event_owner event_ownerid int(11) NOT NULL DEFAULT '0';


CREATE TABLE sed_event_structure (
  structure_id mediumint(8) NOT NULL AUTO_INCREMENT,
  structure_code varchar(16) NOT NULL DEFAULT '',
  structure_path varchar(16) NOT NULL DEFAULT '',
  structure_title varchar(32) NOT NULL DEFAULT '',
  structure_desc varchar(255) NOT NULL DEFAULT '',
  structure_icon varchar(128) NOT NULL DEFAULT '',
  structure_order varchar(16) NOT NULL DEFAULT 'title.asc',
  PRIMARY KEY  (structure_id)
) TYPE=MyISAM;


Because of the field event_owner to event_ownerid you will loose all event owners i am sorry but that's life this is a must done thing. If you don't want to have an '?' in the owner display you can run this through phpmyadmin. It will change the owner to the user with id 1 which is the main admin account.

SQL Code:

UPDATE sed_events SET event_ownerid=1 WHERE event_ownerid=0;
 



If you are finished with the db changes the then:
- Upload the folder events to the plugins/ path.
- Install the plugin.
- Open the admin backend of the plugin admin.php?m=tools&p=events and start adding categories

If you choose to install calendar that comes in the package make sure you do it after you installed successfully the events plugin. The calendar has two parts. A standalone page plug.php?e=calendar and if you want you can add a mini calendar to your index using this tag {PLUGIN_CALENDAR}.

If you updated from seditio you will have to remake all the categories and make sure you use the same structure code.

To access the plugin use this: http://yourdomain/plug.php?e=events
The plugin back-end is in the tools section in your admin-cp
Created : 2006-11-12 15:27 [Back To Top]

4 : Some notes!
Like any other seditio plugin events use the rights system. By default the plugin will allow everyone to read the events (except the banned of course) and it will allow only admin to add and edit the events. You can allow users to submit events but that's up to you.

The plugin configuration has some important settings. You can turn on or off the ratings and comments, enable bbcode, smilies and line breaks. You can also set a cutoff limit for event description when it is viewed in category mode. If there are any events that need validation a header notice will appear just like in pages. You don't have to install any tags for this. You can of course turn this off and save a query but that's also up to you. If header notices are disabled you can check for events that need validation through the events admin back-end or by accessing the event plug. There will be a similar notice.
Created : 2006-11-12 15:33 [Back To Top]

5 : Copyrights and credits!!!
The events and the calendar have many authors and contributers.

Events: Olivier C., Tefra and all the contributers since the ldu days.
Calendar: Olivier C, Lagtastic, Rieger, Schneebi, Riptide, Tefra


Give these people some respect and credits for their works!!!

Copyrights: These plugins can be used for free. You can modify them as you want, as long as there will remain the credit to the authors.
Created : 2006-11-12 15:40 [Back To Top]