--- ticketyboo.module.orig 2009-01-09 11:42:57.000000000 +0100 +++ ticketyboo.module 2009-01-09 12:09:05.000000000 +0100 @@ -182,8 +182,20 @@ } $item_style = "overflow-x: hidden; overflow-y: hidden; {$float} width: {$item_width}px; height: {$item_height}px; {$item_style}"; + // 8p8 patch + $r = db_query("SELECT DISTINCT type FROM {node_type}"); $types = array(); + while ($t = db_fetch_array($r)) { $types[] = $t['type']; } + if (in_array($nodes, $types)) { + // select nodes by content-type + $r = db_query("SELECT nid FROM {node} WHERE type='$nodes'"); $nodes = array(); + while ($n = db_fetch_array($r)) { $nodes[] = $n['nid']; } + } + else { + // explicitly set nids + $nodes = explode(',', $nodes); + } + // build the ticker contents - $nodes = explode(',', $nodes); $ret = ''; $i=0; foreach ($nodes as $nid) {