[support] Nodequeue blocks

Larry Garfield larry at garfieldtech.com
Tue Jun 1 04:15:41 UTC 2010


Nodequeue has pretty good Views integration.  You're probably much better off 
using that instead of writing your own code, even in Drupal 5.  It will be 
much more stable.

--Larry Garfield

On Monday 31 May 2010 04:47:35 pm Jacob Roufa wrote:
> 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
> 


More information about the support mailing list