$view = new stdClass();
$view->name = 'siteactivity';
$view->description = 'Shows active posts across the whole site';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Recent Site Activity';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'table';
$view->url = 'siteactivity';
$view->use_pager = TRUE;
$view->nodes_per_page = '25';
$view->menu = TRUE;
$view->menu_title = 'Recent posts';
$view->menu_tab = TRUE;
$view->menu_tab_weight = '5';
$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 (
array (
'tablename' => 'node_comment_statistics',
'field' => 'last_comment_timestamp',
'sortorder' => 'DESC',
'options' => 'normal',
),
);
$view->argument = array (
array (
'type' => 'uid',
'argdefault' => '2',
'title' => 'Recent posts for %1',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
array (
'type' => 'rss_feed',
'argdefault' => '2',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => 'Title',
'handler' => 'views_handler_field_nodelink_with_mark',
'sortable' => '1',
'options' => 'link',
),
array (
'tablename' => 'users',
'field' => 'name',
'label' => 'Author',
'sortable' => '1',
),
array (
'tablename' => 'node',
'field' => 'type',
'label' => 'Type',
'sortable' => '1',
),
array (
'tablename' => 'node_comment_statistics',
'field' => 'comment_count',
'label' => 'Replies',
'handler' => 'views_handler_comments_with_new',
'sortable' => '1',
),
array (
'tablename' => 'og_node_data',
'field' => 'title',
'label' => 'Groups',
),
array (
'tablename' => 'node_comment_statistics',
'field' => 'last_comment_timestamp',
'label' => 'Last post',
'handler' => 'views_handler_field_since',
'defaultsort' => 'ASC',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
);
$view->exposed_filter = array (
);
$view->requires = array(node_comment_statistics, node, users, og_node_data);
$views[$view->name] = $view;

Comments

MGParisi’s picture

FYI The block and the page display!

merlinofchaos’s picture

That's a view. Panel views are exports of the pane definition, not actual view exports. I'm not sure what you're trying to do but I'm sure there's a misunderstanding here.

MGParisi’s picture

Selecting View and adding it to panel views does not add to the panel box.

sdboyer’s picture

Status: Active » Postponed (maintainer needs more info)

Selecting View and adding it to panel views does not add to the panel box.

I don't even understand what you're _trying_ to say. This might make sense - maybe - if I was standing right behind you and watching as you do whatever it is you're doing. As it is, I haven't a clue. There are literally dozens of things that could be described as 'boxes' over the entire Panels UI, and you could be referring to any of them - or even none of them. Keeping in mind that the code you've pasted in IS the output of an exported view, as merlin said, which has nothing to do at all with Panels or the views panes system, I can hardly even tell if there's a real issue here, or if you're just doing it wrong. Please provide some more explicit, useful explanations about exactly what it is that you're doing and seeing. If you can't, then we're all wasting our time here, which means it's time for me to close the thread and move on to problems we can actually solve.

MGParisi’s picture

I did exactly what merlin told me to, goto panels view, select the view I wanted to add. Then push the button. The view does not become available in the list of available views or contributed modules. :(

I then tried to post the view above, but ofcourse that doesnt work.

I understand your frustration, but the documentation on this is limited. I am attempting to do my best, and in return for the help I receive I do spend significant time in the support forums helping people on the many things I have already accomplished.

MGParisi’s picture

About Me useraboutme Local useraboutme Edit | Export | Delete
My Blog blog_of_uid Default blog_of_uid Edit | Export | Disable
My Buddies buddylist_of_uid Default buddylist_of_uid Edit | Export | Disable
My Posts user_tracker Default user_tracker Edit | Export | Disable
Recent Site Activity siteactivity Local siteactivity Edit | Export | Delete

As you can see I was able to import it, but I can not access it!

I do have legacy enabled... I am going to attempt to turn that off and delete it and try again... I hope this is how legacy works.

MGParisi’s picture

Yep, Legacy broke it... Dont worry I will payback the help 10fold...

Thank You,
This was one of the FINAL things I needed to learn to do the projects I want.

MGParisi’s picture

Status: Postponed (maintainer needs more info) » Fixed

woops fixed

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.