I added the code to the garland template but it's not working. I'm sure i did something wrong.
function _phptemplate_variables($hook, $vars) {
if ($hook == 'page') {
if ($secondary = menu_secondary_local_tasks()) {
if (module_exists('advanced_profile')) {
$vars = advanced_profile_addvars($hook, $vars);
}
if (module_exists('advanced_forum')) {
$vars = advanced_forum_addvars($hook, $vars);
}
/***EXISTING CODE IN THE FUNCTION, IF ANY***/
$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;
}
| Comment | File | Size | Author |
|---|---|---|---|
| template.php_.txt | 2.37 KB | tasigurl |
Comments
Comment #1
michelleYeah, that was pretty goofed up. Here's the corrected code:
Michelle
Comment #2
tasigurl commentedI still get an error message. I pasted the original garland code and the code aftre I pasted your code. Can you tell me what I did wrong? Will the advanced profile kit work without this code?
thank you
garland theme template.php
Origninal:
with code:
Comment #3
michelleThose are two different versions of template.php. The second one looks like it's from D6.
Michelle
Comment #4
tasigurl commentedYou were right wrong version. thank you!! I got the right version installed, and made the change to the Garland template.php. However I got this error when I enabled the modules:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/gotantan/public_html/rwolfefamily/modules/activity/activity.module on line 202
Comment #5
michelleThat error is from the activity module, not APK.
Michelle
Comment #6
tasigurl commentedOh Yes your right. I was so fucused on fixing the template problem that I forgot that I was also having a problem with that (activity) module.
thank you
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.