User:Dan Nessett/Technical/Notes on Refactoring CZ: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Dan Nessett
imported>Dan Nessett
Line 32: Line 32:
After executing install.php, do full db backup<br>
After executing install.php, do full db backup<br>
Make sure error_reporting  =  E_ALL & ~E_NOTICE<br>
Make sure error_reporting  =  E_ALL & ~E_NOTICE<br>
and display_errors = Off in php.ini
and display_errors = Off in php.ini<br><br>
<font color=red>Make sure schema is set to mediawiki</font><br>
<font color=red>in LocalSettings.</font>
|style="color: green" | Works
|style="color: green" | Works
|-
|-

Revision as of 13:40, 7 May 2010

Where to get svn_load_dirs.pl and configure it

You can get svn_load_dirs.ph.in here: svn_load_dirs directory

Edit the file and (around line 26) change the following line:

< my $svn = '@SVN_BINDIR@/svn';

by replacing @SVN_BINDIR@/svn by the directory in which svn resides. For Ubuntu the line would like like:

< my $svn = '/usr/bin/svn';

MW standard extensions to check

Extension Name Notes Status
CategoryTree The default limit on entries displayed is 200.

This is controlled by $wgCategoryTreeMaxChildren

Works
CharInsert Works
CheckUser Requires db schema changes

First execute php CheckUser/install.php
After executing install.php, do full db backup
Make sure error_reporting = E_ALL & ~E_NOTICE
and display_errors = Off in php.ini

Make sure schema is set to mediawiki
in LocalSettings.

Works
Cite Works
ConfirmAccount Works
ConfirmEdit Need to move setting of $wgGroupPermissions['sysop']['skipcaptcha'] = false;

into LocalSettings.php, since the defaults of the MW standard
are not the same as the CZ modified version. Also need to set

$ceAllowConfirmedEmail = true;
$wgCaptchaTriggers['addurl'] = false;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = false;

While the FancyCaptcha module is loaded, it is not used, since
by default $wgCaptchaClass = 'SimpleCaptcha';
and LocalSettings doesn't override this default.

Works
EmbedVideo Works
ExpandTemplates The default size of the input box is 11 chars. Have to add

the following css:

textarea {
    border: 1px solid #2f6fab;
    color: Black;
    background-color: white;
    width: 100%;
    padding: 0.1em;
    overflow: auto;
}

It isn't exactly clear where this css is supposed to go.

Works

But mystery
of css is unsolved.
ImageMap Problem

The extension doesn't
work properly on

the test wiki.
A page referencing it
shows blank, indicating

a PHP problem.

inputbox Works
Newuserlog This extension is obsolete and

replaced by core functionality starting in 1.14.
So, if we upgrade to a more recent MW version,
we shouldn't bring this extension along.

Works
ParserFunctions Works
Renameuser Works
Timeline Works
TreeAndMenu This extension replaces Treeview4 which

is obsolete. TreeAndMenu is backwards
compatible with Treeview4, so the replacement,
should not cause problems.
(There are only 3 pages which reference
this extension and I have tested all of them.

Works
wikihiero Works

Refactoring issues

  • It appears many pages (including the Request Account page) has constables@citizendium.org hardwired in. There is no magic word available to access the $wgPasswordSender global variable or any other email address. This is something that the Citizendium extension should add (i.e., a magic word for the site's configured complaint email address).
  • It also appears that many Mediawiki namespace pages have http://en.citizendium.org hardwired. These should be changed to: {{SERVER}}{{SCRIPTPATH}}
  • For some reason Special:Popularpages doesn't work in the MW version, nor does it appear in the SpecialPages list.
Solved. Had $wgDisableCounters=true in LocalSettings. Changed it to false.
  • Conversely, Special:ExpandTemplates doesn't work in the CZ version, nor does it appear in the SpecialPages list.
Actually, it does work. However, it doesn't show up in the Special:SpecialPages list
Actually, it does show up in the Special:SpecialPages list. However, it is under "Other special pages", rather than "Wiki data and tools".