$view = new view; $view->name = 'dpop_scores'; $view->description = 'Displays Delicious.com popular posts along with calculated scores'; $view->tag = ''; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Delicious Popular Plus', 'default'); $handler->override_option('relationships', array( 'votingapi_cache' => array( 'label' => 'Voting results', 'required' => 0, 'votingapi' => array( 'value_type' => '', 'tag' => '', 'function' => '', ), 'id' => 'votingapi_cache', 'table' => 'node', 'field' => 'votingapi_cache', 'relationship' => 'none', ), 'flag_content_rel' => array( 'label' => 'flag', 'required' => 0, 'flag' => 'read', 'user_scope' => 'current', 'id' => 'flag_content_rel', 'table' => 'node', 'field' => 'flag_content_rel', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'value' => array( 'label' => 'Value', 'set_precision' => FALSE, 'precision' => 0, 'decimal' => '.', 'separator' => ',', 'prefix' => '', 'suffix' => '', 'appearance' => NULL, 'exclude' => 0, 'id' => 'value', 'table' => 'votingapi_cache', 'field' => 'value', 'relationship' => 'votingapi_cache', ), 'changed' => array( 'label' => 'Updated date', 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'changed', 'table' => 'node', 'field' => 'changed', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'title' => array( 'label' => 'Title', 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'url' => array( 'id' => 'url', 'table' => 'feedapi_node_item', 'field' => 'url', ), 'tid' => array( 'label' => 'All terms', 'type' => 'separator', 'separator' => ', ', 'empty' => '', 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( '1' => 0, ), 'exclude' => 0, 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'relationship' => 'none', ), 'ops' => array( 'label' => 'Flag link', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_type' => '', 'exclude' => 0, 'id' => 'ops', 'table' => 'flag_content', 'field' => 'ops', 'relationship' => 'flag_content_rel', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('sorts', array( 'value' => array( 'order' => 'DESC', 'id' => 'value', 'table' => 'votingapi_cache', 'field' => 'value', 'relationship' => 'votingapi_cache', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'dpopplus' => 'dpopplus', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'function' => array( 'operator' => 'contains', 'value' => 'average', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => 'function_op', 'label' => 'Voting API results: Function', 'use_operator' => 0, 'identifier' => 'function', 'optional' => 1, 'remember' => 0, ), 'case' => 1, 'id' => 'function', 'table' => 'votingapi_cache', 'field' => 'function', 'relationship' => 'votingapi_cache', 'override' => array( 'button' => 'Override', ), ), 'tid' => array( 'operator' => 'or', 'value' => array(), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'tid_op', 'identifier' => 'tid', 'label' => 'Taxonomy: Term', 'optional' => 1, 'single' => 0, 'remember' => 0, 'reduce' => 0, ), 'type' => 'select', 'vid' => '1', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'hierarchy' => 0, 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', 'reduce_duplicates' => 1, ), 'flagged' => array( 'operator' => '=', 'value' => '0', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'operator' => '', 'identifier' => 'flagged', 'label' => 'Read', 'optional' => 1, 'remember' => 0, ), 'id' => 'flagged', 'table' => 'flag_content', 'field' => 'flagged', 'relationship' => 'flag_content_rel', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('title', 'Delicious Popular Plus'); $handler->override_option('header', 'refresh feed | total_rows; ?>'); $handler->override_option('header_format', '3'); $handler->override_option('header_empty', 1); $handler->override_option('items_per_page', 100); $handler->override_option('use_pager', '1'); $handler->override_option('use_more', 1); $handler->override_option('distinct', 1); $handler->override_option('style_plugin', 'bulk'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'desc', 'columns' => array( 'value' => 'value', 'changed' => 'changed', 'title' => 'title', 'url' => 'url', 'tid' => 'tid', 'ops' => 'ops', ), 'info' => array( 'value' => array( 'sortable' => 1, 'separator' => '', ), 'changed' => array( 'sortable' => 1, 'separator' => '', ), 'title' => array( 'sortable' => 1, 'separator' => '', ), 'url' => array( 'separator' => '', ), 'tid' => array( 'separator' => '', ), 'ops' => array( 'separator' => '', ), ), 'default' => 'value', 'execution_type' => '1', 'display_type' => '0', 'skip_confirmation' => 0, 'display_result' => 1, 'merge_single_action' => 1, 'selected_operations' => array( 'a635d8491e9fc894fc81547356a676c1' => 'a635d8491e9fc894fc81547356a676c1', 'a064390dea690c89f4fbd7c492cf5d21' => 'a064390dea690c89f4fbd7c492cf5d21', 'a58405a971a2787d672126a73a7e8bf3' => 0, '36469861e3132eab84638fd0cf426ac1' => 0, '837cbe58fd9af30cf48e5c9de552d925' => 0, '7a9a34556136a4e6d403cacfe0573d64' => 0, '2590ff43ab3648737ccd1865cd76084e' => 0, 'd0746f09756440a699f4a721c7683290' => 0, 'b26a99d8d89001e5998b3651fa7b10ba' => 0, '339302ab7ef2adc1a3a9844e15e76967' => 0, 'e865a3ac236dc71e38301049a0f356e8' => 0, '2fd6d151e013faf3099170a3bb1284d4' => 0, 'bf6b6cafe38816388f6606b93b881f16' => 0, 'c240117f80fc27a29633c29df38c3802' => 0, 'e52c7d4b8ccc8fd7b8f7a59ca8e0e013' => 0, 'e620912b6bfc590784848cf00c05b42f' => 0, 'ffd4dd7c59102655f73303c040b08914' => 0, '6de2c5c923bfa45d6fdcd5fb0401539b' => 0, '2094a5f797e4c4f0f5ecc0cfcdae09de' => 0, '97cdd5da60cce28fec0e8a22e535938c' => 0, '0b086d2bd7e37bf66a3b8b0b9226249a' => 0, 'd8fc611ebac486388a7f0bef1d4d8115' => 0, 'c1c34a331fb39c6ad9130862698bd354' => 0, ), )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'dpop_scores'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Delicious Popular Scores', 'description' => '', 'weight' => '-10', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler = $view->new_display('feed', 'Feed', 'feed_1'); $handler->override_option('style_plugin', 'rss'); $handler->override_option('style_options', array( 'mission_description' => 0, 'description' => '', )); $handler->override_option('row_plugin', 'node_rss'); $handler->override_option('row_options', array( 'item_length' => 'teaser', )); $handler->override_option('path', 'dpop_scores_rss'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler->override_option('displays', array()); $handler->override_option('sitename_title', FALSE);