User:Jomegat/Admin

From Pathfinder Wiki

Footer

Today Mark asked me to add a footer to the wiki to indicate that the site was owned and operated by the NAD Youth Ministries Department. It took me a long time to figure out how to wedge that in. If we were running 1.19, it would have been as simple as creating the MediaWiki:Custom-footer page in standard wiki syntax. Instead, I added the following to LocalSettings.php:

$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'NADFooter';
function NADFooter($sk, &$tpl)
{
  $tpl->set('nadsite',
            'This is an official site of the North American Division
             Youth & Young Adult Ministries
             of the Seventh-day Adventist Church<br>
             12501 Old Columbia Pike<br>
             Silver Spring, MD 20904');
  $tpl->data['footerlinks']['places'][] = 'nadsite';
  return true;

}

$wgFooterIcons['poweredby']['NADSite'] = array(
  "src" => "http://www.investitureachievement.org/wiki/images/2/25/Adventist_log
  "url" => "http://pathfindersonline.org",
  "alt" => "PathfindersOnline",
  "height" => "30",
  "width" => "100"
);

We really ought to institute a regimen of regular site upgrades - probably every July when Pathfinders is less active than usual. I don't want the Wiki to be running on eight year-old software in seven years. --Jomegat 00:39, 13 March 2013 (EDT)