Get your own customer support community
 

voting widget appears on teaser

The widget appears on teasers because the _nodeapi function should check for full page or teaser view.

This patch is for outbrain.module,v 3.2.0.1 2008/05/05


--- outbrain.module.orig 2008-09-25 00:28:44.000000000 -0400
+++ outbrain.module 2008-09-25 00:27:50.000000000 -0400
@@ -108,7 +108,8 @@
*/
function outbrain_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
// we're in full node view
- if ($op == 'view') {
+ // $a3 gets $teaser if in 'view'
+ if ($op == 'view' && !$a3) {
//Check our node is one of the ok types
if(in_array($node->type, variable_get('outbrain_node_types', array()), TRUE)) {
$node->content['outbrain_rating'] = array(
Inappropriate?
2 people have this problem
See the changes made to this problem
User_default_medium