template.php modification
teamdiets - February 21, 2008 - 03:18
| Project: | Advanced Forum |
| Version: | 5.x-1.0-alpha2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | teamdiets |
| Status: | closed |
Jump to:
Description
I can't figure out how to correctly change the template.php file for the advanced forum mod. As per your instructions, I've attached the template.php file. Please advise.
| Attachment | Size |
|---|---|
| template.php_.txt | 3.96 KB |

#1
That looks just like Garland's, which is included in the package... Anyway:
<?php
function _phptemplate_variables($hook, $vars) {
if (module_exists('advanced_forum')) {
$vars = advanced_forum_addvars($hook, $vars);
}
if ($hook == 'page') {
if ($secondary = menu_secondary_local_tasks()) {
$output = '<span class="clear"></span>';
$output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n";
$vars['tabs2'] = $output;
}
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
}
return $vars;
}
?>
#2
It's actually Aberdeen, but thanks.
#3
Ah, interesting. I didn't realize there were other themes using the color module.
Michelle
#4
Automatically closed -- issue fixed for two weeks with no activity.