It would be great that if instead of custom callbacks for approve, decline and edit actions were described that allow to integrate with Views Bulk Operations - simplest example would be approving or declining multiple transactions at once.

CommentFileSizeAuthor
#5 Live Preview.jpg83.89 KBsaday
#5 VBO settings.jpg118.43 KBsaday
#2 userpoints_vbo.zip1 KBgease

Comments

berdir’s picture

Version: master » 7.x-1.x-dev
Issue tags: -vbo
gease’s picture

Version: 7.x-1.x-dev » 6.x-1.2
Status: Active » Needs review
StatusFileSize
new1 KB

Well, I'm attaching a small module that adds "approve" and "decline" actions for Views Bulk Operations for 6.x branch of Userpoints. To make it work you also need to describe txn_id column to views: add

  $data['userpoints_txn']['txn_id'] = array(
    'title' => t('Transaction ID'),
    'help' => t('Transaction ID'), // The help that appears on the UI,
    'field' => array(
      'handler' => 'views_handler_field_numeric',
      'click sortable' => TRUE,
    ),
    'sort' => array(
      'handler' => 'views_handler_sort',
    ),
  );

to userpoints.views.inc

saday’s picture

Category: feature » support

I have enabled the userpoints_VBO module and added the code to userpoints.views.inc. Now the approve/decline is showing up in the VBO operations but it is not showing up in the pull down selector on the view. Please help.

gease’s picture

@saday: I haven't quite got what you're talking about. Could you please post screenshot of VBO settings from views admin page and screenshot of your actual view? Thanks.

saday’s picture

StatusFileSize
new118.43 KB
new83.89 KB

@gease I have attached screen shot of the VBO settings on the edit view page. The Approve/Decline shows up here as options. And I selected them and updated the view.
I have also attached screen shot of the Live Preview that I get after updating. In the Operations pull down selector. Approve and Decline does not appears. Hope you understand now. Please help.

gease’s picture

#5: I cannot reproduce your issue. I tried playing around with the settings on my installation, moving and even removing transaction id from fields, but VBO selection always stays fine. So I can give you just suggestions of general character like: clear cache; try changing operations selection from drop-down list to buttons; try checking other operations to make sure they work etc. If this doesn't help, I can have a look at your installation. If you'd like this, contact me via pmb.

manuel.adan’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Closing this as outdated, 6.x version is no longer maintained.