[support] Nodequeue blocks

Jacob Roufa jacob.roufa at gmail.com
Mon May 31 21:47:35 UTC 2010


Hey all,

I have a nodequeue set up and I threw some php code in a block to display
the nodes I want... This all worked great for me until I updated the site to
the latest Drupal 5.22 and all of a sudden I'm getting an error : *Parse
error*: syntax error, unexpected T_VARIABLE in */includes/common.inc(1497) :
eval()'d code* on line *1*

The code for the block is :
<?php$get_nodes = db_query("SELECT * from nodequeue_nodes WHERE qid = 1
ORDER BY position DESC limit 3");$count = 0;while ($node =
db_fetch_object($get_nodes)) {  $count = $count + 1;  $full_node =
node_load($node->nid);  if ($count == 3) {    print node_view($full_node);
} else {    print node_view($full_node);  }}?>

I have the latest Drupal 5.x version of all the modules and core. My theme
is not getting in the way I don't think... Any thoughts as to why I'm
getting this error instead of my block displaying properly??


Jake Roufa
208.557.9390
http://jacobroufa.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100531/f8e493b5/attachment.html 


More information about the support mailing list