Index: modules/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node.module,v retrieving revision 1.487 diff -u -r1.487 node.module --- modules/node.module 24 Apr 2005 16:34:34 -0000 1.487 +++ modules/node.module 6 May 2005 15:22:34 -0000 @@ -218,7 +218,7 @@ return substr($body, 0, $length + 1); } - if ($length = strpos($body, '�', $size)) { + if ($length = strpos($body, '�', $size)) { return substr($body, 0, $length + 1); } @@ -1625,8 +1625,12 @@ /** * Generate a listing of promoted nodes. */ -function node_page_default() { - $result = pager_query(db_rewrite_sql('SELECT n.nid, n.sticky, n.created FROM {node} n WHERE n.promote = 1 AND n.status = 1 ORDER BY n.sticky DESC, n.created DESC'), variable_get('default_nodes_main', 10)); +function node_page_default($uid = null) { + $user_sql = ''; + if ($uid) { + $user_sql = 'AND uid = %d '; + } + $result = pager_query(db_rewrite_sql('SELECT n.nid, n.sticky, n.created FROM {node} n WHERE n.promote = 1 AND n.status = 1 '. $user_sql. 'ORDER BY n.sticky DESC, n.created DESC'), variable_get('default_nodes_main', 10), 0, null, $uid); if (db_num_rows($result)) { drupal_set_html_head(''); Index: modules/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user.module,v retrieving revision 1.468 diff -u -r1.468 user.module --- modules/user.module 5 May 2005 11:55:52 -0000 1.468 +++ modules/user.module 6 May 2005 15:22:39 -0000 @@ -719,6 +719,11 @@ $items[] = array('path' => 'user/'. arg(1) .'/delete', 'title' => t('delete'), 'callback' => 'user_edit', 'access' => $admin_access, 'type' => MENU_CALLBACK); + $items[] = array('path' => 'user/'. arg(1) .'/content', 'title' => t('user content'), + 'callback' => 'node_page_default', + 'callback arguments' => array(arg(1)), + 'access' => user_access('access content'), + 'type' => MENU_SUGGESTED_ITEM); if (arg(2) == 'edit') { if (($categories = _user_categories()) && (count($categories) > 1)) {