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. :)<br>
<br>Cheers!<br>Jake<br><br clear="all">Jake Roufa<br>208.557.9390<br><a href="http://jacobroufa.com">http://jacobroufa.com</a><br>
<br><br><div class="gmail_quote">On Mon, May 31, 2010 at 10:15 PM, Larry Garfield <span dir="ltr"><<a href="mailto:larry@garfieldtech.com">larry@garfieldtech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Nodequeue has pretty good Views integration. You're probably much better off<br>
using that instead of writing your own code, even in Drupal 5. It will be<br>
much more stable.<br>
<br>
--Larry Garfield<br>
<div><div></div><div class="h5"><br>
On Monday 31 May 2010 04:47:35 pm Jacob Roufa wrote:<br>
> Hey all,<br>
><br>
> I have a nodequeue set up and I threw some php code in a block to display<br>
> the nodes I want... This all worked great for me until I updated the site<br>
> to the latest Drupal 5.22 and all of a sudden I'm getting an error :<br>
> *Parse error*: syntax error, unexpected T_VARIABLE in<br>
> */includes/common.inc(1497) : eval()'d code* on line *1*<br>
><br>
> The code for the block is :<br>
> <?php$get_nodes = db_query("SELECT * from nodequeue_nodes WHERE qid = 1<br>
> ORDER BY position DESC limit 3");$count = 0;while ($node =<br>
> db_fetch_object($get_nodes)) { $count = $count + 1; $full_node =<br>
> node_load($node->nid); if ($count == 3) { print node_view($full_node);<br>
> } else { print node_view($full_node); }}?><br>
><br>
> I have the latest Drupal 5.x version of all the modules and core. My theme<br>
> is not getting in the way I don't think... Any thoughts as to why I'm<br>
> getting this error instead of my block displaying properly??<br>
><br>
><br>
> Jake Roufa<br>
> 208.557.9390<br>
> <a href="http://jacobroufa.com" target="_blank">http://jacobroufa.com</a><br>
><br>
</div></div><font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br>