There should be a way to create subqueues for users when they are entered into the system. This patch creates a subqueue for new users in all nodequeues owned by 'smartqueue_users'.

Comments

DrakeTaylor’s picture

Status: Active » Needs review

Whoops, for got to change the status.

DrakeTaylor’s picture

StatusFileSize
new2.31 KB

Here's a patch that lets an admin create subqueues in a nodequeue for existing users. It creates a tab at /admin/content/nodequeue. Here you can pick which nodequeue created by smartqueue_users to batch create subqueues for all users that don't have a subqueue already created. Test it out, let me know if it works for you.

-Drake

DrakeTaylor’s picture

I've been thinking about the patch in #1 and while it should work, it's all or nothing. If you apply it, a user joining the site will get a subqueue for every nodequeue owned by smartqueue_users. Maybe this is not something we want, maybe we should have a checkbox on the nodequeue create form that allows an admin to choose if they want users to get a subqueue. It's just a thought.

steve hanson’s picture

Category: feature » bug
Status: Needs review » Needs work

The smartqueue users batch patch doesn't work properly if the site uses a database prefix since it explicitly calls the user table.

DrakeTaylor’s picture

Status: Needs work » Needs review
StatusFileSize
new3.22 KB

Thanks Steve!

I've fixed that and added to the code so now during the batch process only the users that have the roles allowed by the nodequeue get subqueues added.

Let me know if it works.

-Drake

beeradb’s picture

Title: Create subqueues for users by default » Batch create subqueues for existing users

Renaming for accuracy (and also because I need this namespace)

vegantriathlete’s picture

This is something else that I thought the 5.x-0.6 version already does.

Anyway, I am laying the groundwork to build a D7 version of this module and would like to make a decision whether to use the 6.x-1.x or 6.x-2.x branch as my starting point. Please jump in to the discussion in the issue queue.