Using for other than comments?

ldway - July 20, 2008 - 04:45
Project:Riffly - realtime audio and video comments on your site
Version:5.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

You mention on your main module page:

"There is no reason why this should be limited to comments only but not also let you as the blogger leave audio or video blog content on your site."

Have you come up with a way to make this also work for a main post and not just for comments? Would love to see this expanded into that ability! :)

ALSO... What is everyones confidence level that Rifty will be around for the long term? Would hate to have lots of posts by users and then they shutdown and leave so many sites with blank content (comments). Rifty = Risky?

Thanks for your time!

-- Dave

#1

Mark B - September 1, 2008 - 11:37

Adding Riffly comments to new posts is pretty straightforward using the node hooks. I've customised the module to enable inclusion of audio/video comments when starting a new forum topic:

function riffly_form_alter($form_id, &$form) {
  if($form_id == 'forum_node_form') {
    $form['riffly-comments'] = array(
      '#type' => 'markup',
      '#prefix' => '<div>',
      '#value' => riffly_controls('edit-body'),
      '#suffix' => '</div>',
    );
  }
}

function riffly_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  if($op == 'view' && $node->type == 'forum') {
    $pattern = '/\[riffly_video\](.*)\[\/riffly_video\]/';
    if (user_access('view video comment')) {
      preg_match_all($pattern, $node->body, $matches);

      foreach ($matches[1] as $riffly_id) {
        $pattern = '/\[riffly_video\]' . $riffly_id . '\[\/riffly_video\]/';
        $replacement = riffly_video_display($node->nid, $riffly_id);
        $node->body = preg_replace($pattern, $replacement, $node->body);
      }
    }
    else {
      $node->body = preg_replace($pattern, '', $node->body);
    }

    $pattern = '/\[riffly_audio\](.*)\[\/riffly_audio\]/';
    if (user_access('view audio comment')) {
      preg_match_all($pattern, $node->body, $matches);

      foreach ($matches[1] as $riffly_id) {
        $pattern = '/\[riffly_audio\]' . $riffly_id . '\[\/riffly_audio\]/';
        $replacement = riffly_audio_display($node->nid, $riffly_id);
        $node->body = preg_replace($pattern, $replacement, $node->body);
      }
    }
    else {
      $node->body = preg_replace($pattern, '', $node->body);
    }
  }
  $node->content['body']['#value'] = $node->body;
}

Note that I also had to modify the function riffly_controls to pass in the name of the field the controls will be linked to (and edit the calls to riffly_controls in the riffly_comment hook to pass 'edit-comment' when generating links for the comments form).

I'm also a bit worried about the longevity of Riffly. I've dropped them an email asking them about it, and I'll post any replies back here.

#2

Mark B - September 8, 2008 - 06:52

Hmm - the reply doesn't inspire much confidence.

Seven days after posting a question using the form on their website, the reply is

This is the Postfix program at host haxicar.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

Doesn't sound promising. I'll give them another try though.

#3

phonydream2 - April 6, 2009 - 04:33

Does anybody know of any established alternatives to Riffly?

#4

btopro - April 30, 2009 - 16:14
Status:active» closed

Nope. Not that I am aware of that are Free. I know Sun has something that does some cool similar stuff but it's commercially supported

#5

phonydream2 - August 22, 2009 - 12:00

I've emailed a support request to Riffly and it's been over a week with no response (I received an automated responce from their server almost immediately after posting). I'm very reluctant to use them even though their current service is of great value to me.

 
 

Drupal is a registered trademark of Dries Buytaert.