Ok, ive finally found a way to do what i want (listing of nodes, eventually by taxo term), but this is my output:
http://www.aphelionsites.net/~rombus/?q=node/6

But, what i WANT is it to be in this format:
Link to Node "DELIMITER" date
Link to Node "DELIMITER" date

so that its single spaced

it SEEMS like the link is taking up the full length of the page.

Any suggestions? Ive really hit a wall on this one, i just cant seem to figure out whats causing the issue, or how to properly call the delimiter.

Here is the code im using right now:

$result = db_query_range("SELECT n.created, n.title, n.nid, n.changed
    FROM node n
    WHERE n.status = 1
    ORDER BY n.created
    DESC ", 0, 10);
  while ($node = db_fetch_object($result)) {
    $output[] = l(check_output($node->title), "node/view/".$node->nid)."<class=delimiter>".format_date($node->created, small);
}
return theme_item_list($output);

Comments

javanaut’s picture

I'm not sure <class=delimiter> means anything in HTML. I'm guessing you meant something more like:

l(check_output($node->title), "node/view/".$node->nid) . "<div class='delimiter'>DELIMITER</div>" . format_date($node->created, small);

or

l(check_output($node->title), "node/view/".$node->nid) . "<span class='delimiter'>DELIMITER</span>" . format_date($node->created, small);
javanaut’s picture

looking at the page source, it would appear that the code:

<span class="delimiter">&nbsp;&nbsp;</span>

will render the nice blue delimiter that I suppose you're talking about.

Rombus’s picture

The Delimiter thing was a huge oopse on my part, didnet check the theme stuff, Now it seems obvious but stuff like that escapes you late at night.

Ok now that delimiter is working, i dug around and found out that check_output() was causing the spacing issue. So is it absoultly nessicary to use check_output()? Im assuming that its not, but could something go wrong if i dont use it for this list?

Here is the current output:
http://www.aphelionsites.net/~rombus/?q=node/6

and here is the code generating that:

$result = db_query_range("SELECT n.created, n.title, n.nid, n.changed
    FROM node n
    WHERE n.status = 1
    ORDER BY n.created
    DESC ", 0, 10);
  while ($node = db_fetch_object($result)) {
    $output[] = format_date($node->created, small).'<span class="delimiter">&nbsp;&nbsp;</span>'.l($node->title, "node/view/".$node->nid);
}
return theme_item_list($output);

Thanks for the help!

mkpaul’s picture

hi,
thanks, this is very close to what i am looking for. BTW, is it possible to list the 10 posts by vocabulary? Let us say i have voc1 and voc2 I want to list 10 posts in voc1 only.

thanks,
Paul