KJams Wiki:About: Difference between revisions

From kJams Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(85 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{lowercase}}
* [[Special:Version|Version info]]
* [[Special:Version|Version info]]
* [http://davecotter.com/tech/phpinfo.php PHP Info Page]
* [http://davecotter.com/tech/phpinfo.php PHP Info Page]
* [https://www.mediawiki.org/wiki/Manual:Administrators#Making_sysops make yourself an admin] so you can [[MediaWiki:Vector.css|edit the header css]], and put the header background in with this code:
<pre>
body {
    background-color: #f9f9f9;
    /* this assumes that your wiki is installed at '/w' in the web root */
    background-image: url('/w/skins/header_background.jpg');
    background-repeat: no-repeat;
}
#mw-page-base {
  background-image: none;
  background-color: transparent;
}
</pre>
* Auth_phpbb.php v 1.5 (released 2005-09-12)
* Auth_phpbb.php v 1.5 (released 2005-09-12)
** Overides includes/AuthPlugin.php functions to provide authentication against phpBB user table for wiki edit access.
** Overides includes/AuthPlugin.php functions to provide authentication against phpBB user table for wiki edit access.
* note this: from Brad: I don’t know what the problem is with “sendmail” on agape but I saw the forum emails where going out and it is setup to use SMTP rather then PHP’s built in mail() function which relies on a working sendmail program on the host. So I installed a WP SMTP plugin so we are done with that.
* Added the following lines to includes/templates/Userlogin.php at line 19 to provide account creation info for new users.
* Added the following lines to includes/templates/Userlogin.php at line 19 to provide account creation info for new users.
<pre><?php
<pre><?php
Line 13: Line 33:
<?php
<?php
// End Edit ?></pre>
// End Edit ?></pre>
* forum Style:
** same version of phpBB
*** go to the "styles/" folder, and install "we_universal" folder.  then go to forum admin->customize->install styles, and install it, then go back to "styles" and click "details" on "we_universal" style, and click "use as default"
** new version
*** download latest "we_universal" style plugin
*** drag "kjams.php" and "images_k" into place (forum/styles/we_universal/theme)
*** edit "stylesheet.css" and add "@import url("kjams.css");" to the very end
*add this to wordpress "functions.php" in the theme
add_filter( 'auto_update_plugin', '__return_true' );
* OR add this as "default_plugin.php" into /wp-content/plugins/_default_plugin/
<?php
/*
Plugin Name: Site Plugin for example.com
Description: Site specific code changes for example.com
*/
/* Start Adding Functions Below this Line */
add_filter( 'auto_update_plugin', '__return_true' );
 
/* Stop Adding Functions Below this Line */
?>
* Addes the following lines to LocalSettings.php at line 2 to force SSL for logins.
* Addes the following lines to LocalSettings.php at line 2 to force SSL for logins.
<pre>// Begin Edit
<pre>// Begin Edit
Line 27: Line 68:
// End Edit
// End Edit
</pre>
</pre>
* installed pear so php can send mail with my store script
* Added apache redirect for http://www.kjams.com/wiki/Help:Editing so it hits http://meta.wikimedia.org/wiki/Help:Editing.
* Added apache redirect for http://www.kjams.com/wiki/Help:Editing so it hits http://meta.wikimedia.org/wiki/Help:Editing.
* Upgraded to PHP Version 5.0.5-dev and MySQL Version 5.0.16.
* Upgraded to PHP Version 5.0.5-dev and MySQL Version 5.0.16.
* added google maps http://meta.wikimedia.org/wiki/User:Emiller/GoogleMapsExtension
* added [https://www.mediawiki.org/wiki/Extension:Maps maps extension]
* added email obfuscator http://meta.wikimedia.org/wiki/User:Tdittmar/MailObfuscator
* edit MediaWiki:Edithelppage and change "Help:Editing" to the "http://meta.wikimedia.org/wiki/Help:Editing" without quotes
* added Navigational Images http://meta.wikimedia.org/wiki/User:Jbennet/Navigational_images
* added Navigational Images http://meta.wikimedia.org/wiki/User:Jbennet/Navigational_images
* for the forums: added [http://www.phpbb.com/phpBB/viewtopic.php?t=117359&highlight=userlist Admin Userlist]
* for the forums: added [http://www.phpbb.com/phpBB/viewtopic.php?t=117359&highlight=userlist Admin Userlist]
* added [http://wikipainting.free.fr/mediawiki-1.6.5/index.php?title=Multilanguage_extension multilang extension]
* added <strike>[http://wikipainting.free.fr/mediawiki-1.6.5/index.php?title=Multilanguage_extension multilang extension]</strike>  '''Update:''' if necessary, the replacement is [http://www.mediawiki.org/wiki/Extension:Multilang MultiLang], but it doesn't work yet on the latest wiki. [[Sandbox#Languages_Tests|Maybe I fixed it]];)
* added [http://meta.wikimedia.org/wiki/ParserFunctions ParserFunctions] and [http://www.mediawiki.org/wiki/Template:Languages Languages Template]
* added [http://meta.wikimedia.org/wiki/ParserFunctions ParserFunctions] and [http://www.mediawiki.org/wiki/Template:Languages Languages Template]
* create a new page [[Template:Lowercase]] and add the following:<br>
<pre>{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{lcfirst:{{PAGENAME}}}}}}</pre>
* enabled email notifications (in DefaultSettings.php, search for "enotif", set them to TRUE)
* enabled email notifications (in DefaultSettings.php, search for "enotif", set them to TRUE)
* Added [http://www.google.com/analytics/ Google Analytics] <strike>using the [http://meta.wikimedia.org/wiki/Google_Analytics Analytics Extension]</strike> using [http://iguane39.free.fr/mediawiki/index.php?title=MediawikiEtGoogleAnalytics/En Wiki-Wide Analytics] plus [http://www.mediawiki.org/wiki/Extension:Google_Analytics_Links Analytics Links].
* force SSL for registration and login for forums
// if (!$wgUser->isSysop()) {
* Added [http://www.google.com/analytics/ Google Analytics] <strike>using the [http://www.mediawiki.org/wiki/Extension:Google_Analytics Analytics Extension]</strike> using [http://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration Wiki-Wide Analytics] plus [http://www.mediawiki.org/wiki/Extension:Google_Analytics_Links Analytics Links].
if ($wgUser->getName() != "Dave") {
* added [http://www.mediawiki.org/wiki/Extension:EmbedVideo EmbedVideo] for youtube / google video etc
// also copied the urchin.js to local, for better performance, not wait on google
** search and replace "http://www.youtube" with "https://www.youtube"
* added [https://www.mediawiki.org/wiki/Extension:Html5mediator Html5mediator], for embedding mp4 files
** don't forget: $wgFileExtensions[] = 'mp4';
* added google site map
* send notify emails for all watchlist edits regardless of recipient page view by not adding a timestamp to the watchlist table<br>
<pre>
--- ./includes/UserMailer.orig.php 2011-08-23 08:50:41.000000000 -0700
+++ ./includes/UserMailer.php 2011-08-23 09:02:44.000000000 -0700
@@ -326,7 +326,11 @@
foreach ( $res as $row ) {
$watchers[] = intval( $row->wl_user );
}
+/*
+    Brad: Dave wants to be notified of all edits so we will not add a timestamp to the watchlist.wl_notificationtimestamp field.
if ( $watchers ) {
+*/
+ if ( $watchers && false ) {
// Update wl_notificationtimestamp for all watching users except
// the editor
$dbw->begin();
</pre>
* Added [http://www.mediawiki.org/wiki/Extension:Skype Skype extension]
* Add Google Translate extension
<nowiki>extensions/GoogleTranslator/GoogleTranslator.class.php</nowiki>
<pre><?php
if (!defined('MEDIAWIKI')) die();
/**
* Class file for the GoogleTranslator extension
*
* @addtogroup Extensions
* @author Joachim De Schrijver
* @license LGPL
*/
class GoogleTranslator {
        static function GoogleTranslatorInSidebar( $skin, &$bar ) {
                global $wgGoogleTranslatorOriginal,$wgGoogleTranslatorLanguages;
                wfLoadExtensionMessages( 'GoogleTranslator' );
                $bar['googletranslator'] = "<div id=\"google_translate_element\"></div><script>
                                        function googleTranslateElementInit() {
                                          new google.translate.TranslateElement({
                                            pageLanguage: '".$wgGoogleTranslatorOriginal."',
                                            includedLanguages: '".$wgGoogleTranslatorLanguages."'
                                          }, 'google_translate_element');
                                        }
                                        </script><script src=\"http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit\"></script>";
                return $bar;
                return true;
        }
}
</pre>
<nowiki>extensions/GoogleTranslator/GoogleTranslator.css</nowiki>
<pre>
/**
* Stylesheet for GoogleTranslator extension.
*
* This should be added to [[MediaWiki:Common.css]] page when installing this
* extension and should not be modified. You may modify the CSS code on the
* MediaWiki:Common.css page to adjust padding, alignment, etc.
*
* @addtogroup Extensions
*/
/* Pad Google AdSense box in portlet in sidebar */
#p-googleatranslator .pBody {
    padding-top: 5px;
    text-align:  center;
}
</pre>
<nowiki>extensions/GoogleTranslator/GoogleTranslator.i18n.php</nowiki>
<pre>
<?php
/**
* Internationalisation file for extension GoogleTranslator
*
* @addtogroup Extensions
* @license LGPL
*/
$messages = array();
/** English
* @author Joachim De Schrijver
*/
$messages['en'] = array(
        'googletranslator'      => 'Translate', # do not translate or duplicate this message to other languages
'googletranslator-desc' => 'Adds [http://www.google.com/translate Google Translator] to the sidebar',
);
/** Message documentation (Message documentation)
* @author Joachim De Schrijver
*/
$messages['qqq'] = array(
        'googletranslator-desc' => 'Short description of this extension, shown on [[Special:Version]]. Do not translate or change links.',
);
/** Russian
* @author Michael P Dubner
*/
$messages['ru'] = array(
        'googletranslator-desc' => 'Добавляет [http://www.google.com/translate Google Переводчик] в блок навигации.',
);
/** French
* @author Pierre Mavro
*/
$messages['fr'] = array(
        'googletranslator'      => 'Translate',
        'googletranslator-desc' => 'Ajoute [http://www.google.com/translate Google Traduction] dans la bare latérale',
);
</pre>
<nowiki>extensions/GoogleTranslator/GoogleTranslator.php</nowiki>
<pre>
<?php
/**
* MediaWiki extension to add Google Translator in a portlet in the sidebar.
* Installation instructions can be found on
* http://www.mediawiki.org/wiki/Extension:Google_Translator
*
* This extension will not add the Google Translator portlet to *any* skin
* that is used with MediaWiki. Because of inconsistencies in the skin
* implementation, it will not be add to the following skins:
* cologneblue, standard, nostalgia
*
* @addtogroup Extensions
* @author Joachim De Schrijver
* @license LGPL
*
* Loosely based on the Google AdSense extension by Siebrand Mazeland
*/
/**
* Exit if called outside of MediaWiki
*/
if( !defined( 'MEDIAWIKI' ) ) {
        echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
        die( 1 );
}
/**
* SETTINGS
* --------
* The description of the portlet can be changed in [[MediaWiki:Googletranslator]].
*
* The following variables may need to be reset in your LocalSettings.php.
  */
$wgGoogleTranslatorOriginal  = $wgLanguageCode; // Original languages of the page that needs translation
$wgGoogleTranslatorLanguages  = 'fr,de';        // Languages included in the translating box
$wgExtensionCredits['other'][] = array(
        'name'          => 'Google Translator',
        'version'        => '0.1',
        'author'        => 'Joachim De Schrijver',
        'description'    => 'Adds [http://translate.google.com Google Translator] to the sidebar',
        'descriptionmsg' => 'googletranslator-desc',
        'url'            => 'http://www.mediawiki.org/wiki/Extension:Google_Translator',
);
// Register class and localisations
$dir = dirname(__FILE__) . '/';
$wgAutoloadClasses['GoogleTranslator'] = $dir . 'GoogleTranslator.class.php';
$wgExtensionMessagesFiles['GoogleTranslator'] = $dir . 'GoogleTranslator.i18n.php';
// Hook to modify the sidebar
$wgHooks['SkinBuildSidebar'][] = 'GoogleTranslator::GoogleTranslatorInSidebar';
</pre>
<nowiki>LocalSetting.php</nowiki>
<pre>
/* Add Multilang extension */
# Include Google Translator extension.
include_once( "$IP/extensions/GoogleTranslator/GoogleTranslator.php" );
# Set original language to convert from.
$wgGoogleTranslatorOriginal  = 'en';
# List languages we want to convert to.
$wgGoogleTranslatorLanguages  = 'es,nl,fr,de,it,ja,zh-CN,zh-TW,iw,ko,ru';
# Non-authoratative list of languages support by Google Translate. 20120110
/*
"af"-Afrikaans
"sq"-Albanian
"ar"-Arabic
"hy"-Armenian ALPHA
"az"-Azerbaijani ALPHA
"eu"-Basque ALPHA
"be"-Belarusian
"bg"-Bulgarian
"ca"-Catalan
"zh-CN"-Chinese
"hr"-Croatian
"cs"-Czech
"da"-Danish
"nl"-Dutch
"en"-English
"et"-Estonian
"tl"-Filipino
"fi"-Finnish
"fr"-French
"gl"-Galician
"ka"-Georgian ALPHA
"de"-German
"el"-Greek
"ht"-Haitian Creole ALPHA
"iw"-Hebrew
"hi"-Hindi
"hu"-Hungarian
"is"-Icelandic
"id"-Indonesian
"ga"-Irish
"it"-Italian
"ja"-Japanese
"ko"-Korean
"lv"-Latvian
"lt"-Lithuanian
"mk"-Macedonian
"ms"-Malay
"mt"-Maltese
"no"-Norwegian
"fa"-Persian
"pl"-Polish
"pt"-Portuguese
"ro"-Romanian
"ru"-Russian
"sr"-Serbian
"sk"-Slovak
"sl"-Slovenian
"es"-Spanish
"sw"-Swahili
"sv"-Swedish
"th"-Thai
"tr"-Turkish
"uk"-Ukrainian
"ur"-Urdu ALPHA
"vi"-Vietnamese
"cy"-Welsh
"yi"-Yiddish
/**/
</pre>
* Add [http://www.mediawiki.org/wiki/Extension:ConfirmEdit ConfirmEdit] extension
<nowiki>LocalSetting.php</nowiki>
<pre>
/* Add ConfirmEdit extension */
require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
 
/* Asirra captcha *
require_once( "$IP/extensions/ConfirmEdit/Asirra.php" );
$wgCaptchaClass = 'Asirra';
/**/
 
/* QuestyCaptcha captcha */
require_once( "$IP/extensions/ConfirmEdit/QuestyCaptcha.php" );
$wgCaptchaClass = 'QuestyCaptcha';
$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => array ( "answer 1" , "Answer One" ) );
$wgCaptchaQuestions[] = array( 'question' => "Question 2?", 'answer' => array ( "AnSwEr TwO" ) );
/**/
 
$wgGroupPermissions['*'            ]['skipcaptcha'] = false;
$wgGroupPermissions['user'        ]['skipcaptcha'] = false;
$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = false;
$wgGroupPermissions['bot'          ]['skipcaptcha'] = false;
$wgGroupPermissions['sysop'        ]['skipcaptcha'] = false;
 
$wgCaptchaTriggers['edit']          = true;
$wgCaptchaTriggers['create']        = true;
$wgCaptchaTriggers['addurl']        = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin']      = true;
$wgCaptchaTriggers['contactpage']  = true; // this is the feedback form
/**/                                                                                                       
</pre>
* Add [http://www.mediawiki.org/wiki/Extension:ContactPage ContactPage] extension
** [[Special:Contact|Feedback]]
<nowiki>LocalSetting.php</nowiki>
<pre>
/* Add ContactPage extension */
require_once( "$IP/extensions/ContactPage/ContactPage.php" );
$wgContactUser = 'WikiUserWhoWillReceiveEmail';
$wgContactSender = $wgPasswordSender;
$wgContactSenderName = 'Contact Form on ' . $wgSitename;
/**/
</pre>
* <span id="Add_WikiEditor_extension">Add WikiEditor extension</span>
<nowiki>LocalSetting.php</nowiki>
<pre>
/* Add WikiEditor extension */
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
/**/
</pre>
* <span id="Use_SMTP">Use SMTP</span>
<nowiki>LocalSetting.php</nowiki>
<pre>
/* Use SMTP */
$wgSMTP = array(
    'host'    => 'smtp.domain.com',
    'IDHost'  => 'karaoke.kjams.com',
    'port'    => [port number],
    'auth'    => true,
    'username' => [email account],
    'password' => [password],
);
/**/
</pre>
 
add this to LocalSettings:
// external links open in new page
$wgExternalLinkTarget = '_blank';
 
 
changed last line of NavImage.php to be this (for external links to go to new tab):
$myreturn = '<a href="'.$out_url[1].'" target="_blank">'.$imageoutput.'</a>';
 
* <span id="Fix_GoogleTranslate_extension">Fix GoogleTranslate extension </span>
<nowiki>extensions/GoogleTranslator/GoogleTranslator.class.php</nowiki>
<pre>
/**
* The wfLoadExtensionMessages function has been removed from mediawiki and we don't need
* it here so we comment it out.
*/
#                wfLoadExtensionMessages( 'GoogleTranslator' );
</pre>
 
* <span id="phpBB_requires_ImageMagick">phpBB requires ImageMagick for attachment thumbnail generation.</span>
** We used MacPorts to install ImageMagick to /opt/local prefix.
*** Note: we installed ImageMagick via MacPorts without having an Xcode installation and testing indicates this worked ok in this case.
 
* Install PHP release version via MacPorts
** sudo port install php56-apache2handler
** change apache php module location in /etc/apache/httpd.conf
*** from:
**** LoadModule php5_module libexec/apache2/libphp5.so
*** to:
**** LoadModule php5_module /opt/local/apache2/modules/mod_php56.so
** set mysql socket location in /opt/local/ete/php56/php.ini
*** pdo_mysql.default_socket=/var/mysql/mysql.sock
*** mysql.default_socket =/var/mysql/mysql.sock
*** mysqli.default_socket =/var/mysql/mysql.sock
** Install the following pear modules
*** Archive_Tar
*** Auth
*** Auth_SASL
*** Cache_Lite
*** Config
*** Console_Color
*** Console_Getargs
*** Console_Getopt
*** Console_GetoptPlus
*** Console_ProgressBar
*** Console_Table
*** Contact_Vcard_Parse
*** DB
*** DB_DataObject
*** DB_Table
*** Date
*** File
*** File_CSV
*** File_Gettext
*** File_IMC
*** File_Util
*** HTML_AJAX
*** HTML_Common
*** HTML_Common2
*** HTML_Javascript
*** HTML_QuickForm
*** HTML_QuickForm2
*** HTML_Table
*** HTML_Template_Flexy
*** HTML_Template_IT
*** HTTP_Client
*** HTTP_Request
*** HTTP_Request2
*** HTTP_Session2
*** I18Nv2
*** Image_Color
*** Image_GraphViz
*** Image_Tools
*** Log
*** MDB
*** MDB2
*** MDB2_Driver_mysqli
*** MIME_Type
*** Mail
*** Mail_Mime
*** Mail_mimeDecode
*** Math_BigInteger
*** Math_Finance
*** Math_Numerical_RootFinding
*** Net_DIME
*** Net_SMTP
*** Net_Socket
*** Net_URL
*** Net_URL2
*** Net_URL_Mapper
*** Numbers_Words
*** OLE
*** PEAR
*** PEAR_Frontend_Web
*** PHPUnit
*** PHP_Compat
*** Pager
*** PhpDocumentor
*** SOAP
*** Services_GeoNames
*** Spreadsheet_Excel_Writer
*** Structures_DataGrid
*** Structures_DataGrid_DataSource_Array
*** Structures_DataGrid_DataSource_CSV
*** Structures_DataGrid_DataSource_DB
*** Structures_DataGrid_DataSource_DBQuery
*** Structures_DataGrid_DataSource_DBTable
*** Structures_DataGrid_DataSource_DataObject
*** Structures_DataGrid_DataSource_MDB2
*** Structures_DataGrid_DataSource_PDO
*** Structures_DataGrid_DataSource_RSS
*** Structures_DataGrid_DataSource_XML
*** Structures_DataGrid_Renderer_CSV
*** Structures_DataGrid_Renderer_Console
*** Structures_DataGrid_Renderer_HTMLSortForm
*** Structures_DataGrid_Renderer_HTMLTable
*** Structures_DataGrid_Renderer_Pager
*** Structures_DataGrid_Renderer_Smarty
*** Structures_DataGrid_Renderer_XLS
*** Structures_DataGrid_Renderer_XML
*** Structures_DataGrid_Renderer_XUL
*** Structures_Graph
*** System_Command
*** Translation2
*** Validate
*** Validate_Finance
*** XML_Beautifier
*** XML_Parser
*** XML_RSS
*** XML_Serializer
*** XML_Util
*** XML_XPath

Latest revision as of 16:06, 16 April 2020

body {
    background-color: #f9f9f9;
    /* this assumes that your wiki is installed at '/w' in the web root */
    background-image: url('/w/skins/header_background.jpg');
    background-repeat: no-repeat;
}

#mw-page-base {
  background-image: none;
  background-color: transparent;
}
  • Auth_phpbb.php v 1.5 (released 2005-09-12)
    • Overides includes/AuthPlugin.php functions to provide authentication against phpBB user table for wiki edit access.
  • note this: from Brad: I don’t know what the problem is with “sendmail” on agape but I saw the forum emails where going out and it is setup to use SMTP rather then PHP’s built in mail() function which relies on a working sendmail program on the host. So I installed a WP SMTP plugin so we are done with that.
  • Added the following lines to includes/templates/Userlogin.php at line 19 to provide account creation info for new users.
<?php
// Begin Edit
// Added link to forum with text for signup.
// Author: Brad on 20050920 ?>
<h2>Create an Account:</h2>
<p>To create an account please <a href="https://www.kjams.com/forum/profile.php?mode=register">register</a> in our forum.
      Once you have registered send an email to the Wiki Group Moderator requesting a Wiki membership.</p>
<?php
// End Edit ?>
  • forum Style:
    • same version of phpBB
      • go to the "styles/" folder, and install "we_universal" folder. then go to forum admin->customize->install styles, and install it, then go back to "styles" and click "details" on "we_universal" style, and click "use as default"
    • new version
      • download latest "we_universal" style plugin
      • drag "kjams.php" and "images_k" into place (forum/styles/we_universal/theme)
      • edit "stylesheet.css" and add "@import url("kjams.css");" to the very end
  • add this to wordpress "functions.php" in the theme
add_filter( 'auto_update_plugin', '__return_true' );
  • OR add this as "default_plugin.php" into /wp-content/plugins/_default_plugin/
<?php
/*
Plugin Name: Site Plugin for example.com
Description: Site specific code changes for example.com
*/
/* Start Adding Functions Below this Line */

add_filter( 'auto_update_plugin', '__return_true' );
 
/* Stop Adding Functions Below this Line */
?>
  • Addes the following lines to LocalSettings.php at line 2 to force SSL for logins.
// Begin Edit
// We are only operating on port 443 (SSL) for logins
// Author: Brad on 20050920
if($_SERVER['SERVER_PORT'] != '443' && $_REQUEST['title'] == 'Special:Userlogin')
{
  header('Location: https://www.kjams.com'.$_SERVER['REQUEST_URI']);
}
elseif($_SERVER['SERVER_PORT'] == '443' && $_REQUEST['title'] != 'Special:Userlogin')
{
  header('Location: http://www.kjams.com'.$_SERVER['REQUEST_URI']);
}
// End Edit
{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{lcfirst:{{PAGENAME}}}}}}
--- ./includes/UserMailer.orig.php	2011-08-23 08:50:41.000000000 -0700
+++ ./includes/UserMailer.php	2011-08-23 09:02:44.000000000 -0700
@@ -326,7 +326,11 @@
 			foreach ( $res as $row ) {
 				$watchers[] = intval( $row->wl_user );
 			}
+/*
+    Brad: Dave wants to be notified of all edits so we will not add a timestamp to the watchlist.wl_notificationtimestamp field.
 			if ( $watchers ) {
+*/
+			if ( $watchers && false ) {
 				// Update wl_notificationtimestamp for all watching users except
 				// the editor
 				$dbw->begin();

extensions/GoogleTranslator/GoogleTranslator.class.php

<?php
if (!defined('MEDIAWIKI')) die();
/**
 * Class file for the GoogleTranslator extension
 *
 * @addtogroup Extensions
 * @author Joachim De Schrijver
 * @license LGPL
 */
class GoogleTranslator {
        static function GoogleTranslatorInSidebar( $skin, &$bar ) {
                global $wgGoogleTranslatorOriginal,$wgGoogleTranslatorLanguages;
 
                wfLoadExtensionMessages( 'GoogleTranslator' );
                $bar['googletranslator'] = "<div id=\"google_translate_element\"></div><script>
                                        function googleTranslateElementInit() {
                                          new google.translate.TranslateElement({
                                            pageLanguage: '".$wgGoogleTranslatorOriginal."',
                                            includedLanguages: '".$wgGoogleTranslatorLanguages."'
                                          }, 'google_translate_element');
                                        }
                                        </script><script src=\"http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit\"></script>";
                return $bar;
                return true;
        }
}

extensions/GoogleTranslator/GoogleTranslator.css

/**
* Stylesheet for GoogleTranslator extension.
*
* This should be added to [[MediaWiki:Common.css]] page when installing this
* extension and should not be modified. You may modify the CSS code on the
* MediaWiki:Common.css page to adjust padding, alignment, etc.
*
* @addtogroup Extensions
*/
 
/* Pad Google AdSense box in portlet in sidebar */
#p-googleatranslator .pBody {
    padding-top: 5px;
    text-align:  center;
}

extensions/GoogleTranslator/GoogleTranslator.i18n.php

<?php
/**
 * Internationalisation file for extension GoogleTranslator
 *
 * @addtogroup Extensions
 * @license LGPL
 */
 
$messages = array();
 
/** English
 * @author Joachim De Schrijver
 */
$messages['en'] = array(
        'googletranslator'      => 'Translate', # do not translate or duplicate this message to other languages
 'googletranslator-desc' => 'Adds [http://www.google.com/translate Google Translator] to the sidebar',
);
 
/** Message documentation (Message documentation)
 * @author Joachim De Schrijver
 */
$messages['qqq'] = array(
        'googletranslator-desc' => 'Short description of this extension, shown on [[Special:Version]]. Do not translate or change links.',
);
 
/** Russian
 * @author Michael P Dubner
 */
$messages['ru'] = array(
        'googletranslator-desc' => 'Добавляет [http://www.google.com/translate Google Переводчик] в блок навигации.',
);
 
/** French
 * @author Pierre Mavro
 */
$messages['fr'] = array(
        'googletranslator'      => 'Translate',
        'googletranslator-desc' => 'Ajoute [http://www.google.com/translate Google Traduction] dans la bare latérale',
);

extensions/GoogleTranslator/GoogleTranslator.php

<?php
/**
 * MediaWiki extension to add Google Translator in a portlet in the sidebar.
 * Installation instructions can be found on
 * http://www.mediawiki.org/wiki/Extension:Google_Translator
 *
 * This extension will not add the Google Translator portlet to *any* skin
 * that is used with MediaWiki. Because of inconsistencies in the skin
 * implementation, it will not be add to the following skins:
 * cologneblue, standard, nostalgia
 *
 * @addtogroup Extensions
 * @author Joachim De Schrijver
 * @license LGPL
 *
 * Loosely based on the Google AdSense extension by Siebrand Mazeland
 */
 
/**
 * Exit if called outside of MediaWiki
 */
if( !defined( 'MEDIAWIKI' ) ) {
        echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
        die( 1 );
}
 
/**
 * SETTINGS
 * --------
 * The description of the portlet can be changed in [[MediaWiki:Googletranslator]].
 *
 * The following variables may need to be reset in your LocalSettings.php.
  */
$wgGoogleTranslatorOriginal  = $wgLanguageCode; // Original languages of the page that needs translation
$wgGoogleTranslatorLanguages  = 'fr,de';        // Languages included in the translating box
 
$wgExtensionCredits['other'][] = array(
        'name'           => 'Google Translator',
        'version'        => '0.1',
        'author'         => 'Joachim De Schrijver',
        'description'    => 'Adds [http://translate.google.com Google Translator] to the sidebar',
        'descriptionmsg' => 'googletranslator-desc',
        'url'            => 'http://www.mediawiki.org/wiki/Extension:Google_Translator',
);
 
// Register class and localisations
$dir = dirname(__FILE__) . '/';
$wgAutoloadClasses['GoogleTranslator'] = $dir . 'GoogleTranslator.class.php';
$wgExtensionMessagesFiles['GoogleTranslator'] = $dir . 'GoogleTranslator.i18n.php';
 
// Hook to modify the sidebar
$wgHooks['SkinBuildSidebar'][] = 'GoogleTranslator::GoogleTranslatorInSidebar';

LocalSetting.php

/* Add Multilang extension */
# Include Google Translator extension.
include_once( "$IP/extensions/GoogleTranslator/GoogleTranslator.php" );
# Set original language to convert from.
$wgGoogleTranslatorOriginal  = 'en';
# List languages we want to convert to.
$wgGoogleTranslatorLanguages  = 'es,nl,fr,de,it,ja,zh-CN,zh-TW,iw,ko,ru';
# Non-authoratative list of languages support by Google Translate. 20120110
/*
"af"-Afrikaans
"sq"-Albanian
"ar"-Arabic
"hy"-Armenian ALPHA
"az"-Azerbaijani ALPHA
"eu"-Basque ALPHA
"be"-Belarusian
"bg"-Bulgarian
"ca"-Catalan
"zh-CN"-Chinese
"hr"-Croatian
"cs"-Czech
"da"-Danish
"nl"-Dutch
"en"-English
"et"-Estonian
"tl"-Filipino
"fi"-Finnish
"fr"-French
"gl"-Galician
"ka"-Georgian ALPHA
"de"-German
"el"-Greek
"ht"-Haitian Creole ALPHA
"iw"-Hebrew
"hi"-Hindi
"hu"-Hungarian
"is"-Icelandic
"id"-Indonesian
"ga"-Irish
"it"-Italian
"ja"-Japanese
"ko"-Korean
"lv"-Latvian
"lt"-Lithuanian
"mk"-Macedonian
"ms"-Malay
"mt"-Maltese
"no"-Norwegian
"fa"-Persian
"pl"-Polish
"pt"-Portuguese
"ro"-Romanian
"ru"-Russian
"sr"-Serbian
"sk"-Slovak
"sl"-Slovenian
"es"-Spanish
"sw"-Swahili
"sv"-Swedish
"th"-Thai
"tr"-Turkish
"uk"-Ukrainian
"ur"-Urdu ALPHA
"vi"-Vietnamese
"cy"-Welsh
"yi"-Yiddish
/**/

LocalSetting.php

/* Add ConfirmEdit extension */
require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );

/* Asirra captcha *
require_once( "$IP/extensions/ConfirmEdit/Asirra.php" );
$wgCaptchaClass = 'Asirra';
/**/

/* QuestyCaptcha captcha */
require_once( "$IP/extensions/ConfirmEdit/QuestyCaptcha.php" );
$wgCaptchaClass = 'QuestyCaptcha';
$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => array ( "answer 1" , "Answer One" ) );
$wgCaptchaQuestions[] = array( 'question' => "Question 2?", 'answer' => array ( "AnSwEr TwO" ) );
/**/

$wgGroupPermissions['*'            ]['skipcaptcha'] = false;
$wgGroupPermissions['user'         ]['skipcaptcha'] = false;
$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = false;
$wgGroupPermissions['bot'          ]['skipcaptcha'] = false;
$wgGroupPermissions['sysop'        ]['skipcaptcha'] = false;

$wgCaptchaTriggers['edit']          = true;
$wgCaptchaTriggers['create']        = true;
$wgCaptchaTriggers['addurl']        = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin']      = true;
$wgCaptchaTriggers['contactpage']   = true; // this is the feedback form
/**/                                                                                                         

LocalSetting.php

/* Add ContactPage extension */
require_once( "$IP/extensions/ContactPage/ContactPage.php" );
$wgContactUser = 'WikiUserWhoWillReceiveEmail';
$wgContactSender = $wgPasswordSender;
$wgContactSenderName = 'Contact Form on ' . $wgSitename;
/**/
  • Add WikiEditor extension

LocalSetting.php

/* Add WikiEditor extension */
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
/**/
  • Use SMTP

LocalSetting.php

/* Use SMTP */
$wgSMTP = array(
    'host'     => 'smtp.domain.com',
    'IDHost'   => 'karaoke.kjams.com',
    'port'     => [port number],
    'auth'     => true,
    'username' => [email account],
    'password' => [password],
);
/**/

add this to LocalSettings:

// external links open in new page
$wgExternalLinkTarget = '_blank';


changed last line of NavImage.php to be this (for external links to go to new tab):

$myreturn = '<a href="'.$out_url[1].'" target="_blank">'.$imageoutput.'</a>';
  • Fix GoogleTranslate extension

extensions/GoogleTranslator/GoogleTranslator.class.php

/**
 * The wfLoadExtensionMessages function has been removed from mediawiki and we don't need
 * it here so we comment it out.
 */
#                wfLoadExtensionMessages( 'GoogleTranslator' );
  • phpBB requires ImageMagick for attachment thumbnail generation.
    • We used MacPorts to install ImageMagick to /opt/local prefix.
      • Note: we installed ImageMagick via MacPorts without having an Xcode installation and testing indicates this worked ok in this case.
  • Install PHP release version via MacPorts
    • sudo port install php56-apache2handler
    • change apache php module location in /etc/apache/httpd.conf
      • from:
        • LoadModule php5_module libexec/apache2/libphp5.so
      • to:
        • LoadModule php5_module /opt/local/apache2/modules/mod_php56.so
    • set mysql socket location in /opt/local/ete/php56/php.ini
      • pdo_mysql.default_socket=/var/mysql/mysql.sock
      • mysql.default_socket =/var/mysql/mysql.sock
      • mysqli.default_socket =/var/mysql/mysql.sock
    • Install the following pear modules
      • Archive_Tar
      • Auth
      • Auth_SASL
      • Cache_Lite
      • Config
      • Console_Color
      • Console_Getargs
      • Console_Getopt
      • Console_GetoptPlus
      • Console_ProgressBar
      • Console_Table
      • Contact_Vcard_Parse
      • DB
      • DB_DataObject
      • DB_Table
      • Date
      • File
      • File_CSV
      • File_Gettext
      • File_IMC
      • File_Util
      • HTML_AJAX
      • HTML_Common
      • HTML_Common2
      • HTML_Javascript
      • HTML_QuickForm
      • HTML_QuickForm2
      • HTML_Table
      • HTML_Template_Flexy
      • HTML_Template_IT
      • HTTP_Client
      • HTTP_Request
      • HTTP_Request2
      • HTTP_Session2
      • I18Nv2
      • Image_Color
      • Image_GraphViz
      • Image_Tools
      • Log
      • MDB
      • MDB2
      • MDB2_Driver_mysqli
      • MIME_Type
      • Mail
      • Mail_Mime
      • Mail_mimeDecode
      • Math_BigInteger
      • Math_Finance
      • Math_Numerical_RootFinding
      • Net_DIME
      • Net_SMTP
      • Net_Socket
      • Net_URL
      • Net_URL2
      • Net_URL_Mapper
      • Numbers_Words
      • OLE
      • PEAR
      • PEAR_Frontend_Web
      • PHPUnit
      • PHP_Compat
      • Pager
      • PhpDocumentor
      • SOAP
      • Services_GeoNames
      • Spreadsheet_Excel_Writer
      • Structures_DataGrid
      • Structures_DataGrid_DataSource_Array
      • Structures_DataGrid_DataSource_CSV
      • Structures_DataGrid_DataSource_DB
      • Structures_DataGrid_DataSource_DBQuery
      • Structures_DataGrid_DataSource_DBTable
      • Structures_DataGrid_DataSource_DataObject
      • Structures_DataGrid_DataSource_MDB2
      • Structures_DataGrid_DataSource_PDO
      • Structures_DataGrid_DataSource_RSS
      • Structures_DataGrid_DataSource_XML
      • Structures_DataGrid_Renderer_CSV
      • Structures_DataGrid_Renderer_Console
      • Structures_DataGrid_Renderer_HTMLSortForm
      • Structures_DataGrid_Renderer_HTMLTable
      • Structures_DataGrid_Renderer_Pager
      • Structures_DataGrid_Renderer_Smarty
      • Structures_DataGrid_Renderer_XLS
      • Structures_DataGrid_Renderer_XML
      • Structures_DataGrid_Renderer_XUL
      • Structures_Graph
      • System_Command
      • Translation2
      • Validate
      • Validate_Finance
      • XML_Beautifier
      • XML_Parser
      • XML_RSS
      • XML_Serializer
      • XML_Util
      • XML_XPath