For all ADC theme users (and I guess anyone who uses themes that aren’t the xtemplate / phptemplate based ones) who want to use avatars and Mission statements on their sites, here is what I added to get them working in Drupal 4.5.0: (Warning, this is advice for n00bs such as myself who couldn’t find the answers by searching)
Mission: from Xtemplate (lines 179-182):
if ($_GET["q"] == variable_get("site_frontpage", "node") && theme_get_setting('toggle_mission') && ($mission = theme_get_setting('mission'))) {
$xtemplate->template->assign("mission", $mission);
$xtemplate->template->parse("header.mission");
}
Changed to:
if ($_GET["q"] == variable_get("site_frontpage", "node") && theme_get_setting('toggle_mission') && ($mission = theme_get_setting('mission'))) {
$output .= theme_get_setting(‘mission’);
}
And inserted at line 70 in adc.theme, so it appears before the content is called.
For the Styling, I created a class in my css called ‘mission’, and on the settings page where you write the mission I surrounded in with <div class=”mission”></div>
(I tried doing this in the theme, but my php isn’t up to scratch)
Avatars / User Pictures
In adc.theme at line 10:
function adc_features() {
return array('toggle_name', 'toggle_slogan', 'toggle_primary_links');
}