Hi,

I would love to implement Block Term, and obviously I'm missing something here. There is no [mytheme]_block($block) in my template.php using the Zen Classic Theme. When I insert it in template.php have major 500 internal server error.

What does exist in template.php is:

/**
 * Override or insert PHPTemplate variables into the block templates.
 *
 * @param $vars
 *   A sequential array of variables to pass to the theme template.
 */
/* -- Delete this line if you want to use this function
function zen_classic_preprocess_block(&$vars) {
  $vars['sample_variable'] = t('Lorem ipsum.');
}
// */

Does it perhaps have something to do with that? Sorry, newbie here, yet your module would make a major difference to my site.

Look forward to hearing from you and thank you.
Lilian

Comments

upasaka’s picture

Hi Lilian,
Newbie here too. Infact my first post helping someone!
My theme did not have the [mytheme]_block($block) so I created one.

just paste this code at the end of templete.php:

function [yourthemename]_block($block){
if (module_exists('blockterm')) {
  if (!blockterm_can_show($block) ) {
    return;
  }
}

return phptemplate_block($block);
}

Just change [yourthemename] to whatever is relevent.
Then as the README says, go to a particular block in Administer » Site building » Blocks and you must see 'Block Taxonomy Settings' . Be sure to choose in page visibility settings'Show only on listed pages' and add "*node/*" (without quotes)to that list.
Hope this helps!

Anonymous’s picture

Assigned: Unassigned »

It looks to me that the theme you use is for Drupal 6.x. If you're using Drupal 6.x, please have a look at the 6.x update I've just posted.
http://drupal.org/node/248247

Anonymous’s picture

Status: Active » Closed (fixed)

Closing this issue. No response in almost a year.