Diferència entre revisions de la pàgina «Mediawiki»

De Cacauet Wiki
Salta a la navegació Salta a la cerca
(article comments)
Línia 26: Línia 26:
 
Then edit the LocalSettings.php and add the line:
 
Then edit the LocalSettings.php and add the line:
 
  require_once("$IP/extensions/FCKeditor/FCKeditor.php");
 
  require_once("$IP/extensions/FCKeditor/FCKeditor.php");
 +
 +
 +
=== OpenID ===
 +
Lets you login in several webs using the same account (OpenID, Google account, etc.).
 +
 +
Information sources:
 +
*http://www.mediawiki.org/wiki/Extension:OpenID
 +
*http://acacha.org/mediawiki/index.php/Mediawiki#OpenID
 +
*Here's an example of configuration:
 +
**http://www.gentoo-wiki.info/HOWTO_OpenID_Mediawiki_extension
 +
 +
To install it:
 +
*Dowload the '''snapshot''' for your specific version (and not from SVN).
 +
*Follow the instructions in: http://www.mediawiki.org/wiki/Extension:OpenID
 +
**Add path
 +
**Install PHP libraries: pear, gmp, curl, mcrypt
 +
 +
 +
The initial configuration (LocalSettings.php) that appears in that last link is something like:
 +
# Load the OpenID extension
 +
require_once("$IP/extensions/OpenID/OpenID.php");
 +
# Set the URL for the MediaWiki installation.
 +
$wgTrustRoot="www.test.com";
 +
# Allow all by default
 +
$wgOpenIDConsumerDenyByDefault=false;
 +
# Set the store type to file
 +
$wgOpenIDConsumerStoreType="file";
 +
# Set the location of where to store but not reachable by the web
 +
$wgOpenIDConsumerStorePath="/path/to/some/directory/";
 +
# Do the same stor thing for the OpenID server
 +
$wgOpenIDServerStoreType="file";
 +
$wgOpenIDServerStorePath="/path/to/some/directory/";

Revisió del 22:06, 11 maig 2011

TODO:


Installing FCKeditor with subversion

Go to your extension folder:

cd path/to/extensions

Download the FCKeditor with Subversion:

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/FCKeditor

Then edit the LocalSettings.php and add the line:

require_once("$IP/extensions/FCKeditor/FCKeditor.php");


OpenID

Lets you login in several webs using the same account (OpenID, Google account, etc.).

Information sources:

To install it:


The initial configuration (LocalSettings.php) that appears in that last link is something like:

# Load the OpenID extension
require_once("$IP/extensions/OpenID/OpenID.php");
# Set the URL for the MediaWiki installation.
$wgTrustRoot="www.test.com";
# Allow all by default
$wgOpenIDConsumerDenyByDefault=false;
# Set the store type to file
$wgOpenIDConsumerStoreType="file";
# Set the location of where to store but not reachable by the web
$wgOpenIDConsumerStorePath="/path/to/some/directory/";
# Do the same stor thing for the OpenID server
$wgOpenIDServerStoreType="file";
$wgOpenIDServerStorePath="/path/to/some/directory/";