Hi guys,

I think this module doesn't work with Ctools Page Manager. In hook_nodeapi have only 'load' op, and it doesn't give the awarded points.

Is anybody know this issue?

Comments

riskogab’s picture

Maybe with this code you can solve the problem. I tried and it works for me.

function userpoints_pageviews_init() {
  if (module_exists('page_manager') && arg(0) == 'node' && is_numeric(arg(1))) {
    $node = node_load(arg(1));
    if ($node !== FALSE) {
      userpoints_pageviews_nodeapi($node, 'view', NULL, TRUE);
    }
  }
}