I've taken the stock Smartqueue_users_user view and tried to make it work. I'm just wanting a block / page that shows the items in a users subqueue.

What I'm using it for is where a user can click a link that says Add to my Favorites and Remove from my Favorites that will add and delete the items from the subqueue.

Then the view will generate a block that will just show a user his favorite stories with a link to more of his favorite stories.

It seems that this is the home stretch and I'm sure I missing something in views on filter or arguments.

Comments

ezra-g’s picture

Title: Creating a view that creates a block and a page with a users items in Smartqueue per user » User's Queue Block that's not programattically created
Component: Miscellaneous » Code
Category: support » feature

To make the page work, you can simply visit smartqueue-user/[uid] -- The block was designed with programmatic use in mind, that is, you must use views API functions views_get_view, views_build_view to generate the block.

It sounds like users who are not developers might like to have a block that detects when it's on user/[uid] (usually the user profile page) and displays that user's queue in a block. We'd need to make sure that this kind of solution plays well with node profiles.

satcom74’s picture

Is there a way for instance if I had a menu item that went to the view page where the current logged in user id would be added. For instance let's just say smartqueue-user/[user-id-here] Then when the logs in and clicks the menu item it would take them to their node queue. Basically, just making a way to create a custom view for the end user to see. Also, it looks like I can key in any user's id and see their queue. For applications where you wouldn't want a different user able to see every else's queue, that could pose a problem.

ezra-g’s picture

Would you want the user to see the output of their nodequeue (ie node teasers) or the page where they manipulate their queue? Sounds like you're asking for the former. A per-user menu item could be added as a configurable option. Please submit a separate feature request for it.

The permission your're asking for is a popular request! Future discussion of that feature should go in #289814: "View User Node Queues on Profile Pages" permission.

satcom74’s picture

Status: Active » Closed (fixed)
ezra-g’s picture

Status: Closed (fixed) » Active

Actually, I think this request should stay open.

satcom74’s picture

I was able to get what I wanted by installing the me module. Basically feeds the uid to your view. www.yourwebsite/view/me. Works good so far. I'm not using this on any live sites yet, but plan to add an itinerary to one of our customer sites with this.

satcom74’s picture

Status: Active » Fixed

I'm going to call this fixed. I've been using the Flags module to serve this purpose. It has worked fine for what I needed which was an add to favorites type thing per user.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.