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&#39; on cleaning it up! Also, Crell, I did use a view at first but it didn&#39;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&#39;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">&lt;<a href="mailto:larry@garfieldtech.com">larry@garfieldtech.com</a>&gt;</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&#39;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>
&gt; Hey all,<br>
&gt;<br>
&gt; I have a nodequeue set up and I threw some php code in a block to display<br>
&gt; the nodes I want... This all worked great for me until I updated the site<br>
&gt;  to the latest Drupal 5.22 and all of a sudden I&#39;m getting an error :<br>
&gt;  *Parse error*: syntax error, unexpected T_VARIABLE in<br>
&gt;  */includes/common.inc(1497) : eval()&#39;d code* on line *1*<br>
&gt;<br>
&gt; The code for the block is :<br>
&gt; &lt;?php$get_nodes = db_query(&quot;SELECT * from nodequeue_nodes WHERE qid = 1<br>
&gt; ORDER BY position DESC limit 3&quot;);$count = 0;while ($node =<br>
&gt; db_fetch_object($get_nodes)) {  $count = $count + 1;  $full_node =<br>
&gt; node_load($node-&gt;nid);  if ($count == 3) {    print node_view($full_node);<br>
&gt; } else {    print node_view($full_node);  }}?&gt;<br>
&gt;<br>
&gt; I have the latest Drupal 5.x version of all the modules and core. My theme<br>
&gt; is not getting in the way I don&#39;t think... Any thoughts as to why I&#39;m<br>
&gt; getting this error instead of my block displaying properly??<br>
&gt;<br>
&gt;<br>
&gt; Jake Roufa<br>
&gt; 208.557.9390<br>
&gt; <a href="http://jacobroufa.com" target="_blank">http://jacobroufa.com</a><br>
&gt;<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>