Currently the question in the shout box on my site is 'What are you doing?'. I would like to be able to change the question on a regular basis. I think it makes it a more powerful interactive feature when people can answer a question, share something, etc. and have it be different every time they come to the site.

Is this possible now? If not, would other users have any idea how I might do this?

Thank you very much!

Comments

hjulien’s picture

Issue summary: View changes

In Drupal 6 I had it working where a OG group admin (worked in non-groups as well) could post a question above the shoutbox.

1. I added a field in the content type of the group. Mine was called field_speak_up_topic. Admins could change the question as often as they liked.
2. Then a Drupal block was created with the code below:

$node = menu_get_object();
$block = module_invoke('shoutbox', 'block', 'view', '0'); 
print '<div id="speakup_question">'. $node->field_speak_up_topic[0]['value'] .'</div>';
print '<div id="speakup_box">'. $block['content'] .'</div>';

3. Then the block was placed in the panel node of the group.

This worked great until I upgraded to Drupal 7. Now my code doesn't work anymore. Don't know why. Any ideas?

vitalblue’s picture

Status: Active » Closed (outdated)