MediaWiki templates

Today, after a long time, I am finally ready to learn about MediaWiki templates. After having put that off for weeks since I’d first heard of them, I found that it only took about five minutes to learn just about everything there is to know about them from the MediaWiki templates documentation. I think there are a few areas of the ProgClub wiki that could do with the use of templates, might go and see to that now.

WordPress hooks

I wanted to configure the “From” email address that WordPress uses when emailing password resets. The way to do this is with a WordPress hook, specifically a filter hook in this case. So, in wp-config.php I added the following code:

add_filter( 'wp_mail_from', 'pcblog_mail_from' );
add_filter( 'wp_mail_from_name', 'pcblog_mail_from_name' );

function pcblog_mail_from() {
  return 'pcblog@progclub.org';
}
function pcblog_mail_from_name() {
  return 'ProgClub blog';
}

ProgClub news

There’s been news every day for a while now. Not too shabby. Today’s news is that ViewVC (aka: Pcview) has been installed and configured on charity.progclub.org. That means that now pcrepo can be browsed online. Comes complete with support for syntax highlighting and line-numbers (courtesy of the ‘highlight’ package, couldn’t get enscript to work for PHP) and a proper logo with a link back to the wiki. That’s five completed projects now! Go school!