<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am creating a dynamic newsletter using the
simplenews module and php block snippets. I've got the overall mechanics working
well. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I create the newsletter, say /newsletter/05-may-07
which has standard header and footer text which goes out to every person. Then
my idea is to insert location-based content into it so that Jane from Texas sees
"Last five members from Texas", "Last five posts from Houston", "Five members
who go to your school" and so on. Chris from London would see different
content.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The problem I've hit though is that when I insert
the block snippet into the node, choose PHP as input format and press
"Submit", none of the content below the snippet shows. Here is my
snippet:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><?php<BR>global
$user;<BR>$result=db_query("SELECT dru_users.uid, dru_users.init FROM dru_users
WHERE (dru_users.uid = $user->uid)");<BR>while ($u =
db_fetch_object($result)) {<BR>$items[]=l($u->init, "user/" .
$u->uid);<BR>}<BR>return theme('item_list',$items);<BR>?></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is just a test snippet to test the
concept....in a block, it shows the current user's e-mail address. It also does
this in a node, but as I say, the rest of the content below this code doesn't
come through.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any idea what the problem
is?</FONT></DIV></BODY></HTML>