KJams Wiki:About
Jump to navigation
Jump to search
- make yourself an admin so you can edit the header css, and put the header background in with this code:
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
- same version of phpBB
- 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
- 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.
- Upgraded to PHP Version 5.0.5-dev and MySQL Version 5.0.16.
- added maps extension
- 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
- for the forums: added Admin Userlist
- added
multilang extensionUpdate: if necessary, the replacement is MultiLang, but it doesn't work yet on the latest wiki. Maybe I fixed it;) - added ParserFunctions and Languages Template
- create a new page Template:Lowercase and add the following:
{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{lcfirst:{{PAGENAME}}}}}}
- enabled email notifications (in DefaultSettings.php, search for "enotif", set them to TRUE)
- force SSL for registration and login for forums
- Added Google Analytics
using the Analytics Extensionusing Wiki-Wide Analytics plus Analytics Links. - added EmbedVideo for youtube / google video etc
- search and replace "http://www.youtube" with "https://www.youtube"
- added 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
--- ./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();
- Added Skype extension
- Add Google Translate extension
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 /**/
- Add ConfirmEdit extension
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 /**/
- Add ContactPage extension
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.
- We used MacPorts to install ImageMagick to /opt/local prefix.
- 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
- from:
- 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_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