KJams Wiki:About

From kJams Wiki
Revision as of 22:10, 27 August 2011 by Brad (talk | contribs)
Jump to navigation Jump to search
  • Version info
  • PHP Info Page
  • 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.
  • 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 ?>
  • 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}}}}}}
  • 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 Extension using Wiki-Wide Analytics plus Analytics Links.
  • added EmbedVideo for youtube / google video etc
  • 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 kJams Documentation link to the forum overall_header.html template.
  <li class="icon-faq" style="background-image: url('https://karaoke.kjams.com/forum/styles/prosilver/imageset/kjams_logo16x14.png');">
    <a href="https://karaoke.kjams.com/wiki/Documentation" title="kJams Documentation">kJams Documentation</a></li>
  • added email obfuscator
    • Fixed MailObfuscator.php to work with newer version of mediawiki.
--- MailObfuscator.bak.php	2011-08-26 19:03:29.000000000 -0700
+++ MailObfuscator.php	2011-08-27 07:30:00.000000000 -0700
@@ -15,6 +15,21 @@
 
 
 ##
+## Add our JavaScript file
+##
+$wgHooks['BeforePageDisplay'][]  = 'mailObfuscate_JavaScript';
+function mailObfuscate_JavaScript( $out ) 
+{
+  # -----------------------------------------------
+  #  Merge JavaScript into OutputPage
+  # -----------------------------------------------
+  global $wgScriptPath;
+  $script = "<script type=\"text/javascript\" src=\"{$wgScriptPath}/extensions/MailObfuscator/MailObfuscator.js\"></script>";
+  $out->addHeadItem( 'mailObfuscate_JavaScript', $script );
+  return true;
+}
+
+##
 ## Installs the extension
 ##
 function mailObfuscate_Install() 
--- CommentFormEdit.bak.php	2011-08-27 14:41:04.000000000 -0700
+++ CommentFormEdit.php	2011-08-27 15:00:11.000000000 -0700
@@ -19,7 +19,9 @@
 <input TYPE=\"HIDDEN\" NAME=\"clientIP\" VALUE=\"{$_SERVER['REMOTE_ADDR']}\">
 <input TYPE=\"HIDDEN\" NAME=\"kJams\" VALUE=\"{$_REQUEST['kJams']}\">
 <p>Did you know we now have public <a href=\"http://www.kjams.com/forum/\">Forums</a>?<br>
-If you'd rather use your email client, <a href=\"mailto:dave@kjames.com?subject=kJams Feedback\">click here</a>.<br>
+If you'd rather use your email client, 
+<script type=\"text/javascript\">writeMail(\"dave\",\"kjams.com?subject=kJams Feedback\",\"click here\");</script>
+<noscript><span style=\"font-style:italic\">(Please activate JavaScript in order to see the eMail address)</span></noscript>.<br>
 If you'd like send feeback using this form, fill in fields below and click the "Send" button.</p>
 Name : <br>
 <input TYPE=\"TEXT\" NAME=\"realname\" SIZE=\"35\"tabindex=\"1\"><br>

SVN

http://agileshrugged.com/blog/?p=14
http://www.makkintosshu.com/journal/automating-fixdavsvn

Are we using this? Ok, really, are we using this? yes, i think so aboot

Brad

Would be real nice to create a www/www.kjams.com svn repository.

Dave should be getting multiple same watchlist page notifies without having to visit the page. Everyone else will be getting the same behavior.

Brad2

Great idea, lets do it soon.

already done

just sayin'

What's already done?