My Posts

Reset'; print "node type =".$info['node_type']."
"; print "list no =".$info['list_no']."
"; global $user; $uid = $user->uid; unset ($output); $node_type = $info['node_type']; $node_author = $uid; $list_no = $info['list_no']; $sql = "SELECT node.title, node.type, node.nid, node.uid, node.created, node.changed FROM {node} WHERE node.type = '$node_type' AND node.uid = '$node_author' AND node.status = 1 ORDER BY node.created DESC LIMIT $list_no"; $output .= ""; $result = db_query($sql); while ($anode = db_fetch_object($result)) { $this_uid = $anode->uid; $this_user = db_fetch_array(db_query('SELECT name FROM {users} WHERE uid = %d', $this_uid)); $username = $this_user['name']; $created = date('r', $anode->created); $changed = date('r', $anode->changed); $output .= "» ".l($anode->title, "node/$anode->nid")."
By: $username
created=".$created."
Last Updated=".$changed."

"; } $output .= "
"; print $output; } else { print '
Enter Post Type (image, page, story, event, poll, survey, book page):
Number of Posts to List:


'; } ?>