Extension:Conf

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Conf

Release status: beta

Implementation Tag
Description Conference (forum) with simple rights
Author(s) RUNA (Runa_cgTalk)
Last version 0.1 (March 2010)
MediaWiki tested on 1.10.2, 1.15.1
License GPL
Download See the section labeled code below

Check usage (experimental)

Contents

[edit] Description

[edit] Usage

Put tag <conf>Conference_Title</conf> in the article text. The text between the tags <conf></conf> is the title and the identifier of the conference. With this announcement the conference will be applied paremeters and access settings by default. This means the form conference - a tree-like, the reading is permitted to all.

[edit] Parameters

  • view - determines the type of conference by default. Available values of tree and the list (list).
<conf view="tree">Conference_Title</conf>
  • nofirst - hides the text of the first message in the conference
<conf nofirst="1">Conference_Title</conf>
  • nodel - hide deleted Posts, as well as their trees.
<conf nodel="1">Conference_Title</conf>

[edit] Access settings

There are 3 types of rights:

  1. Read (conf-read)
  2. Write (conf-write)
  3. Edit and delete (conf-moderate)

There are 2 ways to control rights:

  1. give wiki-groups general rights to conference

Edit file LocalSettings.php: For example allow all registered users to write:

$wgGroupPermissions['user']['conf-write'] = true;
  1. give access to the conference with its definition with additional tags

For example, allow registered users to write, but users in the group "moderator" and user "Runa_cg" to edit and delete:

<conf>
<conf-read:user/>
<conf-moderate:moderator,Runa_cg/>
Conference_Title
</conf>

Members of the "Administrator" group have full rights to access to the conference.

[edit] Style

You can override the default styles for conferences.
To do this, create and edit a page MediaWiki:Conf.css

/*Main conference container*/
.conf {
}
/*Table headers*/
.conf TH {
}
/*Message theme text*/
.message {
}
/*Message info*/
.topicinfo {
}
/*Buttons*/
.confButton {
}

[edit] Installation

To install this extension:

  • Check that the php-dom is installed on your server and install if it's not.
  • Create folder "/extensions/Conf"
  • Download source code
  • Unzip it to "Conf" folder
  • Replace the necessary images on your own (optional)
  • Create tables in your database (see Tables definition section)
  • Add the following to LocalSettings.php:
require_once("$IP/extensions/Conf/Conf.php");

[edit] Tables definition

CREATE TABLE `forum_topic` (
  `id` INTEGER(5) NOT NULL AUTO_INCREMENT PRIMARY KEY,
  `id_user` INTEGER(5) DEFAULT NULL,
  `topic` VARCHAR(255) DEFAULT NULL,
  `date_created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
  `last_updated` DATETIME DEFAULT NULL,
  `message_count` INTEGER(5) DEFAULT NULL
);
CREATE TABLE `forum_message` (
  `id` INTEGER(5) NOT NULL AUTO_INCREMENT PRIMARY KEY,
  `id_parent` INTEGER(5) DEFAULT NULL,
  `id_user` INTEGER(5) DEFAULT NULL,
  `from_name` VARCHAR(127),
  `from_ip` VARCHAR(15),
  `id_topic` INTEGER(5) NOT NULL DEFAULT '0',
  `topic` VARCHAR(255),
  `message_date` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
  `text` TEXT
);
CREATE TABLE `forum_deleted` (
  `id_message` INT(11) DEFAULT NULL,
  `old_topic` VARCHAR(255) DEFAULT NULL,
  `old_text` text,
  `deleted_by` INT(11) DEFAULT NULL,
  `deleted_date` datetime DEFAULT NULL
);
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox