Can anyone guide me in modifying the Tracker view such that it only shows My Recent Posts. I do not want a tab that shows all recent posts. I have tried everything I can think of and it will not work. The closest I got was a working result but the user name was not passed to the title and for the life of me, I could not get my custom menu to link to the page. All I get is page not found.

Comments

general need’s picture

A bit more info: I cant even get the view to return only My user posts. When I made the above post I thought I could, but I was wrong.

I added this to the url to get the user-only result: user/$arg/tracker

But no luck

general need’s picture

I would be happy if I could just make the "My Posts" tab the active tab by default when entering the Tracker page.

Has anyone done this?

Christefano-oldaccount’s picture

Have you disabled the core tracker module? Are you using the Views tracker or did you create a new view instead?

general need’s picture

Hi, thanks for responding. I disabled the core tracker and using a modified version of the Views tracker. I think my version is much the same. There must be something simple that I don't understand as this view returns results for all users.

This is the exported view (it has not formatted well, sorry)

$view = new stdClass(); $view->name = 'tracker_user'; $view->description = 'Shows users posts'; $view->access = array ( ); $view->view_args_php = ''; $view->page = TRUE; $view->page_title = 'Recent posts user'; $view->page_header = ''; $view->page_header_format = '3'; $view->page_footer = ''; $view->page_footer_format = '3'; $view->page_empty = ''; $view->page_empty_format = '3'; $view->page_type = 'table'; $view->url = 'user/$arg/tracker'; $view->use_pager = TRUE; $view->nodes_per_page = '25'; $view->menu = TRUE; $view->menu_title = 'Recent posts'; $view->menu_tab = FALSE; $view->menu_tab_weight = '0'; $view->menu_tab_default = FALSE; $view->menu_tab_default_parent = NULL; $view->menu_tab_default_parent_type = 'tab'; $view->menu_parent_tab_weight = '0'; $view->menu_parent_title = ''; $view->sort = array ( ); $view->argument = array ( array ( 'type' => 'uid', 'argdefault' => '2', 'title' => 'recent posts for %1', 'options' => '', 'wildcard' => '', 'wildcard_substitution' => '', ), ); $view->field = array ( array ( 'tablename' => 'node', 'field' => 'type', 'label' => 'Type', ), array ( 'tablename' => 'node', 'field' => 'title', 'label' => 'Title', 'handler' => 'views_handler_field_nodelink_with_mark', 'options' => 'link', ), array ( 'tablename' => 'users', 'field' => 'name', 'label' => 'Author', ), array ( 'tablename' => 'node_comment_statistics', 'field' => 'comment_count', 'label' => 'Replies', 'handler' => 'views_handler_comments_with_new', ), array ( 'tablename' => 'node_comment_statistics', 'field' => 'last_comment_timestamp', 'label' => 'Last Post', 'handler' => 'views_handler_field_since', ), ); $view->filter = array ( array ( 'tablename' => 'node', 'field' => 'status', 'operator' => '=', 'options' => '', 'value' => '1', ), ); $view->exposed_filter = array ( ); $view->requires = array(node, users, node_comment_statistics); $views[$view->name] = $view;

Christefano-oldaccount’s picture

The view you exported here doesn't have a menu or menu title. Try configuring the Menu settings in the Menu fieldset (you'll find that at the bottom of the Page fieldset).

Nice Deli’s picture

Any conclusion to this problem? I don't know how to deal with code, I've been in and out of views and cannot seem to find a simple part that says unable admin such and such...

I've gone ahead and disabled tracking in the core modules, but I do want tracking of threads in the forums and questions in the Q&A sections~
plus I uploaded a few hundred pics and they're all in the recent posts and I don;t want them to be.

please help

Thanks!

Nice Deli’s picture

to solve the problem i just took recent posts out of the navigation menu and added Active forum topics