[support] Nodequeue blocks
Jacob Roufa
jacob.roufa at gmail.com
Tue Jun 1 05:18:58 UTC 2010
Thanks for the help guys! I took your advice Dom and put in the space and
braces and it works great. Also going to try out the nodequeue_load_nodes()
later on. The code I had was created by a dev earlier than when I took on
the site so most of the work on it is very definitively not Drupal-y...
Workin' on cleaning it up! Also, Crell, I did use a view at first but it
didn't display the way I wanted and just figured instead of trying to make
another block-something.tpl.php and theming it from there I would just try
to fix the code. Thanks though! When I update to D6 I'll be using more Views
for sure. :)
Cheers!
Jake
Jake Roufa
208.557.9390
http://jacobroufa.com
On Mon, May 31, 2010 at 10:15 PM, Larry Garfield <larry at garfieldtech.com>wrote:
> 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
> >
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100531/181cb1ab/attachment-0001.html
More information about the support
mailing list