Posted by izmeez on September 25, 2009 at 8:00pm
Jump to:
| Project: | Smartqueues for Organic Groups |
| Version: | 6.x-1.0-rc2 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Issue Summary
I must be missing something very simple here. I have searched all over and cannot find the answer.
I am just testing smartqueue_og. I have had no difficulties installing it and it creates the queues for each group. I see there are two blocks, "group nodequeue" and "group queue". I have added a content node to a specific group queue and it shows up in the "group nodequeue" block. I have also activated the "group queue" block and expected to see that block show only on the group home page but it is nowhere to be found.
Any help would be appreciated. Thanks,
Izzy
Comments
#1
+bump
Sorry to be asking such a simple question, but I still can't resolve this and wonder if anyone can offer some help. Thanks,
Izzy
#2
I've IM'd with ezra-g today to try and get to the bottom of this. For some reason that I'm not sure about, there is supposed to be a view defined called smartqueue_og_default
For some reason, for me (and I guess for you) this view doesn't get defined, so the block thats trying to use it doesnt display.
But - it's just a view.
the solution is simply to add a view of your own (or use the other nodequeue view) to display the groups queue
Cheers
Mark.
#3
Thanks for looking into this. Based on your description it sounds like a bug report. I wonder why nobody else has reported it.
#4
@markfoodyburton Thanks for looking into this.
When I installed smartqueues it does create a nodequeue view that has a relationship and no arguments. The name of the view is as named in the smartqueue config page. It does appear to create a queue for each existing group and there are two blocks created. One block is that named for the overall nodequeue and another that is the group queue. The overall nodequeue block shows without difficulty but the individual group queue does not. Could this be because I have themed the group home page and I do not use $content ?
Thanks,
Izzy
#5
Sorry I can't answer all the questions - I dont know. Looks to me like the problem I had, and the problem izmeez MAY have had was that I believe 2 views should have been created - the 'group queue' block uses the second view (which I couldn't find).
Having said that - for me (at least) the second view isn't what I was looking for anyway - and I'm not convinced that it helps to have a 'block which is tied to a view like that, you may as well just have a view which provides a block...
(But, thats a matter of personal opinion......)
I am really not at all sure that this was anything other than a strangeness... I dont know if it's a bug or not.
Anyway, my version of views is (currently) DRUPAL-6--3
meantime, this is somewhat off topic, and maybe posted somewhere else, but for me - at least - the thing I wanted is quite easy to achieve nodequeue:
I've installed computed_fields, and added (to the content type for a group node), a computed field which does this:
Computed Code:
$node_field[0]['value'] = $node->nid;
Display Format:
$display='';
$nid = $node_field_item['value'];
$queues=smartqueue_og_load_group_subqueue($nid);
if (is_array($queues)) {
$queue=array_shift($queues);
$subqueue=nodequeue_load_subqueue($queue->sqid);
$nodes = _nodequeue_dragdrop_get_nodes($queue, $subqueue);
$display=drupal_get_form('nodequeue_arrange_subqueue_form', $queue, $nodes, $subqueue);
}
Net result, I see the re-orderable list on the homepage of the group (which is what _I_ wanted, your mileage will vary, and you should be especially careful of the permissions)
Cheers
Mark.
#6
Mark,
Thanks for sharing this. I will give it a twirl. I am using views 6.x-2.x and will see what happens and report back.
Izzy
#7
I also realized that I do not want to loose sight of the original issue.
I had expected that the group_specific nodequeue block would be as easy to display as the group_type nodequeue block which seems to work.
I expected the block configuration would be sufficient to handle the block visibility requirements and if needed a php conditional could be added.
Like @ezra-g, I wonder why nobody else has reported it?
Still wondering if this can be done easily. Thanks,
Izzy
#8
Indeed, the default view was not being returned from smartqueue_og_views_default_views(). This is now fixed. I expect to roll a new release this week.
#9
I am still having difficulties and I must be doing something wrong.
I have installed the latest dev version dated Oct 25.
The group subqueues are created and two blocks are created one called 'Queue Group queue' which seems to be the blocks for all the group subqueues and 'Group queue' which I presume is the block for the individual subqueues. It is the second block that I do not seem to be able to get to appear. I assumed it would show on the group home page, but only the 'queue group queue' block shows there and everywhere.
May be this is because I have created a tpl.php file to override the group home page display. I have tried adding this line
<?php print views_embed_view('nodequeue_13', 'default', arg(1)); ?>but this is showing the queue for all groups not just the specific group.I would appreciate any assistance in getting this to work. Thanks,
Izzy
#10
Automatically closed -- issue fixed for 2 weeks with no activity.
#11
I am having huge problems getting this to work. Any help would be appreciated. smartqueue_og_default gives errors for me....
#12
#13
Actually this is killing me. i can not get my nodequeue smartqueue for organic groups to work at all . I am trying everything. This is a very important feature for me. No one in that queue is helping me. I think they module is dying. I am getting the error user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ASC LIMIT 0, 10' at line 11 query: SELECT DISTINCT node.nid AS nid, node.title AS node_title, node_revisions.body AS node_revisions_body, node_revisions.format AS node_revisions_format, position FROM node node INNER JOIN nodequeue_nodes nodequeue_nodes_node ON node.nid = nodequeue_nodes_node.nid AND nodequeue_nodes_node.qid = 2 LEFT JOIN nodequeue_subqueue nodequeue_nodes_node__nodequeue_subqueue ON nodequeue_nodes_node.sqid = nodequeue_nodes_node__nodequeue_subqueue.sqid LEFT JOIN node_revisions node_revisions ON node.vid = node_revisions.vid WHERE nodequeue_nodes_node__nodequeue_subqueue.reference = '2' ORDER BY ASC LIMIT 0, 10 in /home/cyberfan/htdocs/modules/views/includes/view.inc on line 765.
I am using panels. When I select the option to sentd arguments, this error appears. When I dont select the option to send arguments, nothing appears, even there is no message that there are no nodequeus.
here is the export of the view I am using:
$view = new view;
$view->name = 'smartqueue_og_default';
$view->description = 'Displays the nodes in a group\'s queue';
$view->tag = 'nodequeue';
$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', 'Defaults', 'default');
$handler->override_option('relationships', array(
'nodequeue_rel' => array(
'label' => 'queue',
'required' => 1,
'limit' => 1,
'qids' => array(
'2' => '2',
),
'id' => 'nodequeue_rel',
'table' => 'node',
'field' => 'nodequeue_rel',
'relationship' => 'none',
),
));
$handler->override_option('fields', array(
'title' => array(
'label' => '',
'link_to_node' => 1,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
'body' => array(
'label' => '',
'exclude' => 0,
'id' => 'body',
'table' => 'node_revisions',
'field' => 'body',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('sorts', array(
'position' => array(
'id' => 'position',
'table' => 'nodequeue_nodes',
'field' => 'position',
),
));
$handler->override_option('arguments', array(
'reference' => array(
'default_action' => 'not found',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => '',
'title' => '',
'breadcrumb' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'glossary' => 0,
'limit' => '0',
'case' => 'none',
'path_case' => 'none',
'transform_dash' => 0,
'id' => 'reference',
'table' => 'nodequeue_subqueue',
'field' => 'reference',
'relationship' => 'nodequeue_rel',
'default_options_div_prefix' => '',
'default_argument_user' => 0,
'default_argument_fixed' => '',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'dimdim' => 0,
'feed' => 0,
'feed_item' => 0,
'image' => 0,
'quiz' => 0,
'forum' => 0,
'ipaper' => 0,
'panel' => 0,
'event' => 0,
'evocampus_class_group' => 0,
'evocampus_class_group_lesson' => 0,
'evocampus_class_member_post' => 0,
'evocampus_group_lesson' => 0,
'evocampus_group_post' => 0,
'evocampus_group_prioritypost' => 0,
'evocampus_teacher_strategy_book' => 0,
'evonews_capture_base' => 0,
'evonews_feed_item' => 0,
'evonews_sitewide_base' => 0,
'evonews_sitewide_composit' => 0,
'gallery' => 0,
'gallery_image' => 0,
'page' => 0,
'profile' => 0,
'story' => 0,
'topichub' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(
'2' => 0,
'42' => 0,
'3' => 0,
'60' => 0,
'4' => 0,
'5' => 0,
'6' => 0,
'55' => 0,
'7' => 0,
'8' => 0,
'9' => 0,
'43' => 0,
'10' => 0,
'11' => 0,
'1' => 0,
'50' => 0,
'12' => 0,
'49' => 0,
'13' => 0,
'45' => 0,
'47' => 0,
'46' => 0,
'44' => 0,
'51' => 0,
'61' => 0,
'14' => 0,
'15' => 0,
'16' => 0,
'17' => 0,
'18' => 0,
'19' => 0,
'20' => 0,
'21' => 0,
'22' => 0,
'23' => 0,
'53' => 0,
'52' => 0,
'24' => 0,
'25' => 0,
'56' => 0,
'26' => 0,
'27' => 0,
'28' => 0,
'29' => 0,
'30' => 0,
'31' => 0,
'32' => 0,
'33' => 0,
'58' => 0,
'41' => 0,
'34' => 0,
'35' => 0,
'36' => 0,
'37' => 0,
'38' => 0,
'39' => 0,
'40' => 0,
'57' => 0,
'54' => 0,
'48' => 0,
'59' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_php' => '',
'override' => array(
'button' => 'Override',
),
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
'3' => 0,
'4' => 0,
),
'default_argument_image_size' => '_original',
'validate_argument_node_flag_name' => '*relationship*',
'validate_argument_node_flag_test' => 'flaggable',
'validate_argument_node_flag_id_type' => 'id',
'validate_argument_user_flag_name' => '*relationship*',
'validate_argument_user_flag_test' => 'flaggable',
'validate_argument_user_flag_id_type' => 'id',
'image_size' => array(
'_original' => '_original',
'thumbnail' => 'thumbnail',
'preview' => 'preview',
'tiny' => 'tiny',
),
'validate_argument_is_member' => 'OG_VIEWS_VALIDATE_GROUP_MEMBER',
'validate_argument_group_node_type' => array(
'evocampus_class_group' => 'evocampus_class_group',
'evocampus_teacher_strategy_book' => 0,
),
'validate_argument_signup_status' => 'any',
'validate_argument_signup_node_access' => 0,
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
),
));
$handler->override_option('access', array(
'type' => 'none',
'role' => array(),
'perm' => '',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('empty', 'This group does not have a queue that contains and nodes.');
$handler->override_option('empty_format', '1');
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'list');
$handler->override_option('row_options', array(
'inline' => array(),
'separator' => '',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'smartqueue-og');
$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,
'name' => 'navigation',
));
#14
I figured it out. you had to change the default argument to get it to work........ that should be fixed... major headache.
#15
@antinsa What did u change the default argument to ?